Repository navigation
feat: add pq fork types and validator endpoints - #684
Open
barnabasbusa wants to merge 4 commits into
Open
barnabasbusa wants to merge 4 commits into
barnabasbusa wants to merge 4 commits into
Conversation
2 tasks done
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
pqconsensus 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 aPqvariant (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 (newis_aggregatoron attester duties, no selection proof) andgetAggregatedAttestationV2returns the aggregate together with the STARKAttestationProof, whichAggregateAndProofand the block body then carry.produceBlockV4takes aVRFProofasrandao_reveal,Validatorgainsvrf_root, andExecutionRequestsgains 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 inproduceBlockV4are ignored. No new routes are added; the PQBeaconState, light client types and SSE payloads are left for a follow-up.