{"eip":7807,"title":"SSZ execution blocks","description":"Migration of execution blocks to SSZ","authors":["Etan Kissling (@etan-status)","Gajinder Singh (@g11tech)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2024-10-28","requires":[7495,7773,7916],"discussionsTo":"https://ethereum-magicians.org/t/eip-7807-ssz-execution-blocks/21580","repo":"EIPs","label":"EIP-7807","officialUrl":"https://eips.ethereum.org/EIPS/eip-7807","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7807.md","url":"https://eips.huatuo.xyz/eip-7807/","tldr":{"en":"Proposes re-encoding execution blocks in SSZ instead of RLP, so the block hash becomes an SSZ hash_tree_root shared with the consensus layer and individual block fields become provable.","ja":"実行ブロックを RLP ではなく SSZ で再エンコードすることを提案する。ブロックハッシュはコンセンサスレイヤーと共有する SSZ の hash_tree_root になり、個々のブロックフィールドを証明できるようになる。","ko":"실행 블록을 RLP 대신 SSZ로 다시 인코딩하자고 제안한다. 블록 해시는 합의 계층과 공유하는 SSZ hash_tree_root가 되고, 블록의 개별 필드를 증명할 수 있게 된다.","zh":"提议用 SSZ 而非 RLP 重新编码执行区块，使区块哈希成为与共识层共用的 SSZ hash_tree_root，并让区块中的各个字段可被证明。"},"tags":["ssz","block","serialization","core","consensus"],"explainers":{"en":{"lang":"en","tldr":"Proposes re-encoding execution blocks in SSZ instead of RLP, so the block hash becomes an SSZ hash_tree_root shared with the consensus layer and individual block fields become provable.","tags":["ssz","block","serialization","core","consensus"],"related":[7495,7916,2718,7773,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7807/","markdown":"## What problem does it solve?\n\nEthereum has two serialization worlds. The consensus layer uses SSZ (Simple Serialize) with Merkle `hash_tree_root` commitments. The execution layer encodes the block header in RLP, hashes it with keccak256, and commits to transactions, receipts and withdrawals with Merkle-Patricia tries. Every interaction between the two layers has to translate between them.\n\nEIP-7807 moves the execution block to SSZ. The spec lists four benefits:\n\n1. The consensus layer can compute and check the execution block hash on its own, without asking the execution client.\n2. The Engine API could switch from JSON to binary SSZ, which the spec estimates roughly halves message size.\n3. Individual block fields become provable with small Merkle proofs, and proofs stay valid as the block evolves.\n4. PoW-era leftovers and the logs bloom can be dropped.\n\n## How it works\n\n- A new SSZ `ExecutionPayload` replaces the RLP header plus body. It is a `ProgressiveContainer` ([EIP-7495](/eip-7495/)) with fields such as `parent_hash`, `miner`, `state_root`, `transactions`, `receipts_root`, `number`, `gas_limits`, `gas_used`, `timestamp`, `base_fees_per_gas`, `withdrawals`, `excess_gas`, `requests_hash`, `block_access_list` and `slot_number`.\n- Regular and blob gas are paired into one `GasAmounts` structure (and fees into `BlobFeesPerGas`) instead of separate header fields.\n- Lists use `ProgressiveList` ([EIP-7916](/eip-7916/)), so they have no hard-coded size limit and their Merkle positions stay stable.\n- **Not** changed: each transaction and receipt keeps its [EIP-2718](/eip-2718/) typed-envelope bytes; withdrawals and the block access list keep RLP; the state trie is untouched.\n- The **block hash** becomes `ExecutionPayload.hash_tree_root()` everywhere: `BLOCKHASH`, JSON-RPC `blockHash`, devp2p and consensus-layer references.\n- A header is just an SSZ summary of the payload with the large lists replaced by their roots.\n- JSON-RPC blocks report `logsBloom` as all `0xff` bytes, forcing consumers to check receipts instead of trusting a bloom that no longer exists.\n\n## Sample code\n\nThe core container from the spec, in the consensus-specs Python style:\n\n```python\nclass GasAmounts(ProgressiveContainer(active_fields=[1] * 2)):\n    regular: GasAmount   # uint64\n    blob: GasAmount\n\nclass ExecutionPayload(ProgressiveContainer(active_fields=[1] * 18)):\n    parent_hash: Root\n    miner: ExecutionAddress\n    state_root: Bytes32\n    transactions: ProgressiveList[ProgressiveByteList]\n    receipts_root: Root\n    number: uint64\n    gas_limits: GasAmounts\n    gas_used: GasAmounts\n    timestamp: uint64\n    # ... extra_data, mix_hash, base_fees_per_gas, withdrawals, excess_gas,\n    #     parent_beacon_block_root, requests_hash, block_access_list, slot_number\n\nblock_hash = payload.hash_tree_root()   # replaces keccak256(rlp(header))\n```\n\n## Things to know\n\n- Status is **Draft**. It is not in the scheduled list for Glamsterdam ([EIP-7773](/eip-7773/)).\n- Contracts that parse RLP block headers (for example to verify a header against `BLOCKHASH`) would break and need SSZ proof logic instead.\n- The new hash uses SHA-256 rather than keccak256. The spec considers collision risk with old keccak-based hashes negligible.\n- The receipt-level `logsBloom` is unaffected; only the block-level bloom is retired.\n- It builds on the Gloas payload envelope introduced with ePBS ([EIP-7732](/eip-7732/)).\n"},"ja":{"lang":"ja","tldr":"実行ブロックを RLP ではなく SSZ で再エンコードすることを提案する。ブロックハッシュはコンセンサスレイヤーと共有する SSZ の hash_tree_root になり、個々のブロックフィールドを証明できるようになる。","tags":["ssz","block","serialization","core","consensus"],"related":[7495,7916,2718,7773,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7807/","markdown":"## 何を解決するのか\n\nEthereum には 2 つのシリアライズの世界があります。コンセンサスレイヤーは SSZ（Simple Serialize）と、Merkle `hash_tree_root` によるコミットメントを使います。実行レイヤーはブロックヘッダーを RLP でエンコードして keccak256 でハッシュし、トランザクション、レシート、引き出しを Merkle-Patricia トライでコミットします。2 つのレイヤー間のやり取りでは、毎回その間の変換が必要です。\n\nEIP-7807 は実行ブロックを SSZ に移します。仕様は 4 つの利点を挙げています。\n\n1. コンセンサスレイヤーが、実行クライアントに問い合わせずに、実行ブロックハッシュを自分で計算・確認できる。\n2. Engine API を JSON からバイナリの SSZ に切り替えられる。仕様の見積もりでは、メッセージサイズがおよそ半分になる。\n3. 個々のブロックフィールドを小さな Merkle 証明で証明でき、ブロックが進化しても証明は有効なまま。\n4. PoW 時代の名残と logs bloom を廃止できる。\n\n## 仕組み\n\n- 新しい SSZ の `ExecutionPayload` が、RLP のヘッダーと本体を置き換えます。これは `ProgressiveContainer`（[EIP-7495](/eip-7495/)）で、`parent_hash`、`miner`、`state_root`、`transactions`、`receipts_root`、`number`、`gas_limits`、`gas_used`、`timestamp`、`base_fees_per_gas`、`withdrawals`、`excess_gas`、`requests_hash`、`block_access_list`、`slot_number` などのフィールドを持ちます。\n- 通常ガスと blob ガスは、別々のヘッダーフィールドではなく 1 つの `GasAmounts` 構造にまとめられます（手数料も `BlobFeesPerGas` にまとめられます）。\n- リストは `ProgressiveList`（[EIP-7916](/eip-7916/)）を使うため、サイズの上限が固定されておらず、Merkle 上の位置も安定します。\n- 変更**されない**もの: 各トランザクションとレシートは [EIP-2718](/eip-2718/) の typed envelope のバイト列のまま。引き出しとブロックアクセスリストは RLP のまま。ステートトライには手を加えません。\n- **ブロックハッシュ**は、`BLOCKHASH`、JSON-RPC の `blockHash`、devp2p、コンセンサスレイヤーからの参照など、あらゆる場所で `ExecutionPayload.hash_tree_root()` になります。\n- ヘッダーは、大きなリストをそれぞれのルートに置き換えた、ペイロードの SSZ 要約にすぎません。\n- JSON-RPC のブロックは `logsBloom` をすべて `0xff` のバイト列として返します。存在しない bloom を信用せず、レシートを確認するよう利用側に促すためです。\n\n## サンプルコード\n\n仕様のコアとなるコンテナを、consensus-specs の Python スタイルで示します。\n\n```python\nclass GasAmounts(ProgressiveContainer(active_fields=[1] * 2)):\n    regular: GasAmount   # uint64\n    blob: GasAmount\n\nclass ExecutionPayload(ProgressiveContainer(active_fields=[1] * 18)):\n    parent_hash: Root\n    miner: ExecutionAddress\n    state_root: Bytes32\n    transactions: ProgressiveList[ProgressiveByteList]\n    receipts_root: Root\n    number: uint64\n    gas_limits: GasAmounts\n    gas_used: GasAmounts\n    timestamp: uint64\n    # ... extra_data, mix_hash, base_fees_per_gas, withdrawals, excess_gas,\n    #     parent_beacon_block_root, requests_hash, block_access_list, slot_number\n\nblock_hash = payload.hash_tree_root()   # replaces keccak256(rlp(header))\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。Glamsterdam の予定リスト（[EIP-7773](/eip-7773/)）には入っていません。\n- RLP のブロックヘッダーをパースするコントラクト（たとえば `BLOCKHASH` に対してヘッダーを検証するもの）は壊れるため、代わりに SSZ の証明ロジックが必要になります。\n- 新しいハッシュは keccak256 ではなく SHA-256 を使います。仕様は、古い keccak ベースのハッシュとの衝突リスクは無視できると見ています。\n- レシート単位の `logsBloom` は影響を受けません。廃止されるのはブロック単位の bloom だけです。\n- ePBS（[EIP-7732](/eip-7732/)）で導入された Gloas のペイロードエンベロープを土台にしています。\n"},"ko":{"lang":"ko","tldr":"실행 블록을 RLP 대신 SSZ로 다시 인코딩하자고 제안한다. 블록 해시는 합의 계층과 공유하는 SSZ hash_tree_root가 되고, 블록의 개별 필드를 증명할 수 있게 된다.","tags":["ssz","block","serialization","core","consensus"],"related":[7495,7916,2718,7773,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7807/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움에는 두 개의 직렬화 세계가 있습니다. 합의 계층은 SSZ(Simple Serialize)와 Merkle `hash_tree_root` 커밋먼트를 사용합니다. 실행 계층은 블록 헤더를 RLP로 인코딩해 keccak256으로 해시하고, 트랜잭션, 영수증, 인출은 Merkle-Patricia 트라이로 커밋합니다. 두 계층 사이의 모든 상호작용에서는 이 둘 사이를 번역해야 합니다.\n\nEIP-7807은 실행 블록을 SSZ로 옮깁니다. 스펙은 네 가지 이점을 듭니다.\n\n1. 합의 계층이 실행 클라이언트에 묻지 않고도 실행 블록 해시를 스스로 계산하고 확인할 수 있다.\n2. Engine API를 JSON에서 바이너리 SSZ로 바꿀 수 있으며, 스펙은 메시지 크기가 대략 절반으로 줄 것으로 추정한다.\n3. 블록의 개별 필드를 작은 Merkle 증명으로 증명할 수 있고, 블록이 진화해도 증명은 계속 유효하다.\n4. PoW 시절의 잔재와 logs bloom을 없앨 수 있다.\n\n## 어떻게 동작하나요?\n\n- 새로운 SSZ `ExecutionPayload`가 RLP 헤더와 본문을 대체합니다. 이는 `ProgressiveContainer`([EIP-7495](/eip-7495/))이며 `parent_hash`, `miner`, `state_root`, `transactions`, `receipts_root`, `number`, `gas_limits`, `gas_used`, `timestamp`, `base_fees_per_gas`, `withdrawals`, `excess_gas`, `requests_hash`, `block_access_list`, `slot_number` 같은 필드를 가집니다.\n- 일반 가스와 blob 가스는 별도의 헤더 필드 대신 하나의 `GasAmounts` 구조로 묶입니다(수수료도 `BlobFeesPerGas`로 묶입니다).\n- 리스트는 `ProgressiveList`([EIP-7916](/eip-7916/))를 사용하므로 하드코딩된 크기 제한이 없고 Merkle 상의 위치도 안정적으로 유지됩니다.\n- 바뀌지 **않는** 것: 각 트랜잭션과 영수증은 [EIP-2718](/eip-2718/) 타입 봉투 바이트를 유지합니다. 인출과 블록 접근 목록은 RLP를 유지합니다. 상태 트라이는 건드리지 않습니다.\n- **블록 해시**는 `BLOCKHASH`, JSON-RPC `blockHash`, devp2p, 합의 계층의 참조 등 모든 곳에서 `ExecutionPayload.hash_tree_root()`가 됩니다.\n- 헤더는 큰 리스트를 각자의 루트로 대체한, 페이로드의 SSZ 요약일 뿐입니다.\n- JSON-RPC 블록은 `logsBloom`을 모두 `0xff` 바이트로 보고하여, 더는 존재하지 않는 bloom을 믿지 말고 영수증을 확인하도록 소비자에게 강제합니다.\n\n## 샘플 코드\n\n스펙의 핵심 컨테이너를 consensus-specs의 Python 스타일로 나타낸 것입니다.\n\n```python\nclass GasAmounts(ProgressiveContainer(active_fields=[1] * 2)):\n    regular: GasAmount   # uint64\n    blob: GasAmount\n\nclass ExecutionPayload(ProgressiveContainer(active_fields=[1] * 18)):\n    parent_hash: Root\n    miner: ExecutionAddress\n    state_root: Bytes32\n    transactions: ProgressiveList[ProgressiveByteList]\n    receipts_root: Root\n    number: uint64\n    gas_limits: GasAmounts\n    gas_used: GasAmounts\n    timestamp: uint64\n    # ... extra_data, mix_hash, base_fees_per_gas, withdrawals, excess_gas,\n    #     parent_beacon_block_root, requests_hash, block_access_list, slot_number\n\nblock_hash = payload.hash_tree_root()   # replaces keccak256(rlp(header))\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다. Glamsterdam의 예정 목록([EIP-7773](/eip-7773/))에는 들어 있지 않습니다.\n- RLP 블록 헤더를 파싱하는 컨트랙트(예: `BLOCKHASH`에 대해 헤더를 검증하는 경우)는 동작하지 않게 되며, 대신 SSZ 증명 로직이 필요합니다.\n- 새 해시는 keccak256이 아니라 SHA-256을 사용합니다. 스펙은 기존 keccak 기반 해시와의 충돌 위험을 무시할 수 있는 수준으로 봅니다.\n- 영수증 수준의 `logsBloom`은 영향을 받지 않습니다. 폐기되는 것은 블록 수준의 bloom뿐입니다.\n- ePBS([EIP-7732](/eip-7732/))와 함께 도입된 Gloas 페이로드 봉투를 기반으로 합니다.\n"},"zh":{"lang":"zh","tldr":"提议用 SSZ 而非 RLP 重新编码执行区块，使区块哈希成为与共识层共用的 SSZ hash_tree_root，并让区块中的各个字段可被证明。","tags":["ssz","block","serialization","core","consensus"],"related":[7495,7916,2718,7773,7732],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7807/","markdown":"## 它解决什么问题？\n\n以太坊有两个序列化的世界。共识层使用 SSZ（Simple Serialize）以及 Merkle `hash_tree_root` 承诺。执行层则用 RLP 编码区块头，用 keccak256 做哈希，并用 Merkle-Patricia 树承诺交易、收据和提款。两层之间的每一次交互都必须在两者之间转换。\n\nEIP-7807 把执行区块迁移到 SSZ。规范列出了四点好处：\n\n1. 共识层可以自行计算并检查执行区块哈希，而无需询问执行客户端。\n2. Engine API 可以从 JSON 切换为二进制 SSZ，规范估计消息大小大约减半。\n3. 区块中的各个字段可以用小型 Merkle 证明来证明，并且随着区块演进，证明仍然有效。\n4. 可以去掉 PoW 时代的遗留字段和 logs bloom。\n\n## 它如何运作\n\n- 新的 SSZ `ExecutionPayload` 取代 RLP 的区块头加区块体。它是一个 `ProgressiveContainer`（[EIP-7495](/eip-7495/)），包含 `parent_hash`、`miner`、`state_root`、`transactions`、`receipts_root`、`number`、`gas_limits`、`gas_used`、`timestamp`、`base_fees_per_gas`、`withdrawals`、`excess_gas`、`requests_hash`、`block_access_list` 和 `slot_number` 等字段。\n- 常规 gas 和 blob gas 被配对到一个 `GasAmounts` 结构中（费用则配对到 `BlobFeesPerGas`），而不再是分开的区块头字段。\n- 列表使用 `ProgressiveList`（[EIP-7916](/eip-7916/)），因此没有硬编码的大小限制，其 Merkle 位置也保持稳定。\n- **不变**的部分：每笔交易和每份收据仍保持其 [EIP-2718](/eip-2718/) 类型化信封的字节；提款和区块访问列表仍使用 RLP；状态树不受影响。\n- **区块哈希**在所有地方都变为 `ExecutionPayload.hash_tree_root()`：`BLOCKHASH`、JSON-RPC 的 `blockHash`、devp2p 以及共识层的引用。\n- 区块头只是载荷的 SSZ 摘要，其中的大型列表被替换为各自的根。\n- JSON-RPC 区块把 `logsBloom` 报告为全 `0xff` 字节，迫使使用者去检查收据，而不是信任一个已不存在的 bloom。\n\n## 示例代码\n\n规范中的核心容器，采用 consensus-specs 的 Python 风格：\n\n```python\nclass GasAmounts(ProgressiveContainer(active_fields=[1] * 2)):\n    regular: GasAmount   # uint64\n    blob: GasAmount\n\nclass ExecutionPayload(ProgressiveContainer(active_fields=[1] * 18)):\n    parent_hash: Root\n    miner: ExecutionAddress\n    state_root: Bytes32\n    transactions: ProgressiveList[ProgressiveByteList]\n    receipts_root: Root\n    number: uint64\n    gas_limits: GasAmounts\n    gas_used: GasAmounts\n    timestamp: uint64\n    # ... extra_data, mix_hash, base_fees_per_gas, withdrawals, excess_gas,\n    #     parent_beacon_block_root, requests_hash, block_access_list, slot_number\n\nblock_hash = payload.hash_tree_root()   # replaces keccak256(rlp(header))\n```\n\n## 需要注意\n\n- 状态为 **Draft**。它不在 Glamsterdam 的排期清单（[EIP-7773](/eip-7773/)）中。\n- 解析 RLP 区块头的合约（例如对照 `BLOCKHASH` 验证区块头）会失效，需要改用 SSZ 证明逻辑。\n- 新哈希使用 SHA-256 而非 keccak256。规范认为与旧的基于 keccak 的哈希发生碰撞的风险可以忽略。\n- 收据级别的 `logsBloom` 不受影响；被淘汰的只是区块级别的 bloom。\n- 它建立在 ePBS（[EIP-7732](/eip-7732/)）引入的 Gloas 载荷信封之上。\n"}},"requiredBy":[7919]}
