ERC-8403 Account authority lifecycle
Draft · Accounts & wallets · created 2026-08-29
A standard for the process of adding, rotating, and revoking the keys and rules (authorities) that control an account, and for checking in a single way whether that authority is still valid when approving a transaction.
Why it is needed
Under native account abstraction, multiple keys and rules can control a single account, but each account model defines adding, rotating, and revoking in its own way. As a result, a wallet cannot read or change the authority of an account created by a different wallet, and a user who has a stolen key revoked cannot tell how much longer that key might still be usable. Furthermore, under EIP-8141, once a transaction is approved, the SENDER frames within it call out to other contracts as the account without re-executing the account's code, so any limit attached to a key must be checked at the moment of approval itself, with no way to check it afterward.
What to implement
event AuthorityStateChanged(bytes32 indexed root);: An event emitted, along with the new root value, only when the authority state changes.function authorityRoot() external view returns (bytes32 root, bytes32 scheme);: Returns the account's current root (0 for the record-based scheme) and the identifier of the recovery scheme the account has declared.event AuthoritySet(bytes32[16] predicates);: An event that logs the predicate values of all 16 slots after setAuthorities has been applied.function setAuthorities(bytes32[16] calldata predicates) external;: Replaces all 16 slots with a new set of predicates and sets the root computed from them as the current root.function validate(uint256 id, bytes32 predicate, bytes32[4] calldata siblings) external;: Recomputes the root from the given slot id, predicate, and sibling nodes, checks that it matches the current root and that the signature is valid, and then approves.function home() external view returns (uint256 chainId, address account, address adapter, uint256 maxAge, uint256 blockNumber);: Returns the home chain id, home account address, adapter, and maximum allowed age that the follower account has fixed, along with the currently stored home block number.function sync(uint256 blockNumber, bytes calldata proof) external;: Pulls the home account's state as of the specified home block from the adapter, and updates the follower's current root and home block number.function read(uint256 chainId, address account, bytes32 slot, uint256 blockNumber, bytes calldata proof) external view returns (bytes32 value, uint256 timestamp);: Returns, along with a proof, the stored value of the specified chain, account, and slot as of a specific block, and that block's timestamp.
In depth
Authority and authority state
An authority is an (authority_id, predicate) pair. The authority_id is fixed when the authority is added and is a 32-byte identifier that is unique within the account, remaining the same even when the authority is rotated. The predicate is data defined by the account, such as a public key, validator address, threshold, spending limit, or expiration. An account maintains its set of authorities using one of two schemes. In the root scheme, each authority is a leaf of a tree committed to a single root; in the record scheme, each authority is a record in state that the approval check reads directly. A leaf must commit to both the authority_id and the predicate, and the tree encoding must be able to distinguish leaves from internal nodes.
Lifecycle operations: add/rotate/revoke
Add places a new authority into the set, rotate changes only the predicate of an existing authority_id, and revoke removes an authority from the set. These operations take effect only when they actually change the authority state. The first authority state must be fixed by the account's initcode or by the data that produces the account address, or it must be approved by the key for that address. Any operation after that can be applied only through a transaction approved by the account, through sync, or through a detached change.
Sync and detached change
Sync is a procedure that replaces a follower account's authority state outright with the state held by a home account on another chain (the home chain), and anyone may submit it. A follower's first authority state must have no authorities at all, and the data that fixes this must also fix the home chain, the home account, the source of the state (the adapter), and the maximum allowed age. Any value read by the follower's own approval check or by sync, from the follower's own storage, must be writable only through sync; sync can apply only a home block state that is later than the last applied block and no older than the maximum age, and it cannot be applied to the home chain itself. A detached change is any other operation that has its own witness and replay protection and that anyone may submit; it can be applied at most once per chain, it requires a witness that satisfies the predicate in the authority state at that time, and that witness must cover the account, the chain (or an all-chains marker), the sequence value being consumed, and, for accounts that maintain a root, the root being replaced.
Approval check: membership and witness
The approval stage is the stage that approves or holds a transaction; it does not include the protocol's checks on nonce and balance. For approval, both of the following must hold. First, membership: the acting authority must belong to the current authority state, confirmed by a membership proof under the root scheme or by a direct read under the record scheme. Second, witness: there must be a witness that satisfies the predicate. The witness must be bound to the account, the chain, the replay-protection mechanism, and the whole transaction, including all of its calls. Every mutable state value read by the approval check must be writable only under the account's own authority, or only through sync.
Recovery scheme and EIP-8141 binding
A recovery scheme is a specification that lets a wallet read an account's authority set from the chain, build the data needed for checks, and submit lifecycle operations; it has a nonzero 32-byte identifier. An account may declare at most one scheme, and declaring no scheme at all is still compliant with the standard. In the EIP-8141 binding, an account has code and keeps the current root or record in its own storage. The approval stage expresses approval or holding through whether an APPROVE call occurs, and a check that uses an entry from the signatures list as a witness approves only when that entry's msg is empty; the signature must be made over a canonical signing hash that includes the chain, the sender, the nonce, and all frames. An account that follows this binding must implement IERC8403 (authorityRoot, AuthorityStateChanged).
The SLOTS16 scheme: a 16-slot tree and the NO_MANAGE bit
The identifier for SLOTS16 is keccak256("ERC8403_SLOTS16"). The authority set consists of 16 slots numbered 0 through 15, where authority_id is the slot number and predicate is a single 32-byte word. The lower 160 bits are the signer address, bit 160 is NO_MANAGE, and the remaining bits must be zero; an all-zero word means an empty slot. An authority with NO_MANAGE set cannot approve a SENDER frame targeting the account, and so cannot change or remove other authorities. The tree is a binary tree of height 4, where leaves are keccak256(0x00 || id || predicate) and nodes are keccak256(0x01 || left || right). Validate recomputes the root from the supplied siblings, checks that it matches the current root, and checks that item 0 of the signatures list has an empty msg and a signer equal to the lower 160 bits of the predicate, before approving. setAuthorities takes all 16 words fresh, replaces the root with the one computed from them, and emits AuthoritySet; it reverts if any disallowed bit is set, if a nonzero word has a zero signer, or if not a single word has NO_MANAGE turned off.
SLOTS16_SYNC: following authorities from another chain
An account that declares SLOTS16_SYNC is a follower, and its home account declares SLOTS16. The follower's initcode fixes the home chain identifier, the home account, the adapter, and the maximum allowed age (in seconds), and the follower stores the current root and the home block number (both initially 0). home() returns these fixed values along with the stored home block number. sync(blockNumber, proof) calls the adapter's read to obtain the value of slot 0 of the home account at the end of that block, and it reverts if the executing chain differs from the fixed chainId, if blockNumber is not greater than the stored value, or if that block's timestamp is older than maxAge seconds relative to the executing block. Otherwise it stores blockNumber and takes the received value as the new current root.
Mapping to the EIP-8130 keystore, and proposal status
This mapping is an informative description. The keystore's identifier corresponds to authority_id, and the value the keystore stores under that identifier corresponds to predicate; the account uses the record scheme, and checks read the current record of the acting authority through the keystore. Add/rotate/revoke are all detached changes made as signed account changes in the keystore; when the keystore derives the identifier from a key, a key rotation is treated as a revoke plus an add, not as a rotate. If an all-chains change that re-grants the same authority has not yet been applied to a given chain, a revoke that occurred on that specific chain does not immediately take effect. An authority that is verified against state the account cannot write, such as a delegate, does not satisfy the requirement this standard imposes, namely that state read by a check must be writable only through the account's own authority. This ERC's current status is Draft, a proposal that may still change or be abandoned.
Things to watch out for
- Revocation delay: A check rejects a removed authority no later than the next block, but any action that authority already took before the revocation took effect remains valid.
- Authority to change the set: An authority that can approve lifecycle operations can remove every other authority, and if two authorities conflict, the change that is applied first wins. Under EIP-8141, every authority has this power unless a check restricts the scope of approval or the account is a follower; under SLOTS16, only authorities with NO_MANAGE set cannot use this power through a SENDER frame targeting the account.
- Witness scope: A witness that does not cover the whole transaction can be reused (replayed) in a different call or on a different chain. Under EIP-8141, a signature over a non-empty 32-byte msg does not cover the transaction's frames.
- Per-chain application: A revocation that occurs on one chain does not apply to other chains, and the authorities from the first authority state remain usable on every chain where the revocation has not been applied, including chains where the account is created later.
- Scope of trust in sync: An authority revoked on the home chain can keep working on a follower until a sync reflecting a block after that revocation is applied to the follower, and no one is obligated to submit that sync. The adapter and the state it reads govern the roots of every follower that designates it, and also determine which home block is treated as final.