Skip to content

feat: add pq fork types and validator endpoints - #684

Open
barnabasbusa wants to merge 4 commits into
ethereum:masterfrom
barnabasbusa:bbusa/pq
Open

barnabasbusa wants to merge 4 commits into
ethereum:masterfrom
barnabasbusa:bbusa/pq

Conversation

@barnabasbusa

@barnabasbusa barnabasbusa commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Adds the pq consensus version and the beacon node <> validator client surface it needs, extracted from the Lighthouse post-quantum prototype (ethDreamer/lighthouse@pq-devnet-0). Validators are identified by a 32-byte XMSS public key and sign with 2404-byte XMSS signatures, so every signed object exchanged with the validator client gets a Pq variant (SingleAttestation, SignedAggregateAndProof, SignedBeaconBlock, SignedExecutionPayloadEnvelope, PayloadAttestationMessage, SignedProposerPreferences, block headers and slashings). Attestations no longer carry a signature: the beacon node aggregates for the aggregators assigned by the state (new is_aggregator on attester duties, no selection proof) and getAggregatedAttestationV2 returns the aggregate together with the STARK AttestationProof, which AggregateAndProof and the block body then carry. produceBlockV4 takes a VRFProof as randao_reveal, Validator gains vrf_root, and ExecutionRequests gains validator/builder preregistrations and voluntary exit requests. Endpoints for objects PQ removes (voluntary exits, BLS changes, payload attestation aggregates, sync committees, selection proofs) are marked unavailable from the PQ fork onwards, and builder entries in produceBlockV4 are ignored. No new routes are added; the PQ BeaconState, light client types and SSE payloads are left for a follow-up.

Comment thread types/primitive.yaml Resolved
barnabasbusa and others added 3 commits November 25, 2026 07:52
- VrfProof is an array of 32 Bytes32 in JSON; the produceBlockV4 randao_reveal query parameter uses the new hex VrfProofSsz
- AttestationProof pattern accepts only whole bytes
- attesting_indices and aggregation_bits limits use MAX_COMMITTEES_PER_SLOT_PQ (32768)
- define the SSZ container of AggregatedAttestation
- document the Bytes48 request pubkeys (XMSS_DEPOSIT_PREFIX + XMSS key, or a legacy BLS key for deposits)
- add Pq.Builder with an XMSS pubkey to the builders endpoint
- builder entries in produceBlockV4 are ignored from PQ onwards
- mark voluntary exit, BLS change, payload attestation aggregate, sync committee and selection endpoints as unavailable from PQ onwards
- link every PQ type to consensus-specs 4c296784b
ensi321 added a commit to ChainSafe/lodestar that referenced this pull request Nov 26, 2026
Implements consensus-specs pq 4595f0fc: the aggregators of a committee take turns in the order of their aggregation committee. The one at a position stops collecting attestations at its cutoff and publishes when its aggregate is due, each AGGREGATOR_DELAY_BPS after the position before, and publishes only what no aggregate it has received includes. AGGREGATE_DUE_BPS_PQ replaces AGGREGATE_DUE_BPS_GLOAS from pq.

The beacon node proves a committee at the cutoff of the first of its validators in the aggregation committee, which it learns from the committee subscriptions, and the validator client fetches the proof when that position is due, as ethereum/beacon-APIs#684 describes. Of several aggregators of one committee only the first aggregates. An aggregator named in its slot or not at all is still proven for when it asks.

The attester duty carries the aggregator's position, and the aggregate a beacon node hands an aggregator has the shape of beacon-APIs#684, the attestation beside its proof.

A block's proofs are merged ahead from one aggregator's delay after the last aggregator is due, by when the slot's aggregates have arrived.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants