{"eip":8142,"title":"Block-in-Blobs (BiB)","description":"Ensures execution payload data availability via blobs","authors":["Kevaundray Wedderburn (@kevaundray)","Ignacio Hagopian (@jsign)","Jihoon Song \u003cjihoon.song@ethereum.org\u003e","Francesco Risitano (@frisitano)","Thomas Thiery (@soispoke) \u003cthomas.thiery@ethereum.org\u003e","Toni Wahrstätter (@nerolation)","Péter Garamvölgyi (@thegaram)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-01-29","requires":[4844,7594,7732,7892,7928],"discussionsTo":"https://ethereum-magicians.org/t/eip-8142-block-in-blobs-bib/27621","repo":"EIPs","label":"EIP-8142","officialUrl":"https://eips.ethereum.org/EIPS/eip-8142","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8142.md","url":"https://eips.huatuo.xyz/eip-8142/","tldr":{"en":"Requires every block's transactions and block access list to be published inside blobs, so data stays available even once validators verify blocks with zkEVM proofs instead of downloading and re-executing them.","ja":"すべてのブロックのトランザクションとブロックアクセスリストを blob 内で公開することを要求し、バリデーターがブロックをダウンロード・再実行する代わりに zkEVM 証明で検証するようになっても、データの可用性が保たれるようにする。","ko":"모든 블록의 트랜잭션과 블록 액세스 리스트를 blob 안에 게시하도록 요구해, 검증자가 블록을 다운로드하고 다시 실행하는 대신 zkEVM 증명으로 검증하게 되더라도 데이터를 계속 이용할 수 있게 한다.","zh":"要求把每个区块的交易和区块访问列表都发布在 blob 中，这样即使验证者改用 zkEVM 证明来验证区块、而不再下载并重新执行区块，数据依然保持可用。"},"tags":["blobs","data-availability","zkevm","das","core"],"explainers":{"en":{"lang":"en","tldr":"Requires every block's transactions and block access list to be published inside blobs, so data stays available even once validators verify blocks with zkEVM proofs instead of downloading and re-executing them.","tags":["blobs","data-availability","zkevm","das","core"],"related":[4844,7594,7732,7928,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8142/","markdown":"## What problem does it solve?\n\nToday a validator checks a block by downloading the execution payload, executing it, and comparing the result with the header. Because nobody can verify a block without the payload, the payload is implicitly guaranteed to be *available*.\n\nWith zkEVMs, validators would instead verify a succinct proof against the payload header and never need the transactions themselves. That removes the availability guarantee. A builder could publish a valid proof and withhold the data, leaving itself as the only party able to build the next block, and leaving RPC providers and indexers (who must re-execute) unable to follow the chain.\n\nBlock-in-Blobs (BiB) closes this gap by putting the execution-payload data into blobs, which are already protected by data availability sampling ([EIP-7594](/eip-7594/), PeerDAS).\n\n## How it works\n\n- **What goes into blobs:** the block access list from [EIP-7928](/eip-7928/) and the transactions. Withdrawals and execution requests are left out because they can be derived elsewhere; the header is left out to avoid a circular dependency.\n- **Encoding:** an 8-byte prefix (4-byte BAL length, 4-byte transactions length, big-endian), then the RLP-encoded BAL, then the RLP list of transactions. The bytes are packed 31 per 32-byte field element (first byte zero, so each element is a valid BLS field element), i.e. 4096 × 31 = 126,976 usable bytes per blob. No compression for now.\n- **Header field:** a new `payload_blob_count` (uint64) in the execution payload. The first `payload_blob_count` blob commitments in the beacon block are the payload blobs; the rest belong to ordinary type-3 ([EIP-4844](/eip-4844/)) blob transactions.\n- **Engine API:** `engine_getPayload` builds the payload blobs and returns them first in the blobs bundle. `engine_newPayload` re-derives them, checks the count and checks that the expected versioned hashes are the payload blobs followed by the type-3 ones. A zkEVM-friendly variant verifies KZG opening proofs instead of recomputing commitments, which is cheaper to prove.\n- **Fees:** payload blobs pay no per-blob user fee, but they do consume blob gas and count toward `MAX_BLOBS_PER_BLOCK` ([EIP-7892](/eip-7892/)), so they compete with rollup blobs and affect the blob base fee. Inflating them requires paying for extra calldata through normal gas.\n\n## Sample code\n\nEncoding the payload data into blobs, condensed from the spec:\n\n```python\nFIELD_ELEMENTS_PER_BLOB = 4096\nUSABLE_BYTES_PER_FE = 31\nUSABLE_BYTES_PER_BLOB = FIELD_ELEMENTS_PER_BLOB * USABLE_BYTES_PER_FE   # 126_976\n\ndef execution_payload_data_to_blobs(bal: bytes, txs: list[bytes]) -\u003e list[bytes]:\n    txs_bytes = rlp.encode(txs)\n    data = len(bal).to_bytes(4, \"big\") + len(txs_bytes).to_bytes(4, \"big\") + bal + txs_bytes\n    blobs = []\n    for off in range(0, len(data), USABLE_BYTES_PER_BLOB):\n        chunk = data[off:off + USABLE_BYTES_PER_BLOB].ljust(USABLE_BYTES_PER_BLOB, b\"\\0\")\n        blob = bytearray(FIELD_ELEMENTS_PER_BLOB * 32)\n        for i in range(FIELD_ELEMENTS_PER_BLOB):\n            blob[i*32 + 1:(i+1)*32] = chunk[i*31:(i+1)*31]   # byte 0 stays zero\n        blobs.append(bytes(blob))\n    return blobs   # len(blobs) must equal header.payload_blob_count\n```\n\n## Things to know\n\n- **Status: Draft.** Test cases, explicit pricing for payload blobs and some networking details are still marked TODO.\n- It needs a hard fork: both the execution payload header and the Engine API change.\n- Builders must leave room for payload blobs when choosing blob transactions, and payload blobs are not pre-propagated through the mempool, so builders need more bandwidth at block time.\n- If the payload is not received over the [EIP-7732](/eip-7732/) `execution_payload` gossip topic, nodes can rebuild it from the payload blobs and re-seed the topic.\n"},"ja":{"lang":"ja","tldr":"すべてのブロックのトランザクションとブロックアクセスリストを blob 内で公開することを要求し、バリデーターがブロックをダウンロード・再実行する代わりに zkEVM 証明で検証するようになっても、データの可用性が保たれるようにする。","tags":["blobs","data-availability","zkevm","das","core"],"related":[4844,7594,7732,7928,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8142/","markdown":"## 何を解決するのか\n\n現在、バリデーターはエグゼキューションペイロードをダウンロードして実行し、結果をヘッダーと比較することでブロックを検証します。ペイロードなしにブロックを検証できる人はいないため、ペイロードが*利用可能*であることは暗黙のうちに保証されています。\n\nzkEVM を使うと、バリデーターはペイロードヘッダーに対する簡潔な証明を検証するだけでよくなり、トランザクション自体は不要になります。これにより、可用性の保証がなくなります。ビルダーが有効な証明を公開しつつデータを隠せば、次のブロックを構築できるのは自分だけになり、（再実行が必要な）RPC プロバイダーやインデクサーはチェーンに追従できなくなります。\n\nBlock-in-Blobs（BiB）は、エグゼキューションペイロードのデータを、データ可用性サンプリング（[EIP-7594](/eip-7594/)、PeerDAS）ですでに保護されている blob に入れることで、このギャップを埋めます。\n\n## 仕組み\n\n- **blob に入るもの:** [EIP-7928](/eip-7928/) のブロックアクセスリストとトランザクション。出金（withdrawals）と execution requests は他の場所から導出できるため除外され、ヘッダーは循環依存を避けるために除外されます。\n- **エンコーディング:** 8 バイトのプレフィックス（4 バイトの BAL 長、4 バイトのトランザクション長、ビッグエンディアン）、続いて RLP エンコードされた BAL、そしてトランザクションの RLP リスト。バイト列は 32 バイトのフィールド要素ごとに 31 バイトずつ詰められ（先頭バイトはゼロなので、各要素は有効な BLS フィールド要素になります）、1 blob あたり 4096 × 31 = 126,976 バイトが使えます。現時点では圧縮はありません。\n- **ヘッダーフィールド:** エグゼキューションペイロードに新しい `payload_blob_count`（uint64）。ビーコンブロック内の最初の `payload_blob_count` 個の blob コミットメントがペイロード blob で、残りは通常の type-3（[EIP-4844](/eip-4844/)）blob トランザクションのものです。\n- **Engine API:** `engine_getPayload` はペイロード blob を構築し、blobs bundle の先頭に返します。`engine_newPayload` はそれらを再導出し、数を確認し、期待されるバージョン付きハッシュが「ペイロード blob、続いて type-3 のもの」になっていることを確認します。zkEVM に適したバリアントは、コミットメントを再計算する代わりに KZG オープニング証明を検証し、証明のコストが安くなります。\n- **手数料:** ペイロード blob には blob ごとのユーザー手数料はかかりませんが、blob gas を消費し、`MAX_BLOBS_PER_BLOCK`（[EIP-7892](/eip-7892/)）にもカウントされるため、ロールアップの blob と競合し、blob のベースフィーに影響します。これらを水増しするには、通常の gas で追加の calldata を支払う必要があります。\n\n## サンプルコード\n\nペイロードデータを blob にエンコードする（仕様から要約）:\n\n```python\nFIELD_ELEMENTS_PER_BLOB = 4096\nUSABLE_BYTES_PER_FE = 31\nUSABLE_BYTES_PER_BLOB = FIELD_ELEMENTS_PER_BLOB * USABLE_BYTES_PER_FE   # 126_976\n\ndef execution_payload_data_to_blobs(bal: bytes, txs: list[bytes]) -\u003e list[bytes]:\n    txs_bytes = rlp.encode(txs)\n    data = len(bal).to_bytes(4, \"big\") + len(txs_bytes).to_bytes(4, \"big\") + bal + txs_bytes\n    blobs = []\n    for off in range(0, len(data), USABLE_BYTES_PER_BLOB):\n        chunk = data[off:off + USABLE_BYTES_PER_BLOB].ljust(USABLE_BYTES_PER_BLOB, b\"\\0\")\n        blob = bytearray(FIELD_ELEMENTS_PER_BLOB * 32)\n        for i in range(FIELD_ELEMENTS_PER_BLOB):\n            blob[i*32 + 1:(i+1)*32] = chunk[i*31:(i+1)*31]   # byte 0 stays zero\n        blobs.append(bytes(blob))\n    return blobs   # len(blobs) must equal header.payload_blob_count\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** テストケース、ペイロード blob の明示的な価格設定、一部のネットワーク詳細は、まだ TODO とされています。\n- ハードフォークが必要です。エグゼキューションペイロードヘッダーと Engine API の両方が変わります。\n- ビルダーは blob トランザクションを選ぶ際にペイロード blob の余地を残す必要があり、ペイロード blob は mempool 経由で事前に伝播されないため、ビルダーにはブロック時により多くの帯域幅が必要です。\n- ペイロードが [EIP-7732](/eip-7732/) の `execution_payload` gossip トピックで受信されなかった場合、ノードはペイロード blob からそれを再構築して、トピックに再投入できます。\n"},"ko":{"lang":"ko","tldr":"모든 블록의 트랜잭션과 블록 액세스 리스트를 blob 안에 게시하도록 요구해, 검증자가 블록을 다운로드하고 다시 실행하는 대신 zkEVM 증명으로 검증하게 되더라도 데이터를 계속 이용할 수 있게 한다.","tags":["blobs","data-availability","zkevm","das","core"],"related":[4844,7594,7732,7928,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8142/","markdown":"## 어떤 문제를 해결하나요?\n\n오늘날 검증자는 실행 페이로드를 다운로드해 실행하고 결과를 헤더와 비교하는 방식으로 블록을 검증합니다. 페이로드 없이는 아무도 블록을 검증할 수 없으므로, 페이로드는 암묵적으로 *이용 가능*하다고 보장됩니다.\n\nzkEVM을 쓰면 검증자는 페이로드 헤더에 대한 간결한 증명을 검증하는 것으로 충분하고 트랜잭션 자체는 필요 없게 됩니다. 그러면 가용성 보장이 사라집니다. 빌더가 유효한 증명을 게시하고 데이터는 숨기면, 다음 블록을 만들 수 있는 유일한 당사자가 되고, (다시 실행해야 하는) RPC 제공자와 인덱서는 체인을 따라갈 수 없게 됩니다.\n\nBlock-in-Blobs(BiB)는 실행 페이로드 데이터를, 이미 데이터 가용성 샘플링([EIP-7594](/eip-7594/), PeerDAS)으로 보호되는 blob에 넣어 이 빈틈을 메웁니다.\n\n## 어떻게 동작하나요?\n\n- **blob에 들어가는 것:** [EIP-7928](/eip-7928/)의 블록 액세스 리스트와 트랜잭션. 출금(withdrawals)과 실행 요청(execution requests)은 다른 곳에서 도출할 수 있어 제외되고, 헤더는 순환 의존을 피하기 위해 제외됩니다.\n- **인코딩:** 8바이트 접두사(4바이트 BAL 길이, 4바이트 트랜잭션 길이, 빅엔디언), 이어서 RLP 인코딩된 BAL, 그다음 트랜잭션의 RLP 리스트. 바이트는 32바이트 필드 요소마다 31바이트씩 채워지며(첫 바이트는 0이라 각 요소가 유효한 BLS 필드 요소가 됩니다), blob 하나당 4096 × 31 = 126,976바이트를 쓸 수 있습니다. 지금은 압축이 없습니다.\n- **헤더 필드:** 실행 페이로드에 새 `payload_blob_count`(uint64). 비콘 블록의 처음 `payload_blob_count`개 blob 커밋먼트가 페이로드 blob이고, 나머지는 일반 type-3([EIP-4844](/eip-4844/)) blob 트랜잭션의 것입니다.\n- **Engine API:** `engine_getPayload`는 페이로드 blob을 만들어 blobs bundle의 맨 앞에 반환합니다. `engine_newPayload`는 이를 다시 도출하고, 개수를 확인하며, 기대되는 버전 해시가 페이로드 blob 뒤에 type-3 blob이 오는 순서인지 확인합니다. zkEVM 친화적인 변형은 커밋먼트를 다시 계산하는 대신 KZG 오프닝 증명을 검증하며, 증명 비용이 더 저렴합니다.\n- **수수료:** 페이로드 blob은 blob별 사용자 수수료를 내지 않지만 blob gas를 소비하고 `MAX_BLOBS_PER_BLOCK`([EIP-7892](/eip-7892/))에 포함되므로, 롤업 blob과 경쟁하고 blob 기본 수수료에 영향을 줍니다. 이를 부풀리려면 일반 gas로 추가 calldata 비용을 내야 합니다.\n\n## 샘플 코드\n\n페이로드 데이터를 blob으로 인코딩하기(명세에서 요약):\n\n```python\nFIELD_ELEMENTS_PER_BLOB = 4096\nUSABLE_BYTES_PER_FE = 31\nUSABLE_BYTES_PER_BLOB = FIELD_ELEMENTS_PER_BLOB * USABLE_BYTES_PER_FE   # 126_976\n\ndef execution_payload_data_to_blobs(bal: bytes, txs: list[bytes]) -\u003e list[bytes]:\n    txs_bytes = rlp.encode(txs)\n    data = len(bal).to_bytes(4, \"big\") + len(txs_bytes).to_bytes(4, \"big\") + bal + txs_bytes\n    blobs = []\n    for off in range(0, len(data), USABLE_BYTES_PER_BLOB):\n        chunk = data[off:off + USABLE_BYTES_PER_BLOB].ljust(USABLE_BYTES_PER_BLOB, b\"\\0\")\n        blob = bytearray(FIELD_ELEMENTS_PER_BLOB * 32)\n        for i in range(FIELD_ELEMENTS_PER_BLOB):\n            blob[i*32 + 1:(i+1)*32] = chunk[i*31:(i+1)*31]   # byte 0 stays zero\n        blobs.append(bytes(blob))\n    return blobs   # len(blobs) must equal header.payload_blob_count\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 테스트 케이스, 페이로드 blob의 명시적인 가격 책정, 일부 네트워킹 세부 사항은 아직 TODO로 표시되어 있습니다.\n- 하드 포크가 필요합니다. 실행 페이로드 헤더와 Engine API가 모두 바뀝니다.\n- 빌더는 blob 트랜잭션을 고를 때 페이로드 blob을 위한 공간을 남겨야 하고, 페이로드 blob은 멤풀로 미리 전파되지 않으므로 빌더는 블록 시점에 더 많은 대역폭이 필요합니다.\n- 페이로드를 [EIP-7732](/eip-7732/)의 `execution_payload` gossip 토픽으로 받지 못하면, 노드는 페이로드 blob으로부터 이를 재구성해 토픽에 다시 퍼뜨릴 수 있습니다.\n"},"zh":{"lang":"zh","tldr":"要求把每个区块的交易和区块访问列表都发布在 blob 中，这样即使验证者改用 zkEVM 证明来验证区块、而不再下载并重新执行区块，数据依然保持可用。","tags":["blobs","data-availability","zkevm","das","core"],"related":[4844,7594,7732,7928,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8142/","markdown":"## 它解决什么问题？\n\n如今验证者检查区块的方式是下载执行载荷、执行它，并把结果与区块头比较。由于没有载荷就无法验证区块，载荷隐含地保证了*可用*。\n\n有了 zkEVM，验证者将改为针对载荷头验证一个简洁证明，而不再需要交易本身。这就去掉了可用性保证。构建者可以发布一个有效的证明却扣留数据，使自己成为唯一能构建下一个区块的一方，并让（必须重新执行的）RPC 提供商和索引器无法跟上链。\n\nBlock-in-Blobs（BiB）通过把执行载荷数据放入 blob 来弥补这一缺口，blob 已经受到数据可用性采样（[EIP-7594](/eip-7594/)，PeerDAS）的保护。\n\n## 它如何运作\n\n- **放入 blob 的内容：** [EIP-7928](/eip-7928/) 的区块访问列表以及交易。提款（withdrawals）和执行请求（execution requests）不放入，因为可以从别处推导；区块头不放入，以避免循环依赖。\n- **编码：** 8 字节前缀（4 字节 BAL 长度、4 字节交易长度，大端序），然后是 RLP 编码的 BAL，再是交易的 RLP 列表。字节按每个 32 字节域元素装入 31 字节（首字节为零，因此每个元素都是有效的 BLS 域元素），即每个 blob 可用 4096 × 31 = 126,976 字节。目前不做压缩。\n- **区块头字段：** 执行载荷中新增 `payload_blob_count`（uint64）。信标区块中前 `payload_blob_count` 个 blob 承诺是载荷 blob；其余属于普通的 type-3（[EIP-4844](/eip-4844/)）blob 交易。\n- **Engine API：** `engine_getPayload` 构建载荷 blob，并把它们放在 blobs bundle 的最前面返回。`engine_newPayload` 重新推导它们，检查数量，并检查预期的带版本哈希是载荷 blob 后面跟着 type-3 的那些。一种对 zkEVM 友好的变体改为验证 KZG 打开证明而不是重新计算承诺，这样证明成本更低。\n- **费用：** 载荷 blob 不需要支付每个 blob 的用户费用，但它们会消耗 blob gas，并计入 `MAX_BLOBS_PER_BLOCK`（[EIP-7892](/eip-7892/)），因此会与 rollup 的 blob 竞争，并影响 blob 基础费用。若要把它们撑大，需要通过常规 gas 为额外的 calldata 付费。\n\n## 示例代码\n\n把载荷数据编码为 blob，根据规范精简而成：\n\n```python\nFIELD_ELEMENTS_PER_BLOB = 4096\nUSABLE_BYTES_PER_FE = 31\nUSABLE_BYTES_PER_BLOB = FIELD_ELEMENTS_PER_BLOB * USABLE_BYTES_PER_FE   # 126_976\n\ndef execution_payload_data_to_blobs(bal: bytes, txs: list[bytes]) -\u003e list[bytes]:\n    txs_bytes = rlp.encode(txs)\n    data = len(bal).to_bytes(4, \"big\") + len(txs_bytes).to_bytes(4, \"big\") + bal + txs_bytes\n    blobs = []\n    for off in range(0, len(data), USABLE_BYTES_PER_BLOB):\n        chunk = data[off:off + USABLE_BYTES_PER_BLOB].ljust(USABLE_BYTES_PER_BLOB, b\"\\0\")\n        blob = bytearray(FIELD_ELEMENTS_PER_BLOB * 32)\n        for i in range(FIELD_ELEMENTS_PER_BLOB):\n            blob[i*32 + 1:(i+1)*32] = chunk[i*31:(i+1)*31]   # byte 0 stays zero\n        blobs.append(bytes(blob))\n    return blobs   # len(blobs) must equal header.payload_blob_count\n```\n\n## 需要注意\n\n- **状态：Draft。** 测试用例、载荷 blob 的明确定价以及一些网络细节仍标注为 TODO。\n- 它需要硬分叉：执行载荷头和 Engine API 都会改变。\n- 构建者在选择 blob 交易时必须为载荷 blob 留出空间，而且载荷 blob 不会通过内存池预先传播，因此构建者在出块时需要更多带宽。\n- 如果没有通过 [EIP-7732](/eip-7732/) 的 `execution_payload` gossip 主题收到载荷，节点可以根据载荷 blob 重建它，并重新向该主题播种。\n"}}}
