EIP-8477 Recent-block pinning of delegation authorization (Recent Block Bound Delegation Authorizations)
No call decision · Security & privacy · EIP status Draft · created 2026-10-30
EIP-7702 delegation authorizations now require signing the block number and hash of a block within the last 256 blocks, preventing old, forgotten signatures from being used covertly later.
Why it is needed
Under EIP-7702, a delegation authorization remains valid indefinitely as long as the account nonce has not changed since signing. An authorization targeting a future nonce stays potentially usable until that nonce comes up. Even if the signer no longer intends to use that authorization, if the previously signed authorization data leaks or is stored somewhere, an attacker can use that signature later to install code on the account. This delayed exploitation cannot be prevented by expiration conditions placed on the delegated code or the transaction itself, because the protocol installs the delegation first. So the blockchain itself must enforce a freshness check relative to the signing time.
What changes
Today
- Delegation authorizations have no block reference, so a signature is valid indefinitely as long as the nonce has not changed.
- An authorization for a future nonce remains usable until that nonce's turn arrives.
- If a previously signed authorization leaks, an attacker can install code on the account even after the signer has forgotten about it.
- Even if you want to impose an expiration condition, neither delegated code nor computed values can prevent the protocol itself from installing it.
After EIP-8477
- Every authorization must sign both a block number (anchor_block_number) and a block hash (anchor_block_hash) together.
- An authorization applies only when it references one of the 256 immediately preceding ancestor blocks relative to the block that includes the transaction.
- If the anchor block is too old or belongs to a different chain history, only that authorization is silently skipped, and the rest of the transaction can proceed normally.
- After activation, the old 6-field authorization format with no block reference is itself rejected as invalid.
Who is affected
- Wallets and signing services: Must support the authorization schema expanded to 8 fields and must choose a fresh block reference from a chain trusted at signing time.
- Relayer: Must account for anchor expiration and the possibility of reorgs, since a successful transaction receipt does not guarantee that the authorization was actually applied.
- Client and tooling teams: Must implement branching logic for transaction decoding, the signing digest, and ancestor hash lookup before and after the activation fork.
- EIP-7702 users: The exploitable window for unused authorization signatures that are stored long-term or leaked is limited to 256 blocks, reducing the risk.
In depth
Authorization encoding extension
Each entry in the authorization_list of a type 0x04 transaction changes from 6 fields to 8 fields. anchor_block_number (a canonical RLP integer from 0 up to but not including 2**256) and anchor_block_hash (an RLP byte string of exactly 32 bytes) are added to the existing chain_id, address, nonce, y_parity, r, and s. If the field count is wrong, or there is non-canonical encoding, an incorrect type, or a structural range violation, the entire transaction is invalid. After activation, a 6-field legacy authorization entry is always invalid whether alone or mixed with 8-field entries, and before activation, an 8-field entry is treated as invalid under the legacy rules.
Signing digest change
The message used to recover the authority changes to keccak256(MAGIC || rlp([chain_id, address, nonce, anchor_block_number, anchor_block_hash])). The MAGIC (0x05) value itself does not change, but the number of signed fields increases from 3 to 5, so if either anchor field is modified, the original signature no longer authenticates that authority and re-signing is required. The field order on the outer transaction side and the outer_digest signing procedure remain unchanged.
Three-step freshness validation
Before signature recovery or accessing authority-specific state, three checks are performed in order. First, whether anchor_block_number is less than the block number N being processed; next, whether N minus anchor_block_number is at most 256; and finally, whether anchor_block_hash matches the actual ancestor block hash at that number. Because the first condition is checked before the subtraction, even a large number like 2**256-1 is safely filtered out without overflow. The allowed range of ancestor heights is [max(0, N-256), N-1], and if N=0, no anchor is valid.
Failure handling and gas accounting
An authorization entry that fails the freshness check skips signature recovery, warming the authority, recording the delegation, incrementing the authority's nonce, and the refund entirely, while processing of the transaction's remaining authorization entries and destination execution continue. This EIP does not introduce any additional gas fee, so EIP-7702's PER_EMPTY_ACCOUNT_COST, PER_AUTH_BASE_COST, and refund calculations remain unchanged, and a structurally valid authorization entry is charged regardless of whether it fails the freshness check.
Rationale for the 256-block window
The window length is set to 256 to match the existing recent-ancestor range that the BLOCKHASH (0x40) opcode can reference, so it requires no new history retention period. Even though EIP-2935 provides a longer block hash history in state, this EIP's authorization validity period is not extended beyond 256 blocks as a result.
Impact on installing/clearing delegation and reorgs
A signed anchor is required not only when installing or replacing a delegation but also when clearing a delegation by setting it to the zero address, with no exception allowing clearing without an anchor. Once a delegation is installed, it remains in place even if that authorization's anchor later expires, and even if destination execution reverts, the effect of an authorization that already passed remains in place. This restriction is based on the number of execution blocks produced, so anchors do not age if the chain halts, and a reorg can remove an anchor entirely, change its age, or even make an authorization that had expired on a lower branch valid again.
Status and potential for future changes
This EIP is currently in Draft status, is not yet finalized, and details may change. The source text states that the added fields increase transaction size and signature hashing workload, and that since an ancestor hash lookup is required for each authorization entry, client benchmarks and worst-case block size analysis are needed to verify whether the existing authorization gas schedule can remain unchanged. No separate decision on fork inclusion was found in the call records.