Consensus Layer Header Proof
Execution-layer data is proven against a verified execution block hash, not against
individual fields of the Beacon ExecutionPayload. The shared container for this is
EthClHeaderProof:
-
EL Header: The proof carries the RLP-encoded execution-layer header (
elHeader).keccak256(elHeader)is the executionblockHash. All header fields used by higher-level proofs (stateRoot,transactionsRoot,receiptsRoot,blockNumber,timestamp, ...) are taken from this RLP header. -
Block-hash Merkle Proof:
blockhashBranchis an SSZ Merkle proof of thatblockHashagainstclHeader.bodyRoot. The leaf's generalized index is stored asgindexso the same container works across forks:- Deneb / Electra / Fulu:
EXECUTION_BLOCK_HASH_GINDEX_DENEB= 812 (BeaconBlockBody.execution_payload.block_hash) - Gloas (Glamsterdam):
EXECUTION_BLOCK_HASH_GINDEX_GLOAS= 2856 (BeaconBlockBody.signed_execution_payload_bid.message.parent_block_hash)
See the Gloas Light Client Sync Protocol.
- Deneb / Electra / Fulu:
-
Beacon Header:
clHeaderis the BeaconBlockHeader whosebodyRootis the Merkle root of the proof in step 2. -
Header Authentication:
clHeaderProofauthenticatesclHeadervia the sync committee (direct signature, historic summaries, or a short header chain).
If the verifier has already cached this execution header, the proof may use the blockHash
variant of ETH_EL_PROOF_UNION instead of a full EthClHeaderProof.
A fourth variant, witnessProof, attests keccak256(elHeader) with a list of
secp256k1 signatures (verification against configured witness keys is not
implemented yet).

Independently, the BeaconBlockHeader itself can be proven in 5 ways.
EthSignatureFinalizedHeaderProof
Sync-committee signature over an attested header, plus one Merkle branch from the
requested BeaconBlockHeader to that header's state root. The union selector says
which state field the branch authenticates. signatureFinalized carries either
checkpoint: a "finalized" request pins c4_finalized_root_gindex of the attested
slot, a "safe" request pins c4_current_justified_root_gindex. The gindex is not
stored. Both leaves have the same depth, so one progressive list fits both branches
(Deneb 6, Electra/Fulu 7, Gloas 9).
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthSignatureFinalizedHeaderProof(Container):
sync_committee_bits : BitVector [512] # participation bits of the sync committee that signed `header`
sync_committee_signature : ByteVector [96] # aggregate signature over `header`
header : BeaconBlockHeader # attested beacon header (not the requested block)
proof : ProgList [bytes32] # branch from the requested block root to `header.stateRoot`
EthCheckpointProof
A slim checkpoint proof anchoring the sync committee's currentSyncCommittee
against the state_root of a recent (checkpointz-servable) BeaconBlockHeader.
Used as the WSP anchor for both ZKSyncData (checkpoint) and LCSyncData
(bootstrap): the verifier reconstructs the SyncCommittee root from the
chain-of-trust pubkeys (ZK proof public input or LCU chain end) plus the
aggregate_pubkey packed here, walks proof up to the header.stateRoot,
and then anchors header itself against checkpointz.
proof is a progressive list rather than a vector because the currentSyncCommittee
branch depth differs between forks (Deneb = 5, Electra/Fulu = 6, Gloas = 11).
aggregate_pubkey is included so the verifier can compute the
SyncCommittee container root as SHA256(pubkeys_root || aggregate_padded)
without re-aggregating the 512 pubkeys (an expensive BLS operation).
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthCheckpointProof(Container):
header : BeaconBlockHeader # anchor header (state_root binds the merkle proof, slot+root anchor against checkpointz)
aggregate_pubkey : ByteVector [48] # SyncCommittee.aggregate_pubkey for sync_committee_root reconstruction
proof : ProgList [bytes32] # currentSyncCommitteeBranch (depth 5 in Deneb, 6 in Electra/Fulu, 11 in Gloas)
ProofHeader
a header structures used for a chain of headers in the Header Proof, by representing a header without the parentRoot used.
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class ProofHeader(Container):
slot : Uint64 # the slot of the block or blocknumber
proposerIndex : Uint64 # the index of the validator proposing the block
stateRoot : Bytes32 # the hash_tree_root of the state at the end of the block
bodyRoot : Bytes32 # the hash_tree_root of the block body
EthHeaderChainProof
If the header we want to prove is slightly older than the sync period for which the user has the keys, the easiest way to prove it is by providing a chain of headers from the header for the data up to a header where the user has the keys of the sync committee. headerChain is a proof using a list of subsequent headers to verify a block in the past with a later header holding a signature.
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthHeaderChainProof(Container):
headers : List [ProofHeader, 128] # fixed 80-byte headers; cap is a DoS bound (ssz_is_valid + hash_tree_root walk)
header : BeaconBlockHeader # the header of the beacon block containing the signature
sync_committee_bits : BitVector [512] # the bits of the validators that signed the header close to head
sync_committee_signature : ByteVector [96] # the signature of the sync committee
Referenced Types
EthHistoricHeaderProof
Since Clients usually have the public keys of the last sync period and are able to verify blocks, verifying an older block gets complicated, because you would need the public keys of the sync committee at that period, which are hardly available. In order to allow the verification of those historic blocks, we can use the historic summaries of the current state.
- Block Root Inclusion:
Start with the target
block_rootto verify. Combine it with all other 8192 block roots from the same period and generate a Merkle proof proving inclusion within that period’s block root list. - Historical Summary Proof:
Using the current BeaconState, locate the corresponding HistoricalSummary, which holds the summarized root (
summary_root) of that 8192-block list. Extend the Merkle proof to show inclusion of this summary in the historical_summaries tree. - State Root Proof:
Continue the Merkle proof from the
historical_summariestree up to thestate_rootof the BeaconState. This step links the historical proof chain to the current verified state. - Consensus Verification:
Finally, use the BeaconBlockHeader associated with the current state.
Match the derived
state_rootwith the one referenced in the block header. Then verify the BLS signature of the Sync Committee corresponding to that block header. This signature confirms the authenticity of the BeaconBlock and thus of the complete historical proof chain. Building the historic proof In order to build a historic proof, we need data, which can not be provided directly by the standard beacon api. At the time of writing, only lodestar offers an endpoint providing the merkle proof and the full list of historical summaries at /eth/v1/lodestar/states/{state_id}/historical_summaries. For the blockroots itself, of course you get each single blockroot for all 8192 blocks of the period so you can build the merkle proof with a lot of requests to the header-endpoint, but this would take very long, so fetching them all and caching all blockroots allows to build them fast and efficient. Those blockroots are then stored in the chain_store underdata/{chain_id}/{period}/blocks.ssz. When starting the prover with the -d option, it will use the fetched data. a proof using the historic summaries
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthHistoricHeaderProof(Container):
proof : ProgList [bytes32] # merkle proof from the blockroot over the historic_summaries to the state
header : BeaconBlockHeader # the header of the beacon block containing historic_summaries (usually close to head)
gindex : Uint64 # the combined gindex of the proof
sync_committee_bits : BitVector [512] # the bits of the validators that signed the header containing the historic_summaries
sync_committee_signature : ByteVector [96] # the signature of the sync committee
EthSignatureHeaderProof
A Signature Proof simply contains the BLS signature of the sync committee for the header to verify.
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthSignatureHeaderProof(Container):
sync_committee_bits : BitVector [512] # the bits of the validators that signed the header close to head
sync_committee_signature : ByteVector [96] # the signature of the sync committee
EthClHeaderProof
Proof that an RLP execution-layer header belongs to a signed BeaconBlock.
keccak256(elHeader) is proven against clHeader.bodyRoot at gindex
(EXECUTION_BLOCK_HASH_GINDEX_DENEB = 812, or EXECUTION_BLOCK_HASH_GINDEX_GLOAS = 2856 after Glamsterdam).
The Type is defined in src/chains/eth/ssz/verify_proof_types.h.
class EthClHeaderProof(Container):
elHeader : ProgBytes # RLP-serialized execution-layer header
clHeader : BeaconBlockHeader # BeaconBlockHeader whose bodyRoot is the Merkle root of blockhashBranch
blockhashBranch : ProgList [bytes32] # SSZ Merkle branch from the execution block hash to bodyRoot
gindex : Uint64 # 812 (Deneb/Electra/Fulu: execution_payload.block_hash) or 2856 (Gloas: signed_execution_payload_bid.message.parent_block_hash)
clHeaderProof : Union [ # authenticates clHeader
EthSignatureHeaderProof, # proof by providing the signature of the sync committee
EthHistoricHeaderProof, # proof for a historic block using the state_root of a current block
EthHeaderChainProof, # chain of headers up to a verifiable header
EthCheckpointProof, # WSP anchor via LightClientBootstrap (currentSyncCommittee branch)
EthSignatureFinalizedHeaderProof] # finalized or safe checkpoint inclusion under the attested state; the request tag picks the gindex
Referenced Types