{"eip":8094,"title":"eth/vhash - Blob-Aware Mempool","description":"Make mempool messaging vhash aware","authors":["Csaba Kiraly (@cskiraly)"],"status":"Draft","type":"Standards Track","category":"Networking","created":"2025-11-29","requires":[7642],"discussionsTo":"https://ethereum-magicians.org/t/eip-8094-eth-vhash-blob-aware-mempool/26834","repo":"EIPs","label":"EIP-8094","officialUrl":"https://eips.ethereum.org/EIPS/eip-8094","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8094.md","url":"https://eips.huatuo.xyz/eip-8094/","tldr":{"en":"Changes the devp2p eth protocol so blob transactions travel without their blobs and blobs are fetched separately by versioned hash, so a fee bump (replace-by-fee) no longer re-sends the same blob data across the network.","ja":"devp2p の eth プロトコルを変更し、blob トランザクションを blob なしで流通させ、blob は versioned hash で別途取得する。これにより手数料の引き上げ（replace-by-fee）をしても、同じ blob データがネットワークに再送されなくなる。","ko":"devp2p eth 프로토콜을 바꿔 blob 트랜잭션이 blob 없이 전파되고 blob은 versioned hash로 따로 가져오게 한다. 그러면 수수료를 올려도(replace-by-fee) 같은 blob 데이터가 네트워크에 다시 전송되지 않는다.","zh":"修改 devp2p 的 eth 协议，使 blob 交易在传播时不带 blob，blob 则按 versioned hash 单独获取，这样提高手续费（replace-by-fee）时就不会在网络中重复发送同样的 blob 数据。"},"tags":["networking","devp2p","blobs","mempool","rbf"],"explainers":{"en":{"lang":"en","tldr":"Changes the devp2p eth protocol so blob transactions travel without their blobs and blobs are fetched separately by versioned hash, so a fee bump (replace-by-fee) no longer re-sends the same blob data across the network.","tags":["networking","devp2p","blobs","mempool","rbf"],"related":[4844,7642,8070,8077],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8094/","markdown":"## What problem does it solve?\n\nBlob transactions ([EIP-4844](/eip-4844/)) carry a large *sidecar*: the blobs plus their KZG commitments and proofs. When a sender bumps the fee to get included faster (replace-by-fee, RBF), the replacement is a new transaction with a new hash. In the current eth protocol (eth/69, [EIP-7642](/eip-7642/)) peers cannot tell that the replacement carries the exact same blobs they already hold, so the whole sidecar is downloaded and relayed again.\n\nThat is worst exactly when it hurts most: RBF is used heavily during fee spikes, which usually coincide with network load. This EIP lets nodes skip re-downloading blobs they already have.\n\n## How it works\n\nBlobs are addressed by their **versioned hash (vhash)**, the identifier already committed to in every type-3 transaction's `blob_versioned_hashes` field.\n\n- `Transactions (0x02)` and `PooledTransactions (0x0a)` send type-3 transactions **without** the sidecar. Because the bare transaction is small, nodes may push it directly instead of only announcing it.\n- Two new messages (codes still to be assigned):\n  - `GetPooledBlobs`: `[request-id, [vhash1, vhash2, ...]]` asks a peer for specific blobs.\n  - `PooledBlobs`: `[request-id, [blob1, blob2, ...]]` returns them in request order; unavailable blobs may be skipped. The receiver checks each blob against the requested vhash.\n- A node must not forward a blob transaction until it has received and validated all of its blobs.\n\nSo when a fee-bumped replacement arrives, a node compares its vhashes with what it already stores and only requests the blobs it is missing, often none.\n\nThe authors considered a single sidecar-level hash but chose per-blob vhashes because they already exist and allow a replacement to carry fewer blobs. They also weighed extending announcements with vhashes or nonces ([EIP-8077](/eip-8077/)) before settling on \"transaction without sidecar, blobs on request\".\n\n## Sample code\n\nReceiver-side logic, as pseudocode:\n\n```python\ndef on_blob_tx(peer, tx):               # type-3 tx received without sidecar\n    missing = [h for h in tx.blob_versioned_hashes if not blob_store.has(h)]\n    if missing:\n        peer.send(GetPooledBlobs(request_id=new_id(), vhashes=missing))\n        pending[tx.hash] = tx\n    else:\n        validate_and_add(tx)            # e.g. RBF with identical blobs: no download\n\ndef on_pooled_blobs(peer, msg):\n    for blob in msg.blobs:              # same order as requested, gaps allowed\n        h = kzg_to_versioned_hash(blob.commitment)\n        if h in requested(msg.request_id) and verify_blob(blob):\n            blob_store.put(h, blob)\n    # only now may completed txs be forwarded to other peers\n```\n\n## Things to know\n\n- Status is **Draft**. Message codes, the exact blob encoding (version prefix, sending cell proofs so receivers can rebuild erasure coding) and Security Considerations are still open.\n- It is a networking change only: a new eth protocol version, no hard fork and no consensus change. Older clients keep using the previous version.\n- It may be combined with [EIP-8077](/eip-8077/) (announce source and nonce) and the sparse blobpool in [EIP-8070](/eip-8070/); how to combine with the latter is still undecided.\n- Pushing small sidecar-less transactions offsets the extra round-trip needed to fetch blobs.\n"},"ja":{"lang":"ja","tldr":"devp2p の eth プロトコルを変更し、blob トランザクションを blob なしで流通させ、blob は versioned hash で別途取得する。これにより手数料の引き上げ（replace-by-fee）をしても、同じ blob データがネットワークに再送されなくなる。","tags":["networking","devp2p","blobs","mempool","rbf"],"related":[4844,7642,8070,8077],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8094/","markdown":"## 何を解決するのか\n\nblob トランザクション（[EIP-4844](/eip-4844/)）は、大きな*サイドカー*、つまり blob とその KZG コミットメントおよび証明を運びます。送信者がより早く取り込まれるように手数料を引き上げる（replace-by-fee、RBF）と、置き換え後は新しいハッシュを持つ新しいトランザクションになります。現在の eth プロトコル（eth/69、[EIP-7642](/eip-7642/)）では、ピアは置き換えたトランザクションがすでに保持している blob とまったく同じものを運んでいることを判別できず、サイドカー全体が再びダウンロードされ、中継されます。\n\nこれが最も困るときに最悪になります。RBF は手数料が急騰するときに多用され、それは通常ネットワークの負荷が高いときと重なります。この EIP により、ノードはすでに持っている blob の再ダウンロードを省けます。\n\n## 仕組み\n\nblob は**versioned hash（vhash）**で指定されます。これは、すべての type-3 トランザクションの `blob_versioned_hashes` フィールドにすでにコミットされている識別子です。\n\n- `Transactions (0x02)` と `PooledTransactions (0x0a)` は、type-3 トランザクションをサイドカー**なし**で送ります。素のトランザクションは小さいため、ノードは通知するだけでなく直接プッシュしてもかまいません。\n- 2 つの新しいメッセージ（コードは未割り当て）:\n  - `GetPooledBlobs`: `[request-id, [vhash1, vhash2, ...]]`。特定の blob をピアに要求します。\n  - `PooledBlobs`: `[request-id, [blob1, blob2, ...]]`。要求順に blob を返します。入手できない blob は省略してもかまいません。受信側は各 blob を、要求した vhash と照合します。\n- ノードは、blob トランザクションのすべての blob を受信して検証するまで、そのトランザクションを転送してはなりません。\n\nそのため、手数料を引き上げた置き換えトランザクションが届いたとき、ノードはその vhash をすでに保存しているものと比較し、足りない blob だけを要求します。多くの場合、要求する blob はありません。\n\n著者らはサイドカー全体に 1 つのハッシュを付ける案も検討しましたが、vhash がすでに存在し、置き換えで blob の数を減らせることから blob ごとの vhash を選びました。また、通知を vhash や nonce で拡張する案（[EIP-8077](/eip-8077/)）も検討したうえで、「サイドカーなしのトランザクション、blob は要求に応じて」に落ち着きました。\n\n## サンプルコード\n\n受信側のロジック（擬似コード）:\n\n```python\ndef on_blob_tx(peer, tx):               # type-3 tx received without sidecar\n    missing = [h for h in tx.blob_versioned_hashes if not blob_store.has(h)]\n    if missing:\n        peer.send(GetPooledBlobs(request_id=new_id(), vhashes=missing))\n        pending[tx.hash] = tx\n    else:\n        validate_and_add(tx)            # e.g. RBF with identical blobs: no download\n\ndef on_pooled_blobs(peer, msg):\n    for blob in msg.blobs:              # same order as requested, gaps allowed\n        h = kzg_to_versioned_hash(blob.commitment)\n        if h in requested(msg.request_id) and verify_blob(blob):\n            blob_store.put(h, blob)\n    # only now may completed txs be forwarded to other peers\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。メッセージコード、blob の正確なエンコーディング（バージョンプレフィックス、受信側が消失訂正符号を再構築できるようにセル証明を送ること）、セキュリティ上の考慮事項はまだ未決定です。\n- ネットワーク層のみの変更です。eth プロトコルの新バージョンであり、ハードフォークもコンセンサスの変更もありません。古いクライアントは以前のバージョンを使い続けます。\n- [EIP-8077](/eip-8077/)（送信元と nonce の通知）や、[EIP-8070](/eip-8070/) のスパース blobpool と組み合わせられる可能性があります。後者との組み合わせ方はまだ決まっていません。\n- サイドカーなしの小さなトランザクションをプッシュすることで、blob の取得に必要な追加の往復を相殺できます。\n"},"ko":{"lang":"ko","tldr":"devp2p eth 프로토콜을 바꿔 blob 트랜잭션이 blob 없이 전파되고 blob은 versioned hash로 따로 가져오게 한다. 그러면 수수료를 올려도(replace-by-fee) 같은 blob 데이터가 네트워크에 다시 전송되지 않는다.","tags":["networking","devp2p","blobs","mempool","rbf"],"related":[4844,7642,8070,8077],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8094/","markdown":"## 어떤 문제를 해결하나요?\n\nblob 트랜잭션([EIP-4844](/eip-4844/))은 큰 *사이드카*, 즉 blob과 그에 대한 KZG 커밋먼트 및 증명을 함께 나릅니다. 발신자가 더 빨리 포함되도록 수수료를 올리면(replace-by-fee, RBF), 교체본은 새 해시를 가진 새 트랜잭션이 됩니다. 현재 eth 프로토콜(eth/69, [EIP-7642](/eip-7642/))에서는 피어가 교체본이 이미 가지고 있는 것과 똑같은 blob을 담고 있다는 사실을 알 수 없어서 사이드카 전체를 다시 다운로드하고 중계합니다.\n\n이 문제는 가장 아픈 순간에 가장 심합니다. RBF는 수수료가 급등할 때 많이 쓰이는데, 이는 보통 네트워크 부하와 겹치기 때문입니다. 이 EIP는 노드가 이미 가진 blob을 다시 내려받지 않아도 되게 합니다.\n\n## 어떻게 동작하나요?\n\nblob은 **versioned hash(vhash)** 로 식별합니다. 이는 모든 type-3 트랜잭션의 `blob_versioned_hashes` 필드에 이미 커밋되어 있는 식별자입니다.\n\n- `Transactions (0x02)`와 `PooledTransactions (0x0a)`는 type-3 트랜잭션을 사이드카 **없이** 보냅니다. 트랜잭션 본체는 작기 때문에 노드는 알림만 보내는 대신 직접 푸시해도 됩니다.\n- 새 메시지 두 개(코드는 아직 미할당):\n  - `GetPooledBlobs`: `[request-id, [vhash1, vhash2, ...]]`. 피어에게 특정 blob을 요청합니다.\n  - `PooledBlobs`: `[request-id, [blob1, blob2, ...]]`. 요청 순서대로 반환하며, 없는 blob은 건너뛸 수 있습니다. 수신자는 각 blob을 요청한 vhash와 대조해 검증합니다.\n- 노드는 blob 트랜잭션의 모든 blob을 받아 검증하기 전에는 그 트랜잭션을 전달해서는 안 됩니다.\n\n그래서 수수료를 올린 교체본이 도착하면 노드는 그 vhash를 이미 저장한 것과 비교하고, 없는 blob만 요청합니다. 대개는 하나도 요청하지 않아도 됩니다.\n\n저자들은 사이드카 전체에 해시 하나를 두는 방식도 고려했지만, vhash가 이미 존재하고 교체본이 더 적은 blob을 담을 수 있다는 이유로 blob별 vhash를 택했습니다. 알림을 vhash나 nonce로 확장하는 방안([EIP-8077](/eip-8077/))도 따져 본 뒤 \"사이드카 없는 트랜잭션, blob은 요청 시에\"로 정했습니다.\n\n## 샘플 코드\n\n수신 측 로직(의사 코드):\n\n```python\ndef on_blob_tx(peer, tx):               # type-3 tx received without sidecar\n    missing = [h for h in tx.blob_versioned_hashes if not blob_store.has(h)]\n    if missing:\n        peer.send(GetPooledBlobs(request_id=new_id(), vhashes=missing))\n        pending[tx.hash] = tx\n    else:\n        validate_and_add(tx)            # e.g. RBF with identical blobs: no download\n\ndef on_pooled_blobs(peer, msg):\n    for blob in msg.blobs:              # same order as requested, gaps allowed\n        h = kzg_to_versioned_hash(blob.commitment)\n        if h in requested(msg.request_id) and verify_blob(blob):\n            blob_store.put(h, blob)\n    # only now may completed txs be forwarded to other peers\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다. 메시지 코드, blob의 정확한 인코딩(버전 접두사, 수신자가 이레이저 코딩을 재구성할 수 있도록 cell proof를 보내는 것), 보안 고려 사항은 아직 정해지지 않았습니다.\n- 네트워크 계층만 바뀝니다. 새 eth 프로토콜 버전이며 하드포크도 합의 변경도 없습니다. 이전 클라이언트는 이전 버전을 계속 사용합니다.\n- [EIP-8077](/eip-8077/)(출처와 nonce 알림), 그리고 [EIP-8070](/eip-8070/)의 희소 blobpool과 결합될 수 있습니다. 후자와 어떻게 결합할지는 아직 정해지지 않았습니다.\n- 사이드카 없는 작은 트랜잭션을 푸시하면 blob을 가져오는 데 필요한 추가 왕복을 상쇄할 수 있습니다.\n"},"zh":{"lang":"zh","tldr":"修改 devp2p 的 eth 协议，使 blob 交易在传播时不带 blob，blob 则按 versioned hash 单独获取，这样提高手续费（replace-by-fee）时就不会在网络中重复发送同样的 blob 数据。","tags":["networking","devp2p","blobs","mempool","rbf"],"related":[4844,7642,8070,8077],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8094/","markdown":"## 它解决什么问题？\n\nblob 交易（[EIP-4844](/eip-4844/)）带有一个很大的 *sidecar*：blob 及其 KZG 承诺和证明。发送者为了更快被打包而提高手续费（replace-by-fee，RBF）时，替换交易是一笔拥有新哈希的新交易。在当前的 eth 协议（eth/69，[EIP-7642](/eip-7642/)）中，对等节点无法得知这笔替换交易带有的正是自己已经持有的那些 blob，于是整个 sidecar 会被再次下载和转发。\n\n这在最糟的时候最糟：RBF 在手续费飙升期间被大量使用，而这通常与网络负载高峰重合。这个 EIP 让节点可以跳过已拥有的 blob 的重复下载。\n\n## 它如何运作\n\nblob 通过其 **versioned hash（vhash）** 来寻址，这是每笔 type-3 交易的 `blob_versioned_hashes` 字段中已经承诺的标识符。\n\n- `Transactions (0x02)` 和 `PooledTransactions (0x0a)` 发送 type-3 交易时**不带** sidecar。由于裸交易很小，节点可以直接推送，而不是仅仅发布通告。\n- 两条新消息（消息码尚待分配）：\n  - `GetPooledBlobs`：`[request-id, [vhash1, vhash2, ...]]`，向对等节点请求特定的 blob。\n  - `PooledBlobs`：`[request-id, [blob1, blob2, ...]]`，按请求顺序返回；不可用的 blob 可以跳过。接收方会根据所请求的 vhash 校验每个 blob。\n- 节点在收到并验证某笔 blob 交易的所有 blob 之前，不得转发该交易。\n\n因此，当提高手续费的替换交易到达时，节点会把它的 vhash 与已存储的内容对比，只请求缺少的 blob，往往一个也不缺。\n\n作者曾考虑过为整个 sidecar 使用单个哈希，但选择了按 blob 的 vhash，因为它们已经存在，而且允许替换交易携带更少的 blob。他们还权衡过用 vhash 或 nonce 扩展通告（[EIP-8077](/eip-8077/)），最终选定“不带 sidecar 的交易，blob 按需获取”。\n\n## 示例代码\n\n接收端逻辑（伪代码）：\n\n```python\ndef on_blob_tx(peer, tx):               # type-3 tx received without sidecar\n    missing = [h for h in tx.blob_versioned_hashes if not blob_store.has(h)]\n    if missing:\n        peer.send(GetPooledBlobs(request_id=new_id(), vhashes=missing))\n        pending[tx.hash] = tx\n    else:\n        validate_and_add(tx)            # e.g. RBF with identical blobs: no download\n\ndef on_pooled_blobs(peer, msg):\n    for blob in msg.blobs:              # same order as requested, gaps allowed\n        h = kzg_to_versioned_hash(blob.commitment)\n        if h in requested(msg.request_id) and verify_blob(blob):\n            blob_store.put(h, blob)\n    # only now may completed txs be forwarded to other peers\n```\n\n## 需要注意\n\n- 状态为 **Draft**。消息码、blob 的具体编码（版本前缀、发送 cell proof 以便接收方重建纠删码）以及安全性考虑仍未确定。\n- 这只是网络层变更：一个新的 eth 协议版本，没有硬分叉，也没有共识变更。旧客户端继续使用之前的版本。\n- 它可能与 [EIP-8077](/eip-8077/)（通告来源和 nonce）以及 [EIP-8070](/eip-8070/) 中的稀疏 blobpool 结合使用；与后者如何结合尚未决定。\n- 推送不带 sidecar 的小交易，可以抵消获取 blob 所需的额外往返。\n"}}}
