EIPs Explained

EIP-7441 · Stagnant · Core · 2023-09-01

EIP-7441: Upgrade block proposer election to Whisk

Proposed replacing Ethereum's public block proposer schedule with Whisk, a secret leader election, so attackers cannot know and knock offline the next proposer in advance.

What problem does it solve?

On the beacon chain the proposers for all 32 slots of an epoch are computed at the start of the epoch, and anyone can compute them. Since validators' IP addresses can often be linked to their indices, an attacker can flood the upcoming proposer with traffic just before its slot, then move on to the next one. Done sequentially, such targeted denial-of-service attacks could cause many missed slots or even stall the chain.

EIP-7441 upgrades proposer election to Whisk, a single secret leader election (SSLE) protocol: exactly one validator is elected per slot, but nobody else learns who it is until that validator publishes its block.

How it works

The change is entirely on the consensus layer; the execution layer is untouched.

  1. Registration. Each validator holds a secret k and registers a tracker (rG, krG) plus a unique commitment kG. These are set on the validator's first proposal after the fork. The commitment binds the tracker to that validator, so two parties cannot both claim a slot.
  2. Candidate selection. At the start of a shuffling phase, public RANDAO randomness picks a set of candidate trackers from the whole validator set.
  3. Shuffling. During the phase, each block proposer re-randomises and shuffles a subset of those candidate trackers with private randomness, attaching a zero-knowledge proof that the shuffle is valid. After enough shuffles, no outsider can map a tracker back to a validator.
  4. Proposer selection. At the end of the phase, RANDAO picks an ordered list of proposer trackers from the shuffled candidates.
  5. Proposing. Only the owner of the elected tracker knows k. When it publishes a block it includes an opening proof that it knows the secret for that slot's tracker. Block header processing checks this proof instead of comparing against get_beacon_proposer_index.

The spec adds new BeaconState and BeaconBlockBody fields and new processing functions to the consensus specs (under the whisk feature).

Sample code

Simplified pseudocode of the slot-validity check, in the style of the consensus specs:

def process_whisk_opening_proof(state, block):
    tracker = state.whisk_proposer_trackers[state.slot % WHISK_PROPOSER_TRACKERS_COUNT]
    k_commitment = state.whisk_k_commitments[block.proposer_index]
    # Proves: the proposer knows k such that
    #   tracker.k_r_G == k * tracker.r_G  and  k_commitment == k * G
    assert IsValidWhiskOpeningProof(tracker, k_commitment,
                                    block.body.whisk_opening_proof)

Field and constant names follow the referenced Whisk feature spec and may change if the design evolves.

Things to know

  • Status is Stagnant. Whisk has not been scheduled for any network upgrade.
  • The anonymity set is the pool of candidates who were not chosen (8,192 in the spec), which corresponds to a smaller number of physical nodes.
  • Builders and relays would no longer know in advance which validator (and fee recipient) will propose, unless the proposer chooses to reveal itself. Explorers also could not attribute missed slots to a validator.
  • RANDAO is still used for candidate and proposer selection, so RANDAO-biasing concerns remain roughly as they are today.
  • Alternatives such as network-level anonymity (Dandelion) or SASSAFRAS were considered and judged a worse fit for Ethereum's threat model.

#consensus #validators #privacy #ssle #dos

Details

Authors
George Kadianakis (@asn-d6), Justin Drake (@JustinDrake), dapplion (@dapplion)
Status
Stagnant
Type
Standards Track / Core
Created
2023-09-01

Machine-readable: Markdown · JSON