{"eip":8243,"title":"Batching Attestations at Source","description":"Allow validators scheduled for duty on the same committee to publish a single pre-aggregated attestation in place of N individual ones","authors":["Raúl Kripalani (@raulk)","Toni Wahrstätter (@nerolation)","Mikhail Kalinin (@mkalinin)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-05-01","discussionsTo":"https://ethereum-magicians.org/t/eip-8243-batching-attestations-at-source/28606","repo":"EIPs","label":"EIP-8243","officialUrl":"https://eips.ethereum.org/EIPS/eip-8243","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8243.md","url":"https://eips.huatuo.xyz/eip-8243/","tldr":{"en":"Lets operators running several validators in the same committee gossip one pre-aggregated, consent-sealed attestation instead of one per validator, cutting attestation traffic without changing on-chain rules.","ja":"同じ委員会で複数のバリデーターを運用するオペレーターが、バリデーターごとに 1 つずつではなく、事前に集約され同意の封印が付いた 1 つのアテステーションをゴシップできるようにする。オンチェーンのルールを変えずにアテステーションのトラフィックを削減する。","ko":"같은 위원회에서 여러 검증자를 운영하는 운영자가 검증자마다 하나씩 보내는 대신, 미리 집계되고 동의 봉인이 붙은 attestation 하나를 가십할 수 있게 한다. 온체인 규칙을 바꾸지 않고 attestation 트래픽을 줄인다.","zh":"让在同一委员会中运行多个验证者的运营者，只需广播一条经过预聚合并带有同意封印的 attestation，而不必每个验证者各发一条，从而在不改变链上规则的情况下减少 attestation 流量。"},"tags":["consensus","attestations","p2p","bls","scaling"],"explainers":{"en":{"lang":"en","tldr":"Lets operators running several validators in the same committee gossip one pre-aggregated, consent-sealed attestation instead of one per validator, cutting attestation traffic without changing on-chain rules.","tags":["consensus","attestations","p2p","bls","scaling"],"related":[7251,7549],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8243/","markdown":"## What problem does it solve?\n\nWith roughly a million active validators, each slot produces tens of thousands of individual attestations spread over 64 gossip subnets. Large operators run many validators that share one view of the chain and vote identically, yet each validator must still publish its own message. Today the protocol only accepts individual attestations from validators on these subnets, because letting anyone gossip arbitrary partial aggregates would let an attacker rebundle harvested votes into an exponential number of overlapping subsets.\n\nTo move toward shorter slots and faster finality, Ethereum needs fewer attestation messages. Balance consolidation ([EIP-7251](/eip-7251/)) helps but is opt-in and slow to be adopted. EIP-8243 gets a similar effect at the network layer: an operator's beacon node can batch its co-scheduled validators' votes into one message automatically.\n\n## How it works\n\n- The attestation subnet topic now carries a `WireAttestation`, an SSZ union with a 1-byte selector: `0x00` = the existing `SingleAttestation`, `0x01` = a new `BatchAttestation`.\n- A `BatchAttestation` has the usual fields (`committee_index`, `aggregation_bits`, `data`, aggregate `signature`) plus three gossip-only fields:\n  - `batcher`: the validator authorized to compose the batch (must be one of its members);\n  - `batch_seal`: an aggregate of every member's signature over `(slot, committee_index, batcher)` under a new domain, proving each validator **consented** to that batcher;\n  - `batcher_signature`: the batcher's signature over the exact `aggregation_bits`.\n- Seals don't commit to the bitfield, so validators can pre-sign them at epoch start (even for a fallback batcher).\n- After gossip validation, the seal and batcher signature are dropped and the batch flows into normal aggregation. The on-chain `Attestation` and `process_attestation` are **unchanged**, and no new slashing conditions are added.\n- **Deduplication** works on votes: a message is accepted only if it carries at least one vote not yet seen for that slot, committee and data, and only the first batch from each batcher is accepted. This caps spam at about two messages per committee member.\n\n## Sample code\n\nThe gossip dedup rule, following the spec (Python pseudocode):\n\n```python\ncache = {}  # (slot, committee_index, data_root) -\u003e {\"attesters\": set(), \"batchers\": set()}\n\ndef on_wire_attestation(att):\n    key = (att.data.slot, att.committee_index, hash_tree_root(att.data))\n    c = cache.setdefault(key, {\"attesters\": set(), \"batchers\": set()})\n\n    if att.selector == 0x00:                        # SingleAttestation\n        if att.attester_index in c[\"attesters\"]:\n            return IGNORE\n        c[\"attesters\"].add(att.attester_index)\n        return ACCEPT\n\n    # BatchAttestation (signatures already verified, \u003e= 2 members, batcher is a member)\n    members = attesters_from_bits(att)\n    if att.batcher in c[\"batchers\"]:\n        return IGNORE                               # one batch per batcher per duty\n    if all(m in c[\"attesters\"] for m in members):\n        return IGNORE                               # nothing new\n    c[\"batchers\"].add(att.batcher)\n    c[\"attesters\"].update(members)\n    return ACCEPT\n```\n\n## Things to know\n\n- **Status: Draft.** Test cases and a reference implementation are still TODO in the spec.\n- It requires a coordinated fork: post-fork nodes expect the selector byte on the attestation topic.\n- An attacker cannot slip honest validators into a batch (no seal without their key) or reuse a stolen single attestation signature (the seal uses a different domain and message).\n- Leaked singles don't suppress a batch, and a validator without a seal for an active batcher simply falls back to a single attestation with no penalty.\n- Batches reveal which validators are run together, a privacy trade-off the spec compares to balance consolidation. The same mechanism could also let attesters route votes through another batcher for k-anonymity.\n- The spec frames batching as complementary to, not a replacement for, a future cap on active validators.\n"},"ja":{"lang":"ja","tldr":"同じ委員会で複数のバリデーターを運用するオペレーターが、バリデーターごとに 1 つずつではなく、事前に集約され同意の封印が付いた 1 つのアテステーションをゴシップできるようにする。オンチェーンのルールを変えずにアテステーションのトラフィックを削減する。","tags":["consensus","attestations","p2p","bls","scaling"],"related":[7251,7549],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8243/","markdown":"## 何を解決するのか\n\nアクティブなバリデーターは約 100 万に達し、各スロットでは 64 のゴシップサブネットに分散して数万件の個別のアテステーションが生成されます。大規模なオペレーターは、チェーンの同じビューを共有して同じ投票を行う多数のバリデーターを運用していますが、それでも各バリデーターは自分のメッセージを公開しなければなりません。現在、プロトコルはこれらのサブネットで、バリデーターからの個別のアテステーションしか受け付けません。誰でも任意の部分集約をゴシップできるようにすると、攻撃者が収集した投票を、重なり合う指数的な数の部分集合に再束ねできてしまうからです。\n\nスロットの短縮とファイナリティの高速化に向けて、Ethereum にはアテステーションメッセージの削減が必要です。残高の統合（[EIP-7251](/eip-7251/)）は役に立ちますが、オプトインであり、採用が遅いという問題があります。EIP-8243 は、ネットワーク層で同様の効果を得ます。オペレーターのビーコンノードが、同じ担当に割り当てられたバリデーターの投票を、自動的に 1 つのメッセージにまとめられます。\n\n## 仕組み\n\n- アテステーションのサブネットトピックは `WireAttestation` を運びます。これは 1 バイトのセレクターを持つ SSZ ユニオンで、`0x00` = 既存の `SingleAttestation`、`0x01` = 新しい `BatchAttestation` です。\n- `BatchAttestation` は通常のフィールド（`committee_index`、`aggregation_bits`、`data`、集約された `signature`）に加えて、ゴシップ専用の 3 つのフィールドを持ちます。\n  - `batcher`: バッチを組み立てる権限を与えられたバリデーター（メンバーの 1 人でなければならない）\n  - `batch_seal`: 新しいドメインのもとで `(slot, committee_index, batcher)` に対する全メンバーの署名を集約したもので、各バリデーターがその batcher に**同意した**ことを証明する\n  - `batcher_signature`: 正確な `aggregation_bits` に対する batcher の署名\n- seal はビットフィールドにコミットしないため、バリデーターはエポックの開始時に事前署名できます（フォールバックの batcher に対してであっても）。\n- ゴシップの検証後、seal と batcher の署名は破棄され、バッチは通常の集約に流れ込みます。オンチェーンの `Attestation` と `process_attestation` は**変更されず**、新しいスラッシング条件も追加されません。\n- **重複排除**は投票を単位に行われます。メッセージが受け入れられるのは、そのスロット、委員会、データについてまだ見ていない投票を少なくとも 1 つ含む場合だけで、各 batcher からは最初のバッチだけが受け入れられます。これにより、スパムは委員会メンバー 1 人あたり約 2 メッセージに抑えられます。\n\n## サンプルコード\n\n仕様に従ったゴシップの重複排除ルール（Python 擬似コード）:\n\n```python\ncache = {}  # (slot, committee_index, data_root) -\u003e {\"attesters\": set(), \"batchers\": set()}\n\ndef on_wire_attestation(att):\n    key = (att.data.slot, att.committee_index, hash_tree_root(att.data))\n    c = cache.setdefault(key, {\"attesters\": set(), \"batchers\": set()})\n\n    if att.selector == 0x00:                        # SingleAttestation\n        if att.attester_index in c[\"attesters\"]:\n            return IGNORE\n        c[\"attesters\"].add(att.attester_index)\n        return ACCEPT\n\n    # BatchAttestation (signatures already verified, \u003e= 2 members, batcher is a member)\n    members = attesters_from_bits(att)\n    if att.batcher in c[\"batchers\"]:\n        return IGNORE                               # one batch per batcher per duty\n    if all(m in c[\"attesters\"] for m in members):\n        return IGNORE                               # nothing new\n    c[\"batchers\"].add(att.batcher)\n    c[\"attesters\"].update(members)\n    return ACCEPT\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** 仕様では、テストケースとリファレンス実装がまだ TODO です。\n- 協調したフォークが必要です。フォーク後のノードは、アテステーショントピックにセレクターバイトがあることを前提とします。\n- 攻撃者は、誠実なバリデーターをバッチに紛れ込ませることも（その鍵なしでは seal が作れません）、盗んだ単独アテステーションの署名を再利用することもできません（seal は異なるドメインとメッセージを使います）。\n- 漏れた単独アテステーションがバッチを抑止することはなく、有効な batcher の seal を持たないバリデーターは、ペナルティなしに単独のアテステーションにフォールバックするだけです。\n- バッチは、どのバリデーターが一緒に運用されているかを明らかにします。これは仕様が残高の統合と比較しているプライバシー上のトレードオフです。同じ仕組みで、アテスターが k-匿名性のために別の batcher を経由して投票を送ることもできます。\n- 仕様は、バッチ処理を、将来のアクティブなバリデーター数の上限の代替ではなく補完として位置づけています。\n"},"ko":{"lang":"ko","tldr":"같은 위원회에서 여러 검증자를 운영하는 운영자가 검증자마다 하나씩 보내는 대신, 미리 집계되고 동의 봉인이 붙은 attestation 하나를 가십할 수 있게 한다. 온체인 규칙을 바꾸지 않고 attestation 트래픽을 줄인다.","tags":["consensus","attestations","p2p","bls","scaling"],"related":[7251,7549],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8243/","markdown":"## 어떤 문제를 해결하나요?\n\n활성 검증자가 약 100만 명이고, 슬롯마다 64개의 가십 서브넷에 걸쳐 수만 개의 개별 attestation이 만들어집니다. 대규모 운영자는 체인에 대해 같은 관점을 공유하고 똑같이 투표하는 검증자를 많이 운영하지만, 그래도 각 검증자는 자기 메시지를 따로 게시해야 합니다. 현재 프로토콜은 이 서브넷에서 검증자의 개별 attestation만 받아들입니다. 누구나 임의의 부분 집계를 가십할 수 있게 하면, 공격자가 수집한 투표를 서로 겹치는 지수적으로 많은 부분 집합으로 다시 묶을 수 있기 때문입니다.\n\n더 짧은 슬롯과 더 빠른 파이널리티로 나아가려면 이더리움에는 더 적은 attestation 메시지가 필요합니다. 잔액 통합([EIP-7251](/eip-7251/))이 도움이 되지만 선택 사항이고 도입이 느립니다. EIP-8243은 네트워크 계층에서 비슷한 효과를 얻습니다. 운영자의 비콘 노드가 같은 일정에 배정된 검증자들의 투표를 자동으로 하나의 메시지로 묶을 수 있습니다.\n\n## 어떻게 동작하나요?\n\n- attestation 서브넷 토픽은 이제 `WireAttestation`을 실어 나릅니다. 1바이트 셀렉터를 가진 SSZ 유니온으로, `0x00` = 기존의 `SingleAttestation`, `0x01` = 새로운 `BatchAttestation`입니다.\n- `BatchAttestation`은 일반 필드(`committee_index`, `aggregation_bits`, `data`, 집계된 `signature`)에 더해 가십 전용 필드 세 개를 가집니다.\n  - `batcher`: 배치를 구성할 권한이 있는 검증자(멤버 중 한 명이어야 함)\n  - `batch_seal`: 새 도메인 아래에서 `(slot, committee_index, batcher)`에 대한 모든 멤버의 서명을 집계한 것으로, 각 검증자가 그 batcher에 **동의했음**을 증명\n  - `batcher_signature`: 정확한 `aggregation_bits`에 대한 batcher의 서명\n- seal은 비트필드에 커밋하지 않으므로 검증자는 에포크 시작 시점에 미리 서명해 둘 수 있습니다(대체 batcher에 대해서도).\n- 가십 검증 후 seal과 batcher 서명은 버려지고, 배치는 일반 집계로 흘러 들어갑니다. 온체인의 `Attestation`과 `process_attestation`은 **변경되지 않으며** 새로운 슬래싱 조건도 추가되지 않습니다.\n- **중복 제거**는 투표 단위로 이뤄집니다. 메시지는 해당 슬롯, 위원회, 데이터에 대해 아직 보지 못한 투표를 하나 이상 담고 있을 때만 받아들여지고, 각 batcher로부터는 첫 번째 배치만 받아들여집니다. 이렇게 하면 스팸이 위원회 구성원당 약 두 개의 메시지로 제한됩니다.\n\n## 샘플 코드\n\n명세를 따르는 가십 중복 제거 규칙(Python 의사 코드):\n\n```python\ncache = {}  # (slot, committee_index, data_root) -\u003e {\"attesters\": set(), \"batchers\": set()}\n\ndef on_wire_attestation(att):\n    key = (att.data.slot, att.committee_index, hash_tree_root(att.data))\n    c = cache.setdefault(key, {\"attesters\": set(), \"batchers\": set()})\n\n    if att.selector == 0x00:                        # SingleAttestation\n        if att.attester_index in c[\"attesters\"]:\n            return IGNORE\n        c[\"attesters\"].add(att.attester_index)\n        return ACCEPT\n\n    # BatchAttestation (signatures already verified, \u003e= 2 members, batcher is a member)\n    members = attesters_from_bits(att)\n    if att.batcher in c[\"batchers\"]:\n        return IGNORE                               # one batch per batcher per duty\n    if all(m in c[\"attesters\"] for m in members):\n        return IGNORE                               # nothing new\n    c[\"batchers\"].add(att.batcher)\n    c[\"attesters\"].update(members)\n    return ACCEPT\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 명세에서 테스트 케이스와 레퍼런스 구현은 아직 TODO입니다.\n- 조율된 포크가 필요합니다. 포크 이후의 노드는 attestation 토픽에 셀렉터 바이트가 있을 것으로 기대합니다.\n- 공격자는 정직한 검증자를 배치에 끼워 넣을 수 없고(그들의 키 없이는 seal이 없음), 훔친 개별 attestation 서명을 재사용할 수도 없습니다(seal은 다른 도메인과 메시지를 사용함).\n- 유출된 개별 attestation은 배치를 억누르지 않으며, 활성 batcher에 대한 seal이 없는 검증자는 아무 불이익 없이 개별 attestation으로 되돌아가면 됩니다.\n- 배치는 어떤 검증자가 함께 운영되는지를 드러내며, 이는 명세가 잔액 통합과 비교하는 프라이버시 트레이드오프입니다. 같은 메커니즘으로 attester가 k-익명성을 위해 다른 batcher를 통해 투표를 보낼 수도 있습니다.\n- 명세는 배치 처리를 향후 활성 검증자 수 상한의 대체가 아니라 보완으로 봅니다.\n"},"zh":{"lang":"zh","tldr":"让在同一委员会中运行多个验证者的运营者，只需广播一条经过预聚合并带有同意封印的 attestation，而不必每个验证者各发一条，从而在不改变链上规则的情况下减少 attestation 流量。","tags":["consensus","attestations","p2p","bls","scaling"],"related":[7251,7549],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8243/","markdown":"## 它解决什么问题？\n\n大约有一百万个活跃验证者，每个 slot 会产生数以万计、分布在 64 个 gossip 子网中的单独 attestation。大型运营者运行着许多共享同一条链视图、投票完全一致的验证者，但每个验证者仍然必须发布自己的消息。目前，协议在这些子网上只接受来自验证者的单独 attestation，因为如果允许任何人广播任意的部分聚合，攻击者就能把收集到的投票重新打包成指数级数量的相互重叠的子集。\n\n为了迈向更短的 slot 和更快的最终确认，以太坊需要更少的 attestation 消息。余额整合（[EIP-7251](/eip-7251/)）有所帮助，但它是自愿选择的，采用速度慢。EIP-8243 在网络层获得类似的效果：运营者的信标节点可以自动把被安排在同一任务中的验证者的投票批量合并成一条消息。\n\n## 它如何运作\n\n- 现在，attestation 子网主题承载的是 `WireAttestation`，这是一个带 1 字节选择器的 SSZ 联合体：`0x00` = 现有的 `SingleAttestation`，`0x01` = 新的 `BatchAttestation`。\n- `BatchAttestation` 具有常规字段（`committee_index`、`aggregation_bits`、`data`、聚合后的 `signature`），外加三个仅用于 gossip 的字段：\n  - `batcher`：被授权组装该批次的验证者（必须是其成员之一）；\n  - `batch_seal`：所有成员在一个新域下对 `(slot, committee_index, batcher)` 的签名聚合，证明每个验证者都**同意**由该 batcher 来组批；\n  - `batcher_signature`：batcher 对确切的 `aggregation_bits` 的签名。\n- seal 不承诺位域内容，因此验证者可以在 epoch 开始时就预先签好（甚至为备用 batcher 预签）。\n- 经过 gossip 验证后，seal 和 batcher 签名会被丢弃，批次进入常规聚合流程。链上的 `Attestation` 和 `process_attestation` **保持不变**，也不增加新的惩罚（slashing）条件。\n- **去重**以投票为单位：只有当一条消息携带了针对该 slot、委员会和数据至少一个尚未见过的投票时才会被接受，并且每个 batcher 只接受第一个批次。这把垃圾消息限制在每位委员会成员约两条消息。\n\n## 示例代码\n\n按规范的 gossip 去重规则（Python 伪代码）：\n\n```python\ncache = {}  # (slot, committee_index, data_root) -\u003e {\"attesters\": set(), \"batchers\": set()}\n\ndef on_wire_attestation(att):\n    key = (att.data.slot, att.committee_index, hash_tree_root(att.data))\n    c = cache.setdefault(key, {\"attesters\": set(), \"batchers\": set()})\n\n    if att.selector == 0x00:                        # SingleAttestation\n        if att.attester_index in c[\"attesters\"]:\n            return IGNORE\n        c[\"attesters\"].add(att.attester_index)\n        return ACCEPT\n\n    # BatchAttestation (signatures already verified, \u003e= 2 members, batcher is a member)\n    members = attesters_from_bits(att)\n    if att.batcher in c[\"batchers\"]:\n        return IGNORE                               # one batch per batcher per duty\n    if all(m in c[\"attesters\"] for m in members):\n        return IGNORE                               # nothing new\n    c[\"batchers\"].add(att.batcher)\n    c[\"attesters\"].update(members)\n    return ACCEPT\n```\n\n## 需要注意\n\n- **状态：Draft。**规范中的测试用例和参考实现仍是 TODO。\n- 它需要一次协调的分叉：分叉后的节点期望 attestation 主题上带有选择器字节。\n- 攻击者无法把诚实的验证者塞进批次（没有他们的密钥就无法生成 seal），也无法复用被盗的单独 attestation 签名（seal 使用不同的域和消息）。\n- 泄露的单独 attestation 不会压制批次；而没有某个有效 batcher 的 seal 的验证者，只需回退为单独的 attestation，不会受到任何惩罚。\n- 批次会暴露哪些验证者是一起运行的，这是一项隐私上的取舍，规范将其与余额整合作了比较。同样的机制也可以让 attester 通过另一个 batcher 转发投票，以获得 k-匿名性。\n- 规范将批量处理定位为对未来活跃验证者数量上限的补充，而不是替代。\n"}}}
