{"eip":6465,"title":"SSZ withdrawals root","description":"Migration of withdrawals MPT commitment to SSZ","authors":["Etan Kissling (@etan-status)","Mikhail Kalinin (@mkalinin)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2023-02-08","requires":[2718,4895,6404,7495,7916],"discussionsTo":"https://ethereum-magicians.org/t/eip-6465-ssz-withdrawals-root/12883","repo":"EIPs","label":"EIP-6465","officialUrl":"https://eips.ethereum.org/EIPS/eip-6465","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-6465.md","url":"https://eips.huatuo.xyz/eip-6465/","tldr":{"en":"Proposes switching the execution block header's withdrawals_root from a Merkle Patricia Trie root to an SSZ hash_tree_root, so the execution and consensus layers commit to withdrawals the same way.","ja":"実行ブロックヘッダーの withdrawals_root を、Merkle Patricia Trie のルートから SSZ の hash_tree_root へ切り替えることを提案する。実行レイヤーとコンセンサスレイヤーが、引き出しに対して同じ方法でコミットするようになる。","ko":"실행 블록 헤더의 withdrawals_root를 Merkle Patricia Trie 루트에서 SSZ hash_tree_root로 바꾸자고 제안한다. 실행 계층과 합의 계층이 출금을 같은 방식으로 커밋하게 된다.","zh":"提议把执行区块头中的 withdrawals_root 从 Merkle Patricia Trie 根改为 SSZ hash_tree_root，使执行层和共识层以相同方式承诺提款。"},"tags":["ssz","withdrawals","core","consensus","block-header"],"explainers":{"en":{"lang":"en","tldr":"Proposes switching the execution block header's withdrawals_root from a Merkle Patricia Trie root to an SSZ hash_tree_root, so the execution and consensus layers commit to withdrawals the same way.","tags":["ssz","withdrawals","core","consensus","block-header"],"related":[4895,6404,7495,7916,2718],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-6465/","markdown":"## What problem does it solve?\n\nValidator withdrawals ([EIP-4895](/eip-4895/)) are pushed from the consensus layer into each execution block. Both layers store a `withdrawals_root`, but they mean different things: the execution block header holds a **Merkle Patricia Trie (MPT)** root of RLP-encoded withdrawals, while the consensus `ExecutionPayloadHeader` holds an **SSZ** root.\n\nSame name, two different hashes. EIP-6465 makes the execution header use the SSZ root as well. That removes one more place where clients need MPT, and makes `withdrawals_root` mean one thing everywhere.\n\n## How it works\n\n- The consensus `Withdrawal` container is migrated to an [EIP-7495](/eip-7495/) `ProgressiveContainer` with the same four fields: `index`, `validator_index`, `address` (20 bytes) and `amount` (in Gwei).\n- The block's withdrawals become a `ProgressiveList[Withdrawal]` (progressive lists come from [EIP-7916](/eip-7916/)).\n- The execution header's `withdrawals_root` is set to that list's SSZ `hash_tree_root()` instead of an MPT root.\n- The consensus `ExecutionPayload.withdrawals` uses the same progressive list type, and the state transition still caps withdrawals at `MAX_WITHDRAWALS_PER_PAYLOAD`.\n\nIt is part of a family of \"SSZ everywhere\" proposals alongside [EIP-6404](/eip-6404/) (SSZ transactions root).\n\n## Sample code\n\nThe new definitions and root computation, in the spec's Python style:\n\n```python\nclass Withdrawal(ProgressiveContainer(active_fields=[1, 1, 1, 1])):\n    index: WithdrawalIndex          # uint64\n    validator_index: ValidatorIndex # uint64\n    address: ExecutionAddress       # Bytes20\n    amount: Gwei                    # uint64\n\nwithdrawals = ProgressiveList[Withdrawal](\n    withdrawal_0, withdrawal_1, withdrawal_2, ...)\n\n# Before: MPT root over RLP-encoded withdrawals\n# After:\nblock_header.withdrawals_root = withdrawals.hash_tree_root()\n```\n\n## Things to know\n\n- Status is **Draft**. It is a Core change that needs a hard fork and is not live on mainnet.\n- It was originally considered for Shanghai but was postponed so withdrawals could ship sooner.\n- Anything that verifies withdrawals against the header's MPT `withdrawals_root` (light clients, provers, indexers) would need to switch to SSZ proofs.\n- RLP and SSZ encodings of withdrawals can collide. Use only one format per channel, and check the block's fork to know which applies.\n"},"ja":{"lang":"ja","tldr":"実行ブロックヘッダーの withdrawals_root を、Merkle Patricia Trie のルートから SSZ の hash_tree_root へ切り替えることを提案する。実行レイヤーとコンセンサスレイヤーが、引き出しに対して同じ方法でコミットするようになる。","tags":["ssz","withdrawals","core","consensus","block-header"],"related":[4895,6404,7495,7916,2718],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-6465/","markdown":"## 何を解決するのか\n\nバリデーターの引き出し（[EIP-4895](/eip-4895/)）は、コンセンサスレイヤーから各実行ブロックへ押し込まれます。両方のレイヤーが `withdrawals_root` を保存していますが、その意味は異なります。実行ブロックヘッダーが保持するのは、RLP エンコードされた引き出しの **Merkle Patricia Trie（MPT）** のルートであり、コンセンサスの `ExecutionPayloadHeader` が保持するのは **SSZ** のルートです。\n\n同じ名前なのに、2 つの異なるハッシュです。EIP-6465 は、実行ヘッダーにも SSZ ルートを使わせます。これにより、クライアントが MPT を必要とする場所がもう 1 つ減り、`withdrawals_root` がどこでも 1 つの意味を持つようになります。\n\n## 仕組み\n\n- コンセンサスの `Withdrawal` コンテナを、同じ 4 つのフィールド（`index`、`validator_index`、`address`（20 バイト）、`amount`（Gwei 単位））を持つ [EIP-7495](/eip-7495/) の `ProgressiveContainer` に移行します。\n- ブロックの引き出しは `ProgressiveList[Withdrawal]` になります（progressive list は [EIP-7916](/eip-7916/) に由来します）。\n- 実行ヘッダーの `withdrawals_root` は、MPT ルートではなく、そのリストの SSZ `hash_tree_root()` に設定されます。\n- コンセンサスの `ExecutionPayload.withdrawals` も同じ progressive list 型を使い、ステート遷移では引き出しの数が引き続き `MAX_WITHDRAWALS_PER_PAYLOAD` で上限が設けられます。\n\nこれは、[EIP-6404](/eip-6404/)（SSZ のトランザクションルート）とともに、「あらゆる場所で SSZ」を目指す提案群の一部です。\n\n## サンプルコード\n\n仕様の Python スタイルによる、新しい定義とルートの計算です。\n\n```python\nclass Withdrawal(ProgressiveContainer(active_fields=[1, 1, 1, 1])):\n    index: WithdrawalIndex          # uint64\n    validator_index: ValidatorIndex # uint64\n    address: ExecutionAddress       # Bytes20\n    amount: Gwei                    # uint64\n\nwithdrawals = ProgressiveList[Withdrawal](\n    withdrawal_0, withdrawal_1, withdrawal_2, ...)\n\n# Before: MPT root over RLP-encoded withdrawals\n# After:\nblock_header.withdrawals_root = withdrawals.hash_tree_root()\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。ハードフォークが必要な Core の変更であり、メインネットでは稼働していません。\n- もともとは Shanghai で検討されましたが、引き出しをより早く導入できるように延期されました。\n- ヘッダーの MPT `withdrawals_root` に対して引き出しを検証するもの（ライトクライアント、プルーバー、インデクサー）は、SSZ 証明に切り替える必要があります。\n- 引き出しの RLP エンコーディングと SSZ エンコーディングは衝突することがあります。チャネルごとに 1 つの形式だけを使い、どちらが適用されるかはブロックのフォークで確認してください。\n"},"ko":{"lang":"ko","tldr":"실행 블록 헤더의 withdrawals_root를 Merkle Patricia Trie 루트에서 SSZ hash_tree_root로 바꾸자고 제안한다. 실행 계층과 합의 계층이 출금을 같은 방식으로 커밋하게 된다.","tags":["ssz","withdrawals","core","consensus","block-header"],"related":[4895,6404,7495,7916,2718],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-6465/","markdown":"## 어떤 문제를 해결하나요?\n\n검증자 출금([EIP-4895](/eip-4895/))은 합의 계층에서 각 실행 블록으로 밀어 넣어집니다. 두 계층 모두 `withdrawals_root`를 저장하지만 의미가 다릅니다. 실행 블록 헤더에는 RLP로 인코딩된 출금의 **Merkle Patricia Trie(MPT)** 루트가 들어 있고, 합의 계층의 `ExecutionPayloadHeader`에는 **SSZ** 루트가 들어 있습니다.\n\n이름은 같은데 해시는 서로 다릅니다. EIP-6465는 실행 헤더도 SSZ 루트를 쓰게 합니다. 그러면 클라이언트가 MPT를 필요로 하는 곳이 하나 줄어들고, `withdrawals_root`가 어디서나 하나의 의미를 갖게 됩니다.\n\n## 어떻게 동작하나요?\n\n- 합의 계층의 `Withdrawal` 컨테이너를 같은 네 개 필드(`index`, `validator_index`, `address`(20바이트), `amount`(Gwei 단위))를 가진 [EIP-7495](/eip-7495/) `ProgressiveContainer`로 옮깁니다.\n- 블록의 출금은 `ProgressiveList[Withdrawal]`이 됩니다(progressive list는 [EIP-7916](/eip-7916/)에서 나왔습니다).\n- 실행 헤더의 `withdrawals_root`는 MPT 루트 대신 그 리스트의 SSZ `hash_tree_root()`로 설정됩니다.\n- 합의 계층의 `ExecutionPayload.withdrawals`도 같은 progressive list 타입을 사용하며, 상태 전이는 여전히 출금 수를 `MAX_WITHDRAWALS_PER_PAYLOAD`로 제한합니다.\n\n이는 [EIP-6404](/eip-6404/)(SSZ 트랜잭션 루트)와 함께 \"어디서나 SSZ\" 제안군의 일부입니다.\n\n## 샘플 코드\n\n사양의 Python 스타일로 작성한 새 정의와 루트 계산입니다.\n\n```python\nclass Withdrawal(ProgressiveContainer(active_fields=[1, 1, 1, 1])):\n    index: WithdrawalIndex          # uint64\n    validator_index: ValidatorIndex # uint64\n    address: ExecutionAddress       # Bytes20\n    amount: Gwei                    # uint64\n\nwithdrawals = ProgressiveList[Withdrawal](\n    withdrawal_0, withdrawal_1, withdrawal_2, ...)\n\n# Before: MPT root over RLP-encoded withdrawals\n# After:\nblock_header.withdrawals_root = withdrawals.hash_tree_root()\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다. 하드 포크가 필요한 Core 변경이며 메인넷에서는 동작하지 않습니다.\n- 원래 Shanghai에서 검토되었지만, 출금을 더 빨리 출시할 수 있도록 미뤄졌습니다.\n- 헤더의 MPT `withdrawals_root`에 대해 출금을 검증하는 모든 것(라이트 클라이언트, 증명자, 인덱서)은 SSZ 증명으로 바꿔야 합니다.\n- 출금의 RLP 인코딩과 SSZ 인코딩은 충돌할 수 있습니다. 채널마다 하나의 형식만 사용하고, 어느 쪽이 적용되는지는 블록의 포크로 확인하세요.\n"},"zh":{"lang":"zh","tldr":"提议把执行区块头中的 withdrawals_root 从 Merkle Patricia Trie 根改为 SSZ hash_tree_root，使执行层和共识层以相同方式承诺提款。","tags":["ssz","withdrawals","core","consensus","block-header"],"related":[4895,6404,7495,7916,2718],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-6465/","markdown":"## 它解决什么问题？\n\n验证者提款（[EIP-4895](/eip-4895/)）由共识层推入每个执行区块。两层都存储一个 `withdrawals_root`，但含义不同：执行区块头保存的是 RLP 编码提款的 **Merkle Patricia Trie（MPT）** 根，而共识层的 `ExecutionPayloadHeader` 保存的是 **SSZ** 根。\n\n名称相同，却是两种不同的哈希。EIP-6465 让执行层区块头也使用 SSZ 根。这样客户端少了一个需要 MPT 的地方，也让 `withdrawals_root` 在所有地方都只有一种含义。\n\n## 它如何运作\n\n- 共识层的 `Withdrawal` 容器迁移为 [EIP-7495](/eip-7495/) 的 `ProgressiveContainer`，保留相同的四个字段：`index`、`validator_index`、`address`（20 字节）和 `amount`（以 Gwei 为单位）。\n- 区块的提款变为 `ProgressiveList[Withdrawal]`（progressive list 来自 [EIP-7916](/eip-7916/)）。\n- 执行层区块头的 `withdrawals_root` 被设为该列表的 SSZ `hash_tree_root()`，而不是 MPT 根。\n- 共识层的 `ExecutionPayload.withdrawals` 使用同一种 progressive list 类型，状态转换仍然把提款数量限制在 `MAX_WITHDRAWALS_PER_PAYLOAD` 以内。\n\n它属于\"处处使用 SSZ\"这一系列提案，与 [EIP-6404](/eip-6404/)（SSZ 交易根）并列。\n\n## 示例代码\n\n新的定义和根的计算，采用规范中的 Python 风格：\n\n```python\nclass Withdrawal(ProgressiveContainer(active_fields=[1, 1, 1, 1])):\n    index: WithdrawalIndex          # uint64\n    validator_index: ValidatorIndex # uint64\n    address: ExecutionAddress       # Bytes20\n    amount: Gwei                    # uint64\n\nwithdrawals = ProgressiveList[Withdrawal](\n    withdrawal_0, withdrawal_1, withdrawal_2, ...)\n\n# Before: MPT root over RLP-encoded withdrawals\n# After:\nblock_header.withdrawals_root = withdrawals.hash_tree_root()\n```\n\n## 需要注意\n\n- 状态为 **Draft**。这是一项需要硬分叉的 Core 变更，尚未在主网上线。\n- 它最初曾被考虑纳入 Shanghai，但为了让提款能更早上线而被推迟。\n- 任何依据区块头中 MPT `withdrawals_root` 来验证提款的东西（轻客户端、证明器、索引器）都需要改用 SSZ 证明。\n- 提款的 RLP 和 SSZ 编码可能会冲突。每个通道只使用一种格式，并通过区块所属的分叉判断适用哪一种。\n"}},"requiredBy":[7919]}
