Abstract
This EIP replaces the Boneh-Lynn-Shacham (BLS) signature scheme with the eXtended Merkle Signature Scheme (XMSS) for consensus signatures. XMSS is a hash-based signature scheme that is believed to be post-quantum secure. Because XMSS has no native aggregation, scalable transparent argument of knowledge (STARK) proofs replace aggregate signatures. Before the fork, validators and builders submit their XMSS keys through EIP-8483 post-quantum material registration. At the fork, those that registered switch to their XMSS keys, and those that did not are exited.
Motivation
The consensus layer relies on BLS signatures, which a cryptographically relevant quantum computer (CRQC) could forge, allowing an attacker to sign messages on behalf of any validator. The protocol must switch to a post-quantum signature scheme before there is a credible threat. This EIP defines the minimal set of changes required to switch to XMSS signatures.
Specification
Keys and Signatures
XMSS public keys replace BLS public keys in validator and builder structures, and XMSS signatures replace BLS signatures in signed messages. Each message is signed at a leaf (one-time key pair) that depends on the message. Most messages use a leaf derived from their slot and type. Attestations use a leaf derived from their target epoch. Builder bids use any unused leaf from a range reserved for bids, so a builder can bid more than once per slot. Messages without a leaf of their own, such as preregistrations and voluntary exits, use any unused leaf from a general-purpose reserved range. Each signature includes the index of the leaf that produced it, and verifiers reject any signature at a leaf that the message may not use.
RANDAO Reveals
A verifiable random function (VRF) root is added to the validator structure. It is the root of a Merkle tree with one leaf per slot, each committing to a secret value for that slot. Random decentralized autonomous organization (RANDAO) reveals are no longer BLS signatures. Instead, each reveal consists of the proposer's secret value for the slot and a Merkle branch proving its leaf against the proposer's VRF root.
Aggregation Committees
Aggregators no longer select themselves with selection proofs. Instead, each attestation committee has an aggregation committee of four validators, sampled by effective balance. Aggregation committees are computed in advance and kept in the beacon state, like the proposer lookahead.
Attestation Proofs
Aggregate attestations no longer carry a signature. Instead, aggregators attach a STARK proof to each aggregate they publish. Each block carries a single proof covering its attestations, which the proposer obtains by merging aggregate proofs or by reusing the proof of a single aggregate. Likewise, attester slashings carry a proof for each of their attestations in place of a signature.
Attestation Inclusion Delay
The minimum attestation inclusion delay is increased from one slot to two. The timely head reward moves with this delay, so it now requires an attestation to be included exactly two slots after the slot it attests to.
Networking
The maximum number of attestation committees per slot and the number of attestation subnets are both reduced from 64 to 16. The aggregators of a committee are staggered, so each stops collecting attestations and broadcasts its aggregate slightly later than the one before it. A later aggregator does not broadcast if it has already received an earlier aggregate that includes all of its attesters.
Key Migration
At the fork, validators that registered through EIP-8483 adopt their registered XMSS public key and VRF root. Validators that did not register instead take an XMSS public key and VRF root that are hashes of their BLS public key followed by distinct domain separators, so no one knows the corresponding secrets. Unregistered validators are exited at the fork, bypassing the exit queue, but become withdrawable only after a long delay, unless they were already due to become withdrawable sooner. Slashed validators keep their withdrawable epoch, so their slashing penalties still apply. Validators that still have 0x00 withdrawal credentials at the fork have no withdrawal address, so their funds are locked in the protocol. The fork leaves the proposer and payload timeliness committee lookaheads unchanged, so duties assigned to unregistered validators before the fork are missed.
At the fork, builders that registered through EIP-8483 adopt their registered XMSS public key. Builders that did not register instead take an XMSS public key derived from their BLS public key in the same way as for validators. Unregistered builders are exited and are immediately withdrawable, bypassing the usual withdrawal delay. Their pending payments are settled if they have reached the payment quorum, and dropped otherwise.
Execution Requests
On the execution layer, the existing system contracts and request formats are unchanged. On the consensus layer, request structures change their BLSPubkey fields to Bytes48 and their BLSSignature fields to Bytes96. For all requests, an XMSS public key is stored in the public key field as 16 zero bytes followed by the 32-byte key. Deposits are no longer signed, so for validator deposits the first 32 bytes of the signature field hold a VRF root instead.
Requests that still contain a BLS public key are legacy requests. They are identified by a public key field that does not start with 16 zero bytes. Legacy withdrawal and consolidation requests are ignored. Legacy deposit requests use an XMSS public key derived from their BLS public key in the same way as the keys of unregistered validators and builders. If that key is new, the deposit creates a validator or builder that is immediately exited, so its funds are returned after the usual delay.
Pending Deposit Migration
At the fork, each pending deposit for an existing validator is updated to name that validator's new XMSS public key, so it still tops the validator up. A top-up for an unregistered validator is postponed until the validator is withdrawable, then applied without consuming churn and withdrawn with the rest of its balance. A pending deposit for a new validator keeps its BLS public key and is processed as a legacy deposit. Pending withdrawals and consolidations identify validators by index, so the fork leaves them unchanged.
Removed Features
BLS-signed withdrawal credential changes are no longer accepted, since an attacker who can forge BLS signatures could use one to redirect a validator's withdrawals. Blocks no longer carry payload attestations, which spares proposers from aggregating them with a second STARK proof. The payload timeliness committee still broadcasts its votes, which fork choice uses as before. Execution requests no longer carry EIP-8483 registrations, since registrations only take effect at the fork. Proposer and attester slashings of messages signed before the fork are no longer accepted, since verifying their BLS signatures would require BLS public keys that the state no longer holds. Sync committees and the light client protocol built on them are removed, since including their signatures in every block would be too costly.
Rationale
Why XMSS?
Hash-based signatures depend only on the security of hash functions, among the most conservative cryptographic assumptions. This EIP uses leanXMSS, a variant of XMSS designed for Ethereum consensus, with small public keys, and with signatures that are efficient to prove in a STARK. XMSS is stateful, since signing two different messages at the same leaf compromises it, but assigning most messages a fixed leaf makes this manageable. Compared with SPHINCS+, the stateless alternative, XMSS signatures are about a third of the size and about three times faster to prove in a STARK with current implementations.
Why keep the existing consensus mechanism?
This EIP changes the signature scheme without changing the consensus mechanism. This keeps its scope narrow and allows the migration to be specified, implemented, and tested on its own. If the existing mechanism proves unable to support post-quantum signatures, this EIP can instead be deployed together with a new consensus mechanism.
Why fewer committees and aggregators?
Fewer, larger attestation committees mean fewer aggregates, so the proposer has fewer proofs to merge into each block's proof, at the cost of each aggregate proving more signatures. To reduce the number of large aggregates propagated across the network, each committee also has four aggregators rather than a target of sixteen. Self-selection cannot provide this, since with a target of four it would regularly leave a committee without an aggregator. Aggregators are instead assigned through aggregation committees, which guarantee four per committee.
Why increase the inclusion delay?
Including attestations from at least two slots earlier gives the proposer an extra slot to receive aggregates and merge their proofs. Each block has a single proposer, which may run on modest hardware and require the additional time to merge proofs.
Why are deposits no longer signed?
A BLS deposit signature is a proof of possession, which prevents rogue-key attacks on aggregate signatures. A STARK proof verifies each signature against its own key, so this attack does not apply and no proof of possession is needed. Without signatures, anyone who observes the first deposit for a new key could front-run it with a deposit to their own withdrawal credentials. EIP-8205 preregistrations prevent this. Keeping the existing request formats avoids changes to the existing execution layer contracts.
Why remove sync committees?
Sync committees are removed because, without native aggregation, their 512 signatures per slot would add about 1.2 MB to each block, or require a second STARK proof competing with attestations for prover capacity, solely to serve light clients. Light clients can instead rely on an alternative such as EIP-8025 optional proofs.
Backwards Compatibility
This EIP changes consensus rules and requires a hard fork. It fully replaces BLS with XMSS in the consensus layer, so any software that produces, parses, or verifies consensus signatures must be updated. Validators and builders that have not registered with EIP-8483 are exited at the fork. Deposits must use the new format, since a deposit that still names a BLS public key creates a validator or builder that is exited at once. Light clients that follow the chain through sync committees stop working at the fork.
Security Considerations
Leaf Reuse
Reusing a leaf for two different messages lets anyone forge signatures at that leaf. Running a key on multiple machines, or restoring a key without its slashing protection history, is therefore more dangerous than with BLS. Signers must also track which reserved and bid leaves they have used, and a builder that runs out of bid leaves must switch to a new key. Some protocol behavior also becomes a signing constraint. For example, a proposer cannot sign preferences for the same slot under two different dependent roots, and a builder cannot sign envelopes for two blocks that include the same bid.
Mass Exits
All unregistered stake exits at the fork. If registration is low, the active validator set shrinks significantly, reducing the stake that secures finality and lowering the cost of attacks. Registration levels should be checked before the fork is scheduled. In addition, proposals and payload timeliness committee votes already assigned to unregistered validators in the first epochs after the fork are missed.
Unregistered Exits
Validators that do not register leave the active set at the fork without waiting in the exit queue, but they become withdrawable only after a long delay, unless they were already due to become withdrawable sooner. Not registering is therefore a faster way to withdraw only when exiting normally would take longer than that delay, for example when the exit queue is long. Slashed validators keep their withdrawable epoch, so their full slashing penalty still applies.
Pre-Fork Offenses
Slashings of messages signed before the fork are not accepted after it, so an offense committed shortly before the fork, such as an attempt to finalize conflicting checkpoints, cannot be slashed in protocol. The offense remains attributable, since its evidence can still be verified against the BLS public keys from before the fork, and would be punished through a coordinated social slashing, in which a hard fork burns the offending stake. This is why unregistered validators become withdrawable only after a long delay, which keeps their stake in the protocol long enough to coordinate one.
Denial of Service
With XMSS, most messages are larger, which makes the peer-to-peer network more vulnerable to denial-of-service attacks. Every invalid message an attacker sends costs peers far more bandwidth than it would with BLS. Aggregators are also known in advance, so an attacker could target the aggregators of a committee to keep its attestations from being aggregated, as it already can target proposers.
Prover Capacity
A block's proof normally comes from merging the proofs of all the aggregates it includes, which is relatively expensive. A proposer that cannot merge in time can still produce a valid block by reusing the proof of a single aggregate, but that block includes only one committee's attestations. This is harmless when it happens occasionally, since later proposers can include the attestations left out. If most proposers cannot merge, however, too few attestations reach the chain for it to justify and finalize.
Copyright
Copyright and related rights waived via CC0.
