Execution Layer Header Proof
All proofs are based on the correct blockhash of the execution block.
In order to prove this blockhash the ETH_EL_PROOF_UNION offers four variants:
clProof: a full consensus-layer proof of the EL headersequencerProof: a sequencer-signed execution payload (OP-Stack and other L2s)witnessProof: a list of witness signatures over the EL block hash ( not implemented yet )cached: a cached verified EL header, which simply means no proof, since the client already holds this verified EL header
The clProof is the most complete proof and is used to prove the EL header.
The sequencerProof is used to prove the execution payload of an OP-Stack or other L2.
The witnessProof is used to prove the EL block hash with a list of witness signatures.
Two further variants anchor a block hash in contract state:
eezL1Proof: the L2 block hash is a storage value of the EEZ proxy contract on L1, proven by an L1 account proofeip2935: the block hash is a storage value of the EIP-2935 history contract of a newer, already proven block of the same chain
Both nest an EthAccountProof, whose own elProof is again an ETH_EL_PROOF_UNION. The proof
therefore forms a chain: each link proves the state root that authenticates the next block hash,
until a variant c4_verify_block accepts on its own (clProof, sequencerProof, or a cached
blockHash). On an EEZ chain that anchor is a clProof of the L1.
ArbFeedProof
Arbitrum sequencer feed proof (Nitro signatureV2), index 6 of ETH_EL_PROOF_UNION.
digest = keccak256( "Arbitrum Nitro Feed:"
| be64(chainId)
| be64(number(elHeader) - genesis)
| keccak256(elHeader)
| signedTail )
signedTail is everything after blockHash in Nitro's SignatureHash:
blockMetadata | be64(delayedMessagesRead) | kind | poster | be64(l1BlockNumber)
| be64(timestamp) | [requestId] | [l1BaseFee] | l2Msg
The verifier recovers the signer and accepts it when it equals the batch poster
cached from arbSignerSyncData. The Arbitrum server builds this object for
arb_preconf/latest and stores signedTail uncompressed.
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class ArbFeedProof(Container):
elHeader : ProgBytes # RLP-serialized L2 execution header
signedTail : Union [ # ZSTD-compressed or uncompressed tail
Bytes[1073741824], # ZSTD-compressed prefixed execution payload
Bytes[1073741824]] # uncompressed prefixed execution payload
signature : ByteVector [65] # secp256k1 (r, s, v), v in {0,1} or {27,28}
EthEip2935Proof
Header of an older block, proven through the EIP-2935 history contract of a newer block.
EIP-2935 stores the hashes of the last 8191 blocks in the storage of the system contract
0x0000F90827F1C53a10cb7A02335B175320002935. The hash of block n lives in slot n % 8191
and can be read from the state of every block in n + 1 .. n + 8191. A block never holds
its own hash.
account is the account proof of that contract for the slot of elHeader's block number.
account.elProof proves the newer block whose stateRoot the proof is checked against. On an
EEZ rollup that newer block is the one anchored on L1, so account.elProof is an eezL1Proof.
The verifier (c4_verify_eip2935_block)
- verifies
account.elProofas a block of the same chain; that proof may itself be aneip2935proof, - checks that
account.addressis the history contract and thataccount.storageProofholds exactly one entry, - verifies the account and storage proof against the
stateRootof the newer block, - accepts
elHeaderonly ifkeccak256(elHeader)equals the proven storage value (a missing or zero value is rejected), - checks that the proven
keyispad32(number % 8191)for the block number ofelHeader, - checks that the block lies in the history window of the newer block:
newer - 8191 <= number < newer.c4_verify_blockaccepts this variant on every chain. The EEZ prover creates it for a block of the 8191 blocks before the block anchored on L1.
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthEip2935Proof(Container):
elHeader : ProgBytes # RLP-serialized execution-layer l2 header
account : EthAccountProof # Proof of the blockhash based on EIP-2935. the blockNumber will be taken from the header
Referenced Types
EezL1Proof
L2 header of an EEZ (Ethereum Economic Zone) rollup, proven through L1 state.
The EEZ proxy contract on L1 stores one RollupConfig per rollup. Its root field holds the
hash of the last L2 block that was posted to L1. account is an eth_getProof-style proof of
exactly this storage slot, and account.elProof proves the L1 execution header it was taken
from. It must be a clProof; a cached blockHash is not accepted for the L1 block.
The storage slot depends only on the rollupId of the chain:
base = keccak256(pad32(rollupId) || pad32(2)) // mapping `rollups` lives in slot 2
base + 0 : rollupContract
base + 1 : root <- the proven L2 block hash
base + 2 : etherBalance
The verifier
- checks that
account.addressis the EEZ proxy configured for the chain, - checks that
account.storageProofholds exactly one entry whosekeyisbase + 1, - verifies
account.elProofas an L1 header and the account and storage proof against itsstateRoot, - rejects a missing or zero storage value (no block has been posted for the rollup),
- accepts
elHeaderonly ifkeccak256(elHeader)equals the proven storage value. The hash on L1 is an anchor, not the head of the L2: RollupX posts it every 15 minutes while the L2 is active, every 4 hours while it is idle, and additionally with each cross-chain transaction. As long as this is the only block proof of an EEZ chain,latest,safeandfinalizedare resolved on L1, and the proven L2 block is the one L1 knew at that L1 block.
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EezL1Proof(Container):
elHeader : ProgBytes # RLP-serialized execution-layer l2 header
account : EthAccountProof # Proof of the blockhash based on the AccountProof from L1
Referenced Types
EthWitnessHeaderProof
Witness-signed EL header. keccak256(elHeader) is the blockHash that each
witness signed. The header is otherwise unauthenticated until those signatures
are checked against configured witness keys (not implemented yet).
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthWitnessHeaderProof(Container):
elHeader : ProgBytes # RLP-serialized execution-layer header
witnesses : List [EthBlockhashWitness, 16] # cap 16 is the product allow-list size, not an encoding limit
Referenced Types
EthBlockhashWitness
One witness attestation of keccak256(elHeader).
address is the claimed signer; signature is secp256k1 (r, s, v).
Verification (ecrecover + allow-list) is reserved for a later release.
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthBlockhashWitness(Container):
address : Address # claimed signer (must match ecrecover of signature)
signature : ByteVector [65] # secp256k1 signature over keccak256(elHeader)
EthSequencerProof
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthSequencerProof(Container):
payload : Union [ # execution payload (compressed or uncompressed)
Bytes[1073741824], # ZSTD-compressed prefixed execution payload
Bytes[1073741824]] # uncompressed prefixed execution payload
signature : ByteVector [65] # sequencer secp256k1 signature (r, s, v)