{"eip":8268,"title":"Storage Roots in Block Access Lists","description":"Extend EIP-7928 with per-account post-block storage trie roots so partially stateful nodes can verify the state root","authors":["Toni Wahrstätter (@nerolation)","Carlos Perez (@CPerezz)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-05-21","requires":[7928],"discussionsTo":"https://ethereum-magicians.org/t/eip-8268-storage-roots-in-block-access-lists/28585","repo":"EIPs","label":"EIP-8268","officialUrl":"https://eips.ethereum.org/EIPS/eip-8268","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8268.md","url":"https://eips.huatuo.xyz/eip-8268/","tldr":{"en":"Adds each modified account's post-block storage root to EIP-7928 Block Access Lists, so nodes that hold only part of the state can still verify the block's state root.","ja":"変更された各アカウントのブロック後のストレージルートを EIP-7928 の Block Access List に追加する。これにより、状態の一部しか保持しないノードでも、ブロックのステートルートを検証できる。","ko":"수정된 각 계정의 블록 이후 스토리지 루트를 EIP-7928 Block Access List에 추가해, 상태의 일부만 보유한 노드도 블록의 상태 루트를 검증할 수 있게 한다.","zh":"在 EIP-7928 的 Block Access List 中加入每个被修改账户在区块执行后的存储根，使只持有部分状态的节点也能验证区块的状态根。"},"tags":["bal","state","stateless","verification","core"],"explainers":{"en":{"lang":"en","tldr":"Adds each modified account's post-block storage root to EIP-7928 Block Access Lists, so nodes that hold only part of the state can still verify the block's state root.","tags":["bal","state","stateless","verification","core"],"related":[7928,7702,8159],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8268/","markdown":"## What problem does it solve?\n\n[EIP-7928](/eip-7928/) Block Access Lists (BALs) record, for each block, which accounts and storage slots were touched and their post-block values: balances, nonces, code and changed slots. That is enough to update state without re-executing, but not quite enough to verify the new **state root**.\n\nTo rebuild an account's leaf in the state trie you need four things: nonce, balance, code hash and **storage root**. The storage root depends on the account's whole storage trie, not just the slots that changed. A \"partially stateful\" node, one that keeps only a slice of the state, cannot compute the storage root for an account it does not store, so it cannot check the block's state root.\n\n## How it works\n\nEvery BAL `AccountChanges` entry that records an actual change (any non-empty list of storage, balance, nonce or code changes) gets a new trailing field, `storage_root`:\n\n```\nAccountChanges = [\n    Address,\n    List[SlotChanges],     # storage_changes\n    List[StorageKey],      # storage_reads\n    List[BalanceChange],   # balance_changes\n    List[NonceChange],     # nonce_changes\n    List[CodeChange],      # code_changes\n    StorageRoot,           # new: post-block storage trie root\n]\n```\n\nRules:\n\n- If the account's post-block storage trie is **non-empty**, `storage_root` is its 32-byte root.\n- If it is **empty**, `storage_root` is the empty byte string (RLP `0x80`), and the well-known 32-byte empty-trie root must *not* be used. Consumers treat the empty string as that root. Most modified accounts are EOAs with no storage, so this saves 32 bytes each.\n- Accounts that were only accessed (all change lists empty) keep the original six-field layout with no `storage_root`.\n- A block is invalid if any `storage_root` does not match what execution produces. The field is covered by `block_access_list_hash`.\n\nThe rule depends only on whether storage is empty, not on account type, so EOAs, new or cleared contracts and [EIP-7702](/eip-7702/) delegated accounts all follow the same logic.\n\n## Sample code\n\nRebuilding a state-trie leaf from a BAL entry (pseudocode):\n\n```python\nEMPTY_TRIE_ROOT = bytes.fromhex(\n    \"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\")\n\ndef account_leaf(entry, nonce, balance, code_hash):\n    # entry is a 7-field AccountChanges with state modifications\n    storage_root = entry.storage_root\n    if storage_root == b\"\":\n        storage_root = EMPTY_TRIE_ROOT\n    else:\n        assert len(storage_root) == 32\n    return rlp.encode([nonce, balance, storage_root, code_hash])\n```\n\n## Things to know\n\n- **Status: Draft.** It builds on [EIP-7928](/eip-7928/), which is in Last Call.\n- It changes the BAL encoding and needs a hard fork. EIP-7928-only clients and clients implementing this EIP will reject each other's blocks.\n- Overhead is at most 32 bytes per modified account; touched-only accounts add nothing.\n- The single canonical encoding for empty storage keeps `block_access_list_hash` deterministic.\n- BALs are exchanged between peers via [EIP-8159](/eip-8159/) (eth/71).\n"},"ja":{"lang":"ja","tldr":"変更された各アカウントのブロック後のストレージルートを EIP-7928 の Block Access List に追加する。これにより、状態の一部しか保持しないノードでも、ブロックのステートルートを検証できる。","tags":["bal","state","stateless","verification","core"],"related":[7928,7702,8159],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8268/","markdown":"## 何を解決するのか\n\n[EIP-7928](/eip-7928/) の Block Access List（BAL）は、各ブロックについて、どのアカウントとストレージスロットに触れたか、およびブロック後の値（残高、nonce、コード、変更されたスロット）を記録します。これは再実行せずに状態を更新するには十分ですが、新しい**ステートルート**を検証するには少し足りません。\n\nステートトライでアカウントのリーフを再構築するには、nonce、残高、コードハッシュ、**ストレージルート**の 4 つが必要です。ストレージルートは、変更されたスロットだけでなく、そのアカウントのストレージトライ全体に依存します。状態の一部だけを保持する「部分的にステートフルな」ノードは、自分が保存していないアカウントのストレージルートを計算できないため、ブロックのステートルートを確認できません。\n\n## 仕組み\n\n実際の変更を記録する BAL の `AccountChanges` エントリ（ストレージ、残高、nonce、コードのいずれかの変更リストが空でないもの）すべてに、末尾に新しいフィールド `storage_root` が加わります。\n\n```\nAccountChanges = [\n    Address,\n    List[SlotChanges],     # storage_changes\n    List[StorageKey],      # storage_reads\n    List[BalanceChange],   # balance_changes\n    List[NonceChange],     # nonce_changes\n    List[CodeChange],      # code_changes\n    StorageRoot,           # new: post-block storage trie root\n]\n```\n\nルール:\n\n- アカウントのブロック後のストレージトライが**空でない**場合、`storage_root` はその 32 バイトのルートです。\n- **空**の場合、`storage_root` は空のバイト列（RLP の `0x80`）で、よく知られた 32 バイトの空トライのルートを使っては*なりません*。コンシューマーは、空文字列をそのルートとして扱います。変更されたアカウントの大半はストレージのない EOA なので、これによりそれぞれ 32 バイトを節約できます。\n- アクセスされただけのアカウント（すべての変更リストが空）は、`storage_root` なしの元の 6 フィールドのレイアウトのままです。\n- いずれかの `storage_root` が実行結果と一致しないブロックは無効です。このフィールドは `block_access_list_hash` に含まれます。\n\nこのルールは、アカウントの種類ではなくストレージが空かどうかだけに依存するため、EOA、新規または消去されたコントラクト、[EIP-7702](/eip-7702/) で委任されたアカウントはすべて同じロジックに従います。\n\n## サンプルコード\n\nBAL のエントリからステートトライのリーフを再構築する（疑似コード）:\n\n```python\nEMPTY_TRIE_ROOT = bytes.fromhex(\n    \"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\")\n\ndef account_leaf(entry, nonce, balance, code_hash):\n    # entry is a 7-field AccountChanges with state modifications\n    storage_root = entry.storage_root\n    if storage_root == b\"\":\n        storage_root = EMPTY_TRIE_ROOT\n    else:\n        assert len(storage_root) == 32\n    return rlp.encode([nonce, balance, storage_root, code_hash])\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** Last Call にある [EIP-7928](/eip-7928/) を土台としています。\n- BAL のエンコーディングを変更するため、ハードフォークが必要です。EIP-7928 のみのクライアントと、この EIP を実装したクライアントは、互いのブロックを拒否します。\n- オーバーヘッドは、変更されたアカウントごとに最大 32 バイトで、触れただけのアカウントは何も増えません。\n- 空のストレージに対する唯一の正規エンコーディングにより、`block_access_list_hash` は決定的に保たれます。\n- BAL は、[EIP-8159](/eip-8159/)（eth/71）を介してピア間で交換されます。\n"},"ko":{"lang":"ko","tldr":"수정된 각 계정의 블록 이후 스토리지 루트를 EIP-7928 Block Access List에 추가해, 상태의 일부만 보유한 노드도 블록의 상태 루트를 검증할 수 있게 한다.","tags":["bal","state","stateless","verification","core"],"related":[7928,7702,8159],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8268/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-7928](/eip-7928/)의 Block Access List(BAL)는 블록마다 어떤 계정과 스토리지 슬롯이 건드려졌는지와 블록 이후의 값(잔액, nonce, 코드, 변경된 슬롯)을 기록합니다. 재실행 없이 상태를 갱신하기에는 충분하지만 새 **상태 루트**를 검증하기에는 조금 부족합니다.\n\n상태 트라이에서 계정의 리프를 재구성하려면 nonce, 잔액, 코드 해시, **스토리지 루트** 네 가지가 필요합니다. 스토리지 루트는 변경된 슬롯만이 아니라 계정의 전체 스토리지 트라이에 의존합니다. 상태의 일부만 보관하는 \"부분적으로 상태를 가진\" 노드는 자신이 저장하지 않은 계정의 스토리지 루트를 계산할 수 없으므로 블록의 상태 루트를 확인할 수 없습니다.\n\n## 어떻게 동작하나요?\n\n실제 변경을 기록하는 모든 BAL `AccountChanges` 항목(스토리지, 잔액, nonce, 코드 변경 목록 중 하나라도 비어 있지 않은 것)에는 끝에 새 필드 `storage_root`가 붙습니다.\n\n```\nAccountChanges = [\n    Address,\n    List[SlotChanges],     # storage_changes\n    List[StorageKey],      # storage_reads\n    List[BalanceChange],   # balance_changes\n    List[NonceChange],     # nonce_changes\n    List[CodeChange],      # code_changes\n    StorageRoot,           # new: post-block storage trie root\n]\n```\n\n규칙:\n\n- 계정의 블록 이후 스토리지 트라이가 **비어 있지 않다면** `storage_root`는 32바이트 루트입니다.\n- **비어 있다면** `storage_root`는 빈 바이트 문자열(RLP `0x80`)이며, 잘 알려진 32바이트 빈 트라이 루트를 사용해서는 *안 됩니다*. 소비자는 빈 문자열을 그 루트로 취급합니다. 수정된 계정 대부분은 스토리지가 없는 EOA이므로 이렇게 하면 계정마다 32바이트를 절약합니다.\n- 접근만 된 계정(모든 변경 목록이 비어 있음)은 `storage_root` 없이 원래의 여섯 필드 레이아웃을 유지합니다.\n- 어떤 `storage_root`든 실행 결과와 일치하지 않으면 그 블록은 유효하지 않습니다. 이 필드는 `block_access_list_hash`에 포함됩니다.\n\n이 규칙은 계정 유형이 아니라 스토리지가 비어 있는지에만 의존하므로, EOA, 새로 생성되거나 비워진 컨트랙트, [EIP-7702](/eip-7702/)로 위임된 계정이 모두 같은 로직을 따릅니다.\n\n## 샘플 코드\n\nBAL 항목으로부터 상태 트라이 리프 재구성하기(의사 코드):\n\n```python\nEMPTY_TRIE_ROOT = bytes.fromhex(\n    \"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\")\n\ndef account_leaf(entry, nonce, balance, code_hash):\n    # entry is a 7-field AccountChanges with state modifications\n    storage_root = entry.storage_root\n    if storage_root == b\"\":\n        storage_root = EMPTY_TRIE_ROOT\n    else:\n        assert len(storage_root) == 32\n    return rlp.encode([nonce, balance, storage_root, code_hash])\n```\n\n## 알아둘 점\n\n- **상태: Draft.** Last Call 상태인 [EIP-7928](/eip-7928/)을 기반으로 합니다.\n- BAL 인코딩을 바꾸므로 하드포크가 필요합니다. EIP-7928만 구현한 클라이언트와 이 EIP를 구현한 클라이언트는 서로의 블록을 거부합니다.\n- 오버헤드는 수정된 계정당 최대 32바이트이며, 건드려지기만 한 계정은 아무것도 늘리지 않습니다.\n- 빈 스토리지에 대한 단일 정규 인코딩 덕분에 `block_access_list_hash`가 결정적으로 유지됩니다.\n- BAL은 [EIP-8159](/eip-8159/)(eth/71)를 통해 피어 간에 교환됩니다.\n"},"zh":{"lang":"zh","tldr":"在 EIP-7928 的 Block Access List 中加入每个被修改账户在区块执行后的存储根，使只持有部分状态的节点也能验证区块的状态根。","tags":["bal","state","stateless","verification","core"],"related":[7928,7702,8159],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8268/","markdown":"## 它解决什么问题？\n\n[EIP-7928](/eip-7928/) 的 Block Access List（BAL）为每个区块记录哪些账户和存储槽被触及，以及区块执行后的值：余额、nonce、代码和被修改的存储槽。这足以在不重新执行的情况下更新状态，但还不足以验证新的**状态根**。\n\n要在状态 trie 中重建一个账户的叶子，需要四样东西：nonce、余额、代码哈希和**存储根**。存储根取决于该账户的整个存储 trie，而不仅仅是发生变化的存储槽。\"部分有状态\"的节点（只保留一部分状态的节点）无法为自己没有存储的账户计算存储根，因此无法检查区块的状态根。\n\n## 它如何运作\n\nBAL 中每个记录了实际变更的 `AccountChanges` 条目（存储、余额、nonce 或代码变更列表中任何一个非空），都会在末尾增加一个新字段 `storage_root`：\n\n```\nAccountChanges = [\n    Address,\n    List[SlotChanges],     # storage_changes\n    List[StorageKey],      # storage_reads\n    List[BalanceChange],   # balance_changes\n    List[NonceChange],     # nonce_changes\n    List[CodeChange],      # code_changes\n    StorageRoot,           # new: post-block storage trie root\n]\n```\n\n规则：\n\n- 如果账户在区块执行后的存储 trie **非空**，`storage_root` 就是其 32 字节的根。\n- 如果**为空**，`storage_root` 是空字节串（RLP 的 `0x80`），*不得*使用众所周知的 32 字节空 trie 根。使用方把空字符串视为该根。大多数被修改的账户是没有存储的 EOA，因此每个账户可节省 32 字节。\n- 仅被访问的账户（所有变更列表均为空）保持原来的六字段布局，没有 `storage_root`。\n- 如果任何 `storage_root` 与执行产生的结果不符，该区块无效。该字段被 `block_access_list_hash` 所覆盖。\n\n该规则只取决于存储是否为空，而不取决于账户类型，因此 EOA、新建或被清空的合约，以及 [EIP-7702](/eip-7702/) 委托的账户都遵循相同的逻辑。\n\n## 示例代码\n\n根据 BAL 条目重建状态 trie 的叶子（伪代码）：\n\n```python\nEMPTY_TRIE_ROOT = bytes.fromhex(\n    \"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\")\n\ndef account_leaf(entry, nonce, balance, code_hash):\n    # entry is a 7-field AccountChanges with state modifications\n    storage_root = entry.storage_root\n    if storage_root == b\"\":\n        storage_root = EMPTY_TRIE_ROOT\n    else:\n        assert len(storage_root) == 32\n    return rlp.encode([nonce, balance, storage_root, code_hash])\n```\n\n## 需要注意\n\n- **状态：Draft。** 它建立在处于 Last Call 的 [EIP-7928](/eip-7928/) 之上。\n- 它改变了 BAL 的编码，需要一次硬分叉。只实现 EIP-7928 的客户端和实现本 EIP 的客户端会互相拒绝对方的区块。\n- 开销为每个被修改的账户最多 32 字节；仅被触及的账户不增加任何开销。\n- 为空存储采用唯一的规范编码，使 `block_access_list_hash` 保持确定性。\n- BAL 通过 [EIP-8159](/eip-8159/)（eth/71）在节点之间交换。\n"}}}
