EIP.tools

EIP.tools

⚠️ DraftStandards Track: Networking

EIP-8334: Bundled Attestation Propagation

A system for broadcasting attestations in bundles using waggle

Authors
Created2026-07-06
Discussion Linkhttps://ethereum-magicians.org/t/eip-8334-bundled-attestation-propagation/29008

Markdown

https://raw.githubusercontent.com/ethereum/EIPs/re...
Pull Request#11905PR open

EIP-GPT summary

Contents
AbstractMotivationSpecificationConstantsConfiguration parametersContainersProtocolValidationRationaleAlternative DesignsBackwards CompatibilitySecurity ConsiderationsCopyright

Abstract

This proposal redesigns attestation propagation within a subnet. Instead of sending each attestation as an individual message, nodes use the waggle pubsub protocol to transmit attestations in bundles that deduplicate the shared attestation data, and they reconcile which attestations each peer holds using sets of validator indices rather than gossipsub's per-message hashes. In simulations, this results in up to 30% lower latency and around 50% bandwidth savings.

Motivation

Attestation and aggregate propagation are the major factors that impact the time to finality. Reducing the bandwidth required for attestation propagation enables aggregating more attestations in a committee, thus reducing the time to finality. This proposal itself does not make any recommendations to reduce the epoch length, but the expectation is that this system will reduce time to finality in decoupled consensus.

Specification

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.

This EIP moves attestation propagation from the beacon_attestation_{subnet_id} gossipsub topics to waggle topics of the same name. Currently, unaggregated attestations are gossiped as individual SingleAttestation messages. Every message duplicates the shared AttestationData, and gossipsub advertises each message by hash in IHAVE/IWANT control messages. This EIP transmits attestations in bundles over the waggle protocol, specified in libp2p/specs at pubsub/waggle.md (commit 9328b68f8375c54dbe197e1814014a9c916ca5a4), and reconciles attestation sets between peers with per-committee lists of validator indices. This is not signature aggregation. Signatures remain separate and bandwidth is saved by deduplicating attestation data.

Constants

NameValueDescription
MAX_ATTESTATIONS_PER_BUNDLE50Maximum number of attestations in a single AttestationBundle

Configuration parameters

The following values are RECOMMENDED. Nodes MAY use other values.

NameValueDescription
ATTESTATION_BUNDLE_TICK_INTERVAL20 msInterval at which a node pushes new attestations
ATTESTATION_PUSH_FACTOR8Number of peers that get each new attestation
ATTESTATION_METADATA_ADVERTISE_FACTOR2Number of random peers that get metadata in each advertise interval
ATTESTATION_METADATA_ADVERTISE_INTERVAL100 msInterval between metadata advertisements

Containers

AttestationData, CommitteeIndex, ValidatorIndex, BLSSignature, and MAX_VALIDATORS_PER_COMMITTEE are as defined in the consensus specifications.

class AttestationBundle(Container):
    committee_index: CommitteeIndex
    attestation_data: AttestationData
    attester_indices: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE]
    signatures: List[BLSSignature, MAX_VALIDATORS_PER_COMMITTEE]

class CommitteeAttestationPartsMetadata(Container):
    committee_index: CommitteeIndex
    available: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE]
    requests: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE]

An AttestationBundle contains attestations from one committee sharing the same attestation_data. attester_indices lists the global validator indices of the included attestations; signatures[i] is the signature of validator attester_indices[i]. A bundle MUST NOT list the same validator twice.

CommitteeAttestationPartsMetadata carries no attestation data: the slot is the object identifier and a validator attests at most once per slot, so (slot, validator_index) fully identifies an attestation. available is the set of validators whose attestations for the slot the sender holds and requests the validators whose attestations it wants from the peer.

Validator indices are the same identifier SingleAttestation carries, so bridging between the two propagation paths is field copying, and no committee shuffle is needed to identify an attestation — the shuffle is needed only where it always was, in signature validation.

Protocol

Each beacon_attestation_{subnet_id} gossipsub topic has a waggle topic with the same name. Nodes exchange waggle ObjectPieces messages on it:

message ObjectPieces {
  required bytes objectID = 2;       // slot, little-endian uint64
  optional bytes piecesMetadata = 3; // SSZ-encoded CommitteeAttestationPartsMetadata
  optional bytes pieces = 4;         // SSZ-encoded AttestationBundle
}

The attestation_data.slot of an AttestationBundle MUST equal the object identifier. The validator indices in CommitteeAttestationPartsMetadata refer to attestations for the slot in the object identifier. Nodes SHOULD ignore objects whose slot is outside the attestation propagation window.

Attestations are small, so a node eagerly pushes them.

  1. Every ATTESTATION_BUNDLE_TICK_INTERVAL, the node pushes its new attestations to ATTESTATION_PUSH_FACTOR random peers. It SHOULD bundle attestations sharing the same (committee_index, attestation_data) into a single AttestationBundle and SHOULD NOT send the same attestation to a peer twice. An AttestationBundle MUST NOT carry more than MAX_ATTESTATIONS_PER_BUNDLE attestations.
  2. Every ATTESTATION_METADATA_ADVERTISE_INTERVAL, the node advertises its available attestations to ATTESTATION_METADATA_ADVERTISE_FACTOR random peers, one CommitteeAttestationPartsMetadata per committee, listing the validators in available. The available set only grows, so a node MAY advertise to a peer only the attestations it has not advertised to that peer before.
  3. On receiving CommitteeAttestationPartsMetadata, the node requests the attestations it lacks via the requests field (empty means nothing requested).

Nodes MUST NOT deduplicate unvalidated attestations by (slot, validator_index) alone — an invalid signature would suppress a later valid one. Before validation, the deduplication identity MUST include the attestation data and signature. Once a validator's attestation for a slot has passed validation, any further attestation from that validator in the same slot is a replay or a slashable equivocation and MAY be dropped.

A single CommitteeAttestationPartsMetadata MAY carry both available and requests.

Validation

Each attestation in an AttestationBundle is validated individually under the existing beacon_attestation_{subnet_id} gossip conditions. A node forwards only attestations that pass validation.

A node SHOULD reject an AttestationBundle carrying more than MAX_ATTESTATIONS_PER_BUNDLE attestations. This bounds per-message work.

Rationale

This system deduplicates as much data as possible between peers in a subnet. As most attesters vote for the same block, deduplicating AttestationData reduces message size by around 50%.

Attestations are identified by global validator index rather than committee position. A committee position is only meaningful relative to a shuffle, which depends on the beacon state and may differ across forks, while a validator index is unambiguous and matches SingleAttestation. It also lets metadata omit the attestation data entirely: a validator attests at most once per slot, so (slot, validator_index) is a complete identifier, and one advertisement covers the slot regardless of how many distinct attestation datas the committee split over.

The goal for this system is to disseminate attestations in a subnet efficiently. This system can then be used, with some modifications, with other orthogonal attestation improvements like EIP-8243 to further reduce attestation propagation latency.

Waggle disseminates objects that nodes build from pieces. Here the object is the set of attestations for a slot, and each attestation is a piece. Waggle runs next to gossipsub, so this can roll out between forks in a backwards compatible way.

Alternative Designs

Using bitmaps for exchanging the set of available attestations is more efficient than exchanging validator indices. However, this comes with its own set of challenges. Late attestations, and validators attesting to different blocks can lead to greater bandwidth requirement than message hashes. Validator indices map one to one to SingleAttestation messages, which keeps the implementation simple. This is desirable as these objects will probably change with Decoupled Consensus and we can take up the attestation bitmap with that change.

Backwards Compatibility

This change is backwards compatible. Support is negotiated with the waggle protocol ID /waggle/1.0. Upgraded nodes MUST support both waggle and gossipsub, and MUST forward valid attestations between the waggle and beacon_attestation_{subnet_id} gossipsub topics, so peers that support only gossipsub keep working as they do today.

Security Considerations

Peer scoring in waggle should be done as in gossipsub. Peers whose score falls below the score threshold MUST be disconnected. Signatures in a bundle are unaggregated and individually attributable to the sending peer. Peers sending bundles with invalid attestations should be downscored.

Attestations can be revealed long after their slot is complete. Retention and expiry of received attestations are left to the consensus specifications.

Copyright and related rights waived via CC0.

EIP.tools

EIP.tools

Search, read, and map Ethereum improvement proposals, ERCs, RIPs, and CAIPs from one focused interface.

Farcaster
by @apoorveth