Repository navigation
PE-9769 docs: clarify Root recovery signer rotation #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,18 +13,18 @@ Every Splits account, including the Root, is an ERC-4337 v0.7 smart-contract mul | |
|
|
||
| | Type | Controlled by | Owned by (onchain) | | ||
| | --- | --- | --- | | ||
| | **Root** | Recovery signers (EOAs) | Itself | | ||
| | **Root** | Recovery signers (EOAs) | No external owner | | ||
| | **Treasury** | Passkeys and/or EOAs | Root | | ||
| | **Operating** | Passkeys and/or EOAs | Treasury | | ||
| | **Automation** | Splits server key, passkeys, and/or EOAs | Treasury | | ||
|
|
||
| Accounts form an ownership chain (Root → Treasury → operating and automation accounts) in which each account is the onchain owner of those below it. | ||
|
|
||
| Ownership carries the powers signers don't have. An account's signers can change the account's own signer set and threshold, but **only its owner can upgrade the account's contract implementation or transfer its ownership**, and the owner can execute from the account directly, which is how a [signer reset](/accounts/editing#resetting-signers) and [recovery](/workspaces/recovery) work. A rogue signer on a low-threshold account can therefore reach at most that account's balance, never its ownership or code. The Root has no external owner and owns itself: owner actions on it fall to its own signers, the recovery signers, at the recovery threshold. | ||
| Ownership carries the powers signers don't have. An account's signers can change the account's own signer set and threshold, but **only its owner can upgrade the account's contract implementation or transfer its ownership**, and the owner can execute from the account directly, which is how a [signer reset](/accounts/editing#resetting-signers) and [recovery](/workspaces/recovery) work. A rogue signer on a low-threshold account can therefore reach at most that account's balance, never its ownership or code. The Root has no external owner: its recovery signers can authorize owner actions at the recovery threshold. See [Changing recovery signers](/workspaces/recovery#changing-recovery-signers) for the limits of changing the Root's own signers. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @splits-gerard "for the limits of changing roots own signers." the workspaces docs say you can't. is there a reason we're directing them there to read this instead of just explicitly stating that? |
||
|
|
||
| ## Root | ||
|
|
||
| The Root is created from the workspace's recovery signers during [workspace setup](/workspaces), with the recovery threshold. It never appears in the app: it can't be viewed or transacted from. It exists so the recovery signers can regain control of everything below it if the workspace's passkeys are lost, and its composition determines every address derived beneath it, which is why changing recovery signers changes the workspace's account addresses ([more](/workspaces/recovery#changing-recovery-signers)). | ||
| The Root is created from the workspace's recovery signers during [workspace setup](/workspaces), with the recovery threshold. It has no account page in the app; the app uses it for recovery transactions. It exists so the recovery signers can regain control of everything below it if the workspace's passkeys are lost. Its *original creation configuration* determines its address and every address derived beneath it. See [Changing recovery signers](/workspaces/recovery#changing-recovery-signers). | ||
|
|
||
| ## Treasury | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ A [workspace](/introduction/core-concepts#workspace) is the primary organization | |
|
|
||
| ## Creating a workspace | ||
|
|
||
| Creating a workspace takes under a minute, and everything about it can be changed after setup **except Recovery**: changing recovery signers later generates new account addresses (see [Change recovery signers](/workspaces/recovery#changing-recovery-signers)). | ||
| Creating a workspace takes under a minute. **Splits does not support changing its recovery signers after setup.** To change them with product support, create a new workspace; see [Changing recovery signers](/workspaces/recovery#changing-recovery-signers). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @splits-gerard "to create them with product support" means nothing to me. what? |
||
|
|
||
| A member can create and belong to any number of workspaces. If you just registered, you're guided through creating one; otherwise click your workspace's name in the top left and select *Create a workspace*. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| --- | ||
| title: Recovery | ||
| description: "Why recovery exists, the recovery signers that control the Root account, how to verify them, recover a workspace's accounts, and why changing them changes addresses." | ||
| description: "How recovery signers control the Root account, how to verify them and recover accounts, and why changing them requires a new workspace today." | ||
| --- | ||
|
|
||
| # Recovery [Regain control of every account if a workspace's passkeys are lost] | ||
|
|
@@ -18,7 +18,7 @@ Recovery signers are EOAs chosen at [workspace setup](/workspaces), controlling | |
| - **Email**: Splits creates a Privy embedded wallet for the email address. The signer authenticates with an email code when a recovery needs their signature. This option lets a trusted person help without managing a crypto wallet. Splits creates a separate wallet for each workspace the email is added to. | ||
| - **Wallet**: add an EOA wallet address or ENS name. The signer connects that wallet when a recovery needs their signature. Use an address created for this purpose that has never signed a transaction anywhere; see [Keeping recovery healthy](#keeping-recovery-healthy). | ||
|
|
||
| Recovery signers are the backstop beneath the day-to-day signers. [Settings > Recovery](https://app.splits.org/settings/team/recovery/) lists them for Owners. Changing them changes the workspace's account addresses ([why](#changing-recovery-signers)). | ||
| Recovery signers are the backstop beneath the day-to-day signers. [Settings > Recovery](https://app.splits.org/settings/team/recovery/) lists them for Owners. See [Changing recovery signers](#changing-recovery-signers) before choosing them. | ||
|
|
||
| ### Verifying recovery signers | ||
|
|
||
|
|
@@ -47,9 +47,11 @@ With the Treasury back under control, [reset any sub-account](/accounts/editing# | |
|
|
||
| ## Changing recovery signers | ||
|
|
||
| Account addresses are derived from the recovery configuration using [`CREATE2`](https://docs.openzeppelin.com/cli/2.8/deploying-with-create2). That's what makes every account's address identical on every network (including networks added later) while keeping custody fully with the workspace. The consequence: **changing recovery signers changes the workspace's account addresses.** | ||
| The Root's original signers and threshold are part of its [`CREATE2`](https://docs.openzeppelin.com/cli/2.8/deploying-with-create2) address calculation. Changing those *creation parameters* creates a different Root address and therefore different account addresses beneath it. Changing the signer set of an already deployed Root onchain would keep its address, but **Splits does not support rotating the Root's signers in an existing workspace**, in the app, API, or CLI. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @splits-gerard the way this is written sounds like changing recovery signers is possible at the contracts level when, afiak, it isn't |
||
|
|
||
| The practical way to change them today is to create a new workspace. Email support to migrate your offchain data (members, contacts, on/offramp info, schedules), and remember to update any revenue or funding sources (smart contracts, invoices) to the new workspace's addresses. | ||
| A quorum of the current recovery signers can technically submit a transaction directly to the Root contract to change its signers or threshold on a deployed network. This also means a compromised recovery quorum can do so. Splits does not synchronize such a change: on a network enabled later, the Root is deployed from its original creation parameters, with its original signers and threshold. The old recovery quorum could still control that Root. **Do not rely on a direct onchain rotation as a workspace-wide recovery change.** | ||
|
|
||
| To change recovery signers with product support today, create a new workspace with the intended recovery configuration. Email support to migrate your offchain data (members, contacts, on/offramp info, schedules), and update any revenue or funding sources (smart contracts, invoices) to the new workspace's addresses. | ||
|
|
||
| ## Keeping recovery healthy | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confused by this wording @splits-gerard wdym and is this appropriate?