# pq-devnet-2 spec :::info :mega: pq-devnet-2 target launch date: 08.12.2026 ::: :::info :checkered_flag: **Scope.** Post-quantum keys are derived from the mnemonic with **ERC-8517** instead of from the BLS signing key. Every leanXMSS public key and VRF root changes, so genesis, the precomputed key files and the validator clients move together. Key, root and signature sizes and the key file formats are unchanged. ::: ## Goals - **ERC-8517 seeds**: genesis validators and builders get their leanXMSS seed and VRF seed from the ERC-8517 tree of the mnemonic. - **No BLS in the PQ key path**: a validator client loads its post-quantum seed directly and no longer hashes the BLS secret key. - **Keys bound to the network and role**: the same mnemonic gives different keys on every chain ID, and a validator and a builder never share a key. ## Network size pq-devnet-2 runs **65,536 validators on 182 validator nodes**, about a tenth of mainnet's 753,643 active validators. The node classes and the client split follow mainnet's validating nodes, as seen by the xatu sentries on 2026-12-01. No node runs more than 500 validators. ### Committee geometry - [Add X_COMMITTEE_COUNTS to rotate committee counts](https://github.com/ethereum/consensus-specs/pull/5879) Merged :heavy_check_mark: `X_COMMITTEE_COUNTS: [16, 8, 4, 2, 1]` holds each committee count for eight epochs, then wraps. A full cycle is 40 epochs. | Epochs (mod 40) | Committees per slot | Validators per committee | |:---------------:|:-------------------:|:------------------------:| | 0-7 | 16 | 128 | | 8-15 | 8 | 256 | | 16-23 | 4 | 512 | | 24-31 | 2 | 1,024 | | 32-39 | 1 | 2,048 | 65,536 is the only validator count that allows all five stages. The 16-committee stage needs at least 16 × 32 × 128 = 65,536 validators, and the 1-committee stage allows at most 32 × 2,048 = 65,536. The 16-committee stage covers all 16 attestation subnets (`ATTESTATION_SUBNET_COUNT_PQ`). On mainnet under PQ, a committee would have about 1,470 validators, which falls between the 2- and 1-committee stages. ### Node classes | Class | Nodes | Validators per node | Custody groups | Bandwidth down / up | Added latency | Droplet | |-------|:-----:|:-------------------:|:--------------:|:-------------------:|:-------------:|---------| | Supernode | 127 | 500 (one node 416) | 128 | 1 Gbit / 1 Gbit | None | `c-8` | | Large | 30 | 64 | 64 | 100 / 50 Mbit | 15 ± 5 ms | `s-8vcpu-16gb` | | Small | 25 | 8 | 8 | 50 / 15 Mbit | 40 ± 10 ms | `s-4vcpu-8gb` | | Bootnode and observers | 3 | 0 | 128 | Not limited | None | `c-8` | The bandwidth limits are set with `tc` on the public interface (`ethpandaops.general.traffic_control`). Small nodes get the [EIP-7870](https://eips.ethereum.org/EIPS/eip-7870) full-node minimum of 15 Mbit upload, as a home staker would have. Large nodes get its block-builder recommendation of 100/50 Mbit. Supernodes stand for data-centre operators. Small and large nodes also get extra delay on outgoing packets, for the last mile of a home or office connection, on top of the real latency between the ten DigitalOcean regions. Supernodes get none. The observers are not limited, so the measurements do not depend on their links. ### Clients | Client | Supernode | Large | Small | Nodes | Validators | Share | |--------|:---------:|:-----:|:-----:|:-----:|-----------:|------:| | Lighthouse | 50 | 7 | 9 | 66 | 25,436 | 38.8% | | Prysm | 30 | 4 | 6 | 40 | 15,304 | 23.4% | | Nimbus | 11 | 9 | 1 | 21 | 6,084 | 9.3% | | Teku | 7 | 2 | 4 | 13 | 3,660 | 5.6% | | Lodestar | 7 | 2 | 2 | 11 | 3,644 | 5.6% | | Grandine | 6 | 2 | 1 | 9 | 3,136 | 4.8% | | ethlambda | 8 | 2 | 1 | 11 | 4,136 | 6.3% | | Silver | 8 | 2 | 1 | 11 | 4,136 | 6.3% | | **Total** | **127** | **30** | **25** | **182** | **65,536** | | Every execution client is geth. Lighthouse, Prysm, Nimbus and Teku follow their share of mainnet's validating nodes. ethlambda, Silver, Lodestar and Grandine get at least nine nodes each, so every client runs in every class. ### Load compared with pq-devnet-1 | | pq-devnet-1 | pq-devnet-2 | |---|---|---| | Validators | 10,000 | 65,536 | | Validator nodes | 20 | 182 | | Attestations per slot | ~312 | 2,048 | | Aggregators elected per slot | 8 | 4 to 64, depending on the stage | | Signers per aggregate | ~160 | 128 to 2,048 | | XMSS signatures per slot on the busiest node | ~16 | ~16 | ## Test design ### Mainnet reference Taken from xatu on 2026-12-01: the custody group count that 31 sentries saw in peer metadata over 24 hours, the client name from the same peers, and the active validator set at epoch 492,975. - **Validator set**: 753,643 active validators holding 44.4M ETH. 18,329 of them have a balance above 32 ETH and hold 47% of the stake. - **Nodes**: 13,461 peers. 8,112 (60%) custody 4 groups, so they run no validators. pq-devnet-2 leaves those out and copies the 5,349 validating nodes. - **Custody groups as a proxy for stake**: a node custodies one group per 32 ETH it runs, at least 8 and at most 128. The count therefore puts every validating node in a size class. | Class on mainnet | Custody groups | Validating nodes | Share | |------------------|:--------------:|:----------------:|:-----:| | Small | 8-32 | 2,107 | 39.4% | | Large | 33-127 | 1,830 | 34.2% | | Supernode | 128 | 1,412 | 26.4% | | Client | Share of validating nodes | Small / large / supernode | |--------|:-------------------------:|:-------------------------:| | Lighthouse | 41.5% | 47 / 25 / 28% | | Prysm | 24.9% | 45 / 24 / 31% | | Nimbus | 13.1% | 4 / 86 / 10% | | Teku | 8.7% | 67 / 10 / 23% | | Erigon (Caplin) | 4.9% | 0 / 85 / 15% | | Lodestar | 4.0% | 49 / 18 / 34% | | Grandine | 0.4% | 48 / 17 / 35% | Caplin has no PQ client and is left out. Lighthouse, Prysm, Nimbus and Teku keep their mainnet ratios. The others get a minimum number of nodes, so every client runs in every class. ### Choices and limits - **At most 500 validators per node.** That keeps XMSS signing at pq-devnet-1's level, about 16 signatures per slot on the busiest node. Every validator has 32 ETH, so any node with 128 or more validators custodies all 128 groups. The cap therefore makes supernodes 70% of the validator nodes, against 26% on mainnet. - **Sizes within mainnet's ranges.** Large nodes run 64 validators, inside mainnet's 33-127 range. Small nodes run 8, the minimum custody of a validating node. - **No compounding validators.** They would only change balances. Custody and signing load come from the validator count. - **Lighthouse has 38.8% of validators**, close to its mainnet share. A Lighthouse bug can therefore stop finality, as it could on mainnet. What a network a tenth the size cannot reproduce: | | Mainnet under PQ | pq-devnet-2 | |---|---|---| | Committees per slot × validators per committee | 16 × ~1,470 | one of 16 × 128 ... 1 × 2,048 | | Attestations per slot | ~23,500 | 2,048 | | Validating nodes | ~5,350 | 182, so about one gossip hop fewer | ### What each stage tests No stage has both mainnet's committee count and its committee size. The 16-committee stage tests how many aggregates there are, and the 2- and 1-committee stages test how large each one is. Measuring both lets the mainnet case be estimated. | Committees × validators | What it stresses | |-------------------------|------------------| | 16 × 128 | 64 aggregators per slot, at least 16 aggregate proofs merged into each block, all 16 subnets active | | 8 × 256 and 4 × 512 | Points on the curve of cost against committee size | | 2 × 1,024 | Proving a mainnet-sized aggregate in the 2.4 s between an aggregator's cutoff and its send time | | 1 × 2,048 | Above mainnet size: the largest aggregate, and 2,048 attestations on one subnet in one slot | Signing load per node is the same in every stage, so the extra stages cost nothing but cycle time. The order goes down from 16 to 1, so stages next to each other compare directly. Each wrap from 1 back to 16 changes the committee layout completely and tests the stage boundary. After a few clean cycles, a mixed order such as `[16, 1, 8, 2, 4]` also tests large steps downwards. ### Telemetry Every client is expected to emit the OpenTelemetry events of Mark's [PQ measurement spec](https://github.com/ethDreamer/pq-measurement-spec) (`eth.telemetry/0.3`), enabled with `--telemetry-events=pq` and exported over OTLP logs to the node's xatu sentry. It defines ten `pq.*` events: | Event | What it records | |-------|-----------------| | `pq.context` | Chain identity, client, prover and instrumentation revisions, proof parameters, prover threads and hardware | | `pq.aggregate_received` | First delivery of an aggregate to the client, before validation | | `pq.aggregate_processed` | Validation queue, start, finish and the point the aggregate becomes usable, with outcome, signers and sizes | | `pq.aggregate_published` | An aggregator's publication request and result, with signers and proof size | | `pq.aggregate_traffic` | Aggregate gossip traffic | | `pq.validation_batch` | Batched proof verification and its members | | `pq.operation_admitted`, `pq.operation_completed` | Proving and merging operations from admission to completion | | `pq.duty_scheduled`, `pq.duty_completed` | Aggregation duties and their outcome | The events land in xatu as the `otel_pq_*` tables. On pq-devnet-1 only Lighthouse sends them, so per-client timings such as proving time and validation time could not be compared. For pq-devnet-2, every client sending them is a launch requirement. ### Measured per stage - Time from cutoff to publish for each aggregator, per client (`pq.aggregate_published`) - Aggregate and proof size. On pq-devnet-1 the proof is 171-175 KiB at about 160 signers - Aggregate arrival against the send time, and aggregators that missed or stayed silent because they were covered (Dora, per position) - Time the proposer takes to merge proofs, and block arrival - Inclusion distance and participation - Peak bandwidth per node, by class ## Key derivation - [PR-2214 - Add ERC: Post-Quantum Validator Seed Derivation](https://github.com/ethereum/ERCs/pull/2214) Merged :heavy_check_mark: - [PR-34 - feat: derive ERC-8517 post-quantum seeds](https://github.com/protolambda/eth2-val-tools/pull/34) Open :exclamation: | | pq-devnet-0 and pq-devnet-1 | pq-devnet-2 (ERC-8517) | |---|---|---| | Starting point | BLS signing key `sk` at `m/12381/3600/<i>/0/0` (ERC-2333) | Account seed at `m/5326/3600/<chain_id>/<role>/<i>`, hardened HMAC-SHA512 under the domain `"Ethereum PQ seed"` | | leanXMSS seed | `sha256("leanxmss-seed" \|\| sk)` | `HKDF-Expand(account_seed, "leanXMSS key", 32)` | | VRF seed | `sha256("vrf-seed" \|\| sk)` | `HKDF-Expand(account_seed, "VRF key", 32)` | | Network | Not part of the derivation | `chain_id` is the `DEPOSIT_CHAIN_ID` of the network, `1 <= chain_id < 2^31` | | Role | Not part of the derivation | `0` for a validator, `1` for a builder. A builder has no VRF seed | | BIP-39 passphrase | Empty | Empty | leanXMSS key generation from the seed and the VRF tree from the VRF seed are unchanged. HKDF is the expand step of RFC 5869 with SHA-256. ### What does not change | Item | Size | |------|------| | leanXMSS seed, VRF seed | 32 bytes | | leanXMSS public key, VRF root | 32 bytes | | `.bin` record (public key, VRF root) | 64 bytes per key index | | `.vrf` record (VRF root, compact state at slot 0) | 1028 bytes per key index | | `.xmss` record (top tree and two bottom trees) | 14696 bytes per key index | Beacon nodes, gossip and the state transition do not see how a seed was made. The change is confined to key generation and key loading. ### Check values Default ethereum-package mnemonic (`giant issue aisle ...`), empty passphrase, chain ID `3151908`, validator role. Public keys from `go-leanxmss` as pinned by [`ethpandaops/eth-beacon-genesis@d1a8253d`](https://github.com/ethpandaops/eth-beacon-genesis/commit/d1a8253d73e781b97b19cf229c0ffe044226c5c3). | Account | Path | Account seed | leanXMSS seed | VRF seed | leanXMSS public key | |---------|------|--------------|---------------|----------|---------------------| | 0 | `m/5326/3600/3151908/0/0` | `55fbb215782cdb01ef92bcbdea7b437a5515b505513175c63c89155c75204f8e` | `b4d657dc50d99079133fae51fcc31fad26ec6b0c015fa5935996a3cebe3f92ce` | `8f08bcd86f555c7254b14cb2f9b35afaea02a09eb79e7c60b59d11ec9f5ca9fa` | `7af1834ab2c0d654f5f7a262e1c7d1422a57718cb03a1a437072a22087d08da1` | | 1 | `m/5326/3600/3151908/0/1` | `fd3783c0cad0af04cbca453c255fae510bb581569e125798d321be01fb45de13` | `b6903608efa51df64db66792d6000d31fc2d5b95e1f7ed53a8dc203bc1838cb1` | `7982f43ebd688c15a05996ac701abbf8968821a2753ec5d66f30b68971d2292d` | `dbd6d5a5e0ac91de2d96f48d3b0a4811dc549e671386e6854f6d8ca73e912ba4` | The same mnemonic and indices under the pq-devnet-1 derivation give `d7792e26...f711c632` and `fe121c85...f56edaad`. The ERC has five more test vectors, including a builder and the largest chain ID and account. Seeds for any mnemonic, chain ID and account range: ```sh eth2-val-tools pq-seeds --mnemonic "<mnemonic>" --chain-id <chain_id> --role validator --source-min 0 --source-max 2 ``` ## Requirements | Area | Requirement | |------|-------------| | Genesis tool | `eth-beacon-genesis` derives leanXMSS public keys and VRF roots from the ERC-8517 seeds and takes the chain ID as an input | | Key files | The `.bin`, `.vrf` and `.xmss` files are regenerated. The chain ID is part of the path, so a file is valid for one mnemonic on one network, and the file name has to tell networks apart | | Validator clients | Stop deriving the leanXMSS seed and the VRF seed from the BLS secret key. An ERC-8517 seed cannot be computed from a BLS key: the client is given the account seed, or the mnemonic with the chain ID, role and account | | Keystore | Holds the account seed and records its path, as the ERC recommends. Both seeds are expanded from it, so one keystore holds the keys of one account | | Refusals | A seed outside 16 to 64 bytes, a `chain_id` outside `[1, 2^31)`, an unsupported role and an index at or above `2^31` are refused, never reduced or hashed into range | | Builders | Derive at role `1` and need no VRF seed | | Account index | The validator at ERC-2334 index `i` uses account `i` | | PQ telemetry | Every client emits the `pq.*` events of the [PQ measurement spec](https://github.com/ethDreamer/pq-measurement-spec) (`eth.telemetry/0.3`) behind `--telemetry-events=pq`, exported over OTLP logs to the local xatu sentry | | Committee rotation | Every client reads `X_COMMITTEE_COUNTS` and takes the committee count of an epoch from it (PR-5879). The genesis tool emits the list and refuses a validator count that drops a stage | ## Pinned versions | Component | Pin | |-----------|-----| | Consensus spec | [`ethereum/consensus-specs@66f143ec`](https://github.com/ethereum/consensus-specs/commit/66f143ec87da07452e3059b0954584014043125e) (`pq` branch, includes the rotating committee geometries of PR-5879) | | leanVM (signer, prover, verifier) | TBD | | Genesis / key derivation | ERC-8517. Genesis tool commit and key files TBD | | Chain ID | TBD | | Execution layer | TBD | ## Client readiness Every client has to make this change before genesis: a client that still derives from the BLS key computes a public key that is not the one in the state, and its validators cannot sign. The last column is where the pq-devnet-0 or pq-devnet-1 branch hardcodes `sha256("leanxmss-seed" || sk)` and `sha256("vrf-seed" || sk)` today. | Client | Branch | ERC-8517 seeds | Image | BLS-based derivation to replace | |--------|--------|:--------------:|-------|---------------------------------| | Lighthouse | TBD | :hourglass: | TBD | `beacon_node/genesis/src/pq.rs` | | Teku | TBD | :hourglass: | TBD | `infrastructure/bls-keystore/.../keystore/pq/PqKeyStoreSecrets.java`, behind `--Xvalidators-pq-keys-derived-from-bls-key` | | Prysm | TBD | :hourglass: | TBD | `validator/pqkeys/keys.go`, `validator/vrftree/tree.go` | | Grandine | TBD | :hourglass: | TBD | `signer/src/pq.rs` | | ethlambda | TBD | :hourglass: | TBD | `crates/common/crypto/src/pq_keys.rs` | | Silver | TBD | :hourglass: | TBD | Not located yet | | Nimbus | TBD | :hourglass: | TBD | `beacon_chain/validators/validator_pool.nim`, `beacon_chain/spec/pq_vrf.nim` | | Lodestar | TBD | :hourglass: | TBD | `packages/validator/src/services/xmssSigner.ts` | | consensoor | TBD | :hourglass: | TBD | `consensoor/crypto/xmss.py` | A client is ready when it reproduces the check values above and all five test vectors of the ERC. ## Open items - **Keystore format**: the ERC says what a keystore should hold, not its encoding. Clients need one common format, or a common way to be handed the account seed, before genesis keys can be distributed. - **Key file naming**: the mnemonic fingerprint of pq-devnet-1 does not include the chain ID. - **Tooling**: `eth2-val-tools pq-seeds` prints the seeds only. It writes no keystores and computes no public keys or VRF roots. - **ERC status**: ERC-8517 is a draft and its constants can still change.