Corpus Core Docs

Block Proof

The Block Proof verifies that a specific execution-layer block is valid and correctly referenced by the consensus layer (Beacon Chain).

  1. Execution Block: The execution block is verified via ETH_EL_PROOF_UNION (c4_verify_block). This yields a verified RLP EL header and its keccak blockHash. Header-only RPC methods (eth_getBlockHeader, eth_blockNumber, eth_blobBaseFee, eth_maxPriorityFeePerGas) use the NONE body variant and reconstruct the result from the RLP header alone.
  2. Optional Body: For eth_getBlockByNumber / eth_getBlockByHash the proof may include the raw transactions and withdrawals. The verifier rebuilds transactionsRoot and withdrawalsRoot and compares them to the corresponding fields of the EL header.

This Proof is used for the following RPC-Methods:

EthBlockProof

The Block Proof: a verified EL header (via ETH_EL_PROOF_UNION) plus an optional body.

The Type is defined in src/chains/eth/ssz/verify_proof_types.h.

class EthBlockProof(Container):
    body    : Union [ 
        None,                  # no body, just header
        EthBlockBodyContent]   # the Block Body Content
    elProof : Union [          # the proof for the execution block
        Bytes32,               # 0: cached: verifier already holds this verified EL header
        EthClHeaderProof,      # 1: full consensus-layer proof of the EL header
        EthSequencerProof,     # 2: sequencer-signed execution payload (OP-Stack)
        EthWitnessHeaderProof, # 3: reserved; c4_verify_block rejects until ecrecover+allow-list exist
        EezL1Proof,            # 4: Proof of the blockhash based on the EEZ Proxy contract in L1
        EthEip2935Proof,       # 5: Proof of the blockhash based on EIP-2935; accepted by c4_verify_block on every chain
        ArbFeedProof]          # 6: Arbitrum sequencer feed signature

Referenced Types

EthBlockBodyContent

The content of an execution block body (only present for full-block RPC methods).

The Type is defined in src/chains/eth/ssz/verify_proof_types.h.

class EthBlockBodyContent(Container):
    transactions : ProgList [transactionsBytes] # the raw transactions of the block
    withdrawals  : ProgList [DenepWithdrawal]   # the list of withdrawals

EthBlockHeaderData

Compact block header data reconstructed from the verified RLP execution header. Used by eth_getBlockHeader, eth_gasPrice, eth_blobBaseFee, eth_maxPriorityFeePerGas, and as a lightweight verified header cache for eth_call privacy mode and log filters.

The Type is defined in src/chains/eth/ssz/verify_data_types.h.

class EthBlockHeaderData(Container):
    parentHash          : Bytes32          # the hash of the parent block
    stateRoot           : Bytes32          # the merkle root of the state at the end of the block
    receiptsRoot        : Bytes32          # the merkle root of the transaction receipts
    logsBloom           : ByteVector [256] # the bloom filter of the logs
    blockNumber         : Uint64           # the block number
    gasLimit            : Uint64           # the gas limit of the block
    gasUsed             : Uint64           # the gas used of the block
    timestamp           : Uint64           # the timestamp of the block
    baseFeePerGas       : Uint256          # the base fee per gas of the block
    blockHash           : Bytes32          # the hash of the block
    blobGasUsed         : Uint64           # the gas used for the blob transactions
    excessBlobGas       : Uint64           # the excess blob gas of the block
    feeRecipient        : Address          # the address of the fee recipient (coinbase)
    transactionsRoot    : Bytes32          # transactionsRoot
    requestsHash        : Bytes32          # the requestHash ( eip-7685 )
    blockAccessListHash : Bytes32          # the blockAccessListHash ( EIP-7928 )

EthBlockData

Display the block data reconstructed from the verified RLP execution header (and, for full-block methods, the proven transactions / withdrawals).

The Type is defined in src/chains/eth/ssz/verify_data_types.h.

class EthBlockData(Container):
    _optmask              : Uint32                     # bitmask defining the properties shown in json
    number                : Uint64                     # the blocknumber
    hash                  : Bytes32                    # the blockhash
    transactions          : Union [                    # the transactions
        ProgList [bytes32],                            # the transactions hashes
        ProgList [EthTxData]]                          # the transactions data
    logsBloom             : ByteVector [256]           # the logsBloom
    receiptsRoot          : Bytes32                    # the receiptsRoot
    extraData             : Bytes[32]                  # the extraData
    withdrawalsRoot       : Bytes32                    # the withdrawalsRoot
    baseFeePerGas         : Uint256                    # the baseFeePerGas
    nonce                 : ByteVector [8]             # the nonce
    miner                 : Address                    # the miner
    withdrawals           : ProgList [DenepWithdrawal] # the withdrawals
    excessBlobGas         : Uint64                     # the excessBlobGas
    difficulty            : Uint64                     # the difficulty
    gasLimit              : Uint64                     # the gasLimit
    gasUsed               : Uint64                     # the gasUsed
    timestamp             : Uint64                     # the timestamp
    mixHash               : Bytes32                    # the mixHash
    parentHash            : Bytes32                    # the parentHash
    uncles                : ProgList [bytes32]         # the uncles (ommer block hashes)
    parentBeaconBlockRoot : Bytes32                    # the parentBeaconBlockRoot
    sha3Uncles            : Bytes32                    # the sha3Uncles of the uncles
    transactionsRoot      : Bytes32                    # the transactionsRoot
    stateRoot             : Bytes32                    # the stateRoot
    blobGasUsed           : Uint64                     # the gas used for the blob transactions
    requestsHash          : Bytes32                    # the requestHash ( eip-7685 )
    blockAccessListHash   : Bytes32                    # the blockAccessListHash ( EIP-7928 )
    l1BlockNumber         : Uint64                     # Arbitrum: L1 block number from mixHash bytes 8..16
    sendCount             : Uint64                     # Arbitrum: send count from mixHash bytes 0..8
    sendRoot              : Bytes32                    # Arbitrum: send root, the 32-byte extraData

Referenced Types