EIP-7657 · Stagnant · Core · 2024-03-21
EIP-7657: Sync committee slashings
Proposed a new slashing condition for beacon-chain sync committee members who sign contradictory or non-canonical light-client data, so bridges and other light-client users get an economic guarantee instead of pure trust.
What problem does it solve?
Ethereum's light client sync protocol (introduced in Altair) lets a client follow the chain by checking signatures from a rotating sync committee of 512 validators instead of tracking all validators. It is cheap enough to run inside wallets, new beacon nodes and even trust-minimized bridge contracts.
The weakness: sync committee signatures are not slashable. A dishonest supermajority could sign a non-canonical block root, producing a perfectly valid LightClientUpdate that convinces light clients of a fake finalized header, or hands control to a fake next committee. A bridge relying on that update could be drained, and the attackers would lose nothing.
EIP-7657 makes such behaviour slashable, so attacking would cost the attackers their stake.
How it works
A new beacon block operation, SyncCommitteeSlashing, carries two pieces of evidence (SyncCommitteeSlashingEvidence). Each contains the signed attested header, the sync aggregate signature and committee pubkeys, and optional Merkle proofs of the finalized header and next sync committee. It also lists the validators to slash. A validator is slashed only if it participated in both signatures and the pair shows one of these contradictions:
- Two different attested headers for the same slot.
- Two different
next_sync_committeevalues within the same sync committee period, both backed by finality proofs. - Non-linear finalized history: one evidence's finalized header is proven (via a Merkle branch to a recent finalized block root) to be on the canonical chain, and the other's is not.
Signing only an alternate but self-consistent history is deliberately not slashable, so a validator that was tricked into syncing from a bad checkpoint is not punished. Only conflicts within the current or previous sync committee period count. Evidence must be verifiable without historical data, so checkpoint-synced nodes can process it.
Sample code
Shape of the new operation (SSZ, simplified from the spec):
class SyncCommitteeSlashingEvidence(Container):
attested_header: BeaconBlockHeader
next_sync_committee: SyncCommittee
next_sync_committee_branch: Vector[Root, floorlog2(NEXT_SYNC_COMMITTEE_INDEX)]
finalized_header: BeaconBlockHeader
finality_branch: Vector[Root, floorlog2(FINALIZED_ROOT_INDEX)]
sync_aggregate: SyncAggregate
signature_slot: Slot
sync_committee_pubkeys: Vector[BLSPubkey, SYNC_COMMITTEE_SIZE]
actual_finalized_block_root: Root
actual_finalized_branch: List[Root, ...]
class SyncCommitteeSlashing(Container):
slashable_validators: List[ValidatorIndex, SYNC_COMMITTEE_SIZE]
evidence_1: SyncCommitteeSlashingEvidence
evidence_2: SyncCommitteeSlashingEvidence
recent_finalized_block_root: Root
recent_finalized_slot: Slot
# Core rule 1, from process_sync_committee_slashing:
if e1.attested_header.slot == e2.attested_header.slot and e1.attested_header != e2.attested_header:
is_slashable = True
Things to know
- Status is Stagnant. Test cases, reference implementation and security considerations are all "TBD", and the change is not scheduled for any fork. It would need a hard fork.
- Slashing only works after the fact. The spec advises that anything securing more than
SYNC_COMMITTEE_SIZE × MAX_EFFECTIVE_BALANCE(512 × 32 ETH = 16,384 ETH on mainnet, as computed in the spec) should combine light-client proofs with other safeguards, such as a multisig or extra collateral. - Supporting work would also be needed: slashing-protection DB changes so honest validators are not slashed during reorgs, signer APIs, gossip of evidence, slashers, and Beacon API endpoints.
- Until something like this ships, treat sync committee signatures as an honest-majority assumption, not an economically secured one.