# pq-devnet-1 spec :::info :mega: pq-devnet-1 target launch date: 27.11.2026 ::: :::info :checkered_flag: **Scope.** Relaunch of [pq-devnet-0](https://notes.ethereum.org/@ethpandaops/pq-devnet-0) on a single newer leanVM release, with staggered aggregators and the key loading and attestation timing problems of pq-devnet-0 fixed. Every client must be on **leanVM bindings v0.19.x** for signer, prover and verifier. A proof made with another revision does not verify. ::: ## Goals - **One leanVM release**: every client on bindings v0.19.x, proving in-process without the sidecar. - **Staggered attestation aggregators** ([`consensus-specs@4595f0fc`](https://github.com/ethereum/consensus-specs/commit/4595f0fc9be7e3611f0187a2ff5fee00e120f751), "Stagger aggregators and skip redundant aggregates"): the aggregators of a committee take turns in the order of their aggregation committee. Each stops collecting attestations at its own cutoff and broadcasts at its own due time, `AGGREGATOR_DELAY_BPS` after the one before it, so later aggregators can include late attestations. An aggregator broadcasts only if no aggregate it has received already covers all of its attesters. `AGGREGATE_DUE_BPS_GLOAS` is replaced by `AGGREGATE_DUE_BPS_PQ`. - **Aggregation sorted**: single attestations on gossip before the aggregation cutoff, and blocks that carry the votes of the slots they cover. - **Key loading sorted**: validators attest from genesis, and the network keeps finalizing across an XMSS bottom tree boundary. - **A gossipsub baseline**: aggregation timings measured the same way in every client, to compare against waggle and SEACAST afterwards. ## Pinned versions | Component | Pin | |-----------|-----| | Consensus spec | TBD, at or after [`4595f0fc`](https://github.com/ethereum/consensus-specs/commit/4595f0fc9be7e3611f0187a2ff5fee00e120f751) (`pq` branch) for staggered aggregators | | leanVM (signer, prover, verifier) | bindings **v0.19.x**: [v0.19.0](https://github.com/leanEthereum/leanVM/releases/tag/bindings-v0.19.0), [`leanEthereum/leanVM@351f7ae4`](https://github.com/leanEthereum/leanVM/tree/351f7ae421529ce164ed747eee1f78bdeaec3e80). Required for every client, no older versions and no backports. From v0.19.0 on, a STARK-breaking change bumps the `PROTOCOL_VERSION` the bindings expose; a version bump without it is API-only | | Genesis / key derivation | VRF leaf rule of [`b5d422b2`](https://github.com/ethereum/consensus-specs/commit/b5d422b255) with keccak legacy keys ([`4c296784`](https://github.com/ethereum/consensus-specs/commit/4c296784)), generated by [`ethpandaops/eth-beacon-genesis@d1a8253d`](https://github.com/ethpandaops/eth-beacon-genesis/commit/d1a8253d73e781b97b19cf229c0ffe044226c5c3). Same BLS-based seed derivation and XMSS public keys as pq-devnet-0. Key files for the devnet mnemonic, 10,000 keys: `2393ce16110a380d.bin` (`0761a32a…`), `.vrf` (`59b964b2…`), `.xmss` (`b574d7fa…`); for the default ethereum-package mnemonic: [`b9dec4e1daa17dfe.bin`](https://pub-50ade5e92a1f4b649d79a462cb5836ac.r2.dev/b9dec4e1daa17dfe.bin) (`109b3669…`), [`.vrf`](https://pub-50ade5e92a1f4b649d79a462cb5836ac.r2.dev/b9dec4e1daa17dfe.vrf) (`9bf10368…`), [`.xmss`](https://pub-50ade5e92a1f4b649d79a462cb5836ac.r2.dev/b9dec4e1daa17dfe.xmss) (`dd1a1cda…`) | | Execution layer | TBD. geth runs with `--engine.maxreorgdepth=0` | ## leanVM changes since pq-devnet-0 (v0.15.0) | Release | Change | |---------|--------| | v0.16.0 | VRF tree with pruning and caching | | v0.17.0 | Sidecar removed. The `leanvm-sidecar` binary and the bindings' Sidecar API are gone; clients that ran a sidecar in pq-devnet-0 (Prysm, Silver, Nimbus) move to the in-process API: `setup(threads)`, `aggregate` and `from_bytes`, with jemalloc | | v0.17.0 | CPU features are selected at runtime (CPU tiers), so one build runs on every host and no `target-cpu` build flags are needed | | v0.17.0 | 15% faster recursion. .NET bindings added (`Ethereum.LeanPq` on NuGet) | | v0.18.0 | More than 2x faster leanXMSS `keygen` and `prepare`. Compatible with v0.17.0 | | v0.19.0 | A key caches 8 bottom trees by default (4 since v0.15.0), about 42 KiB per key. `set_bottom_tree_cache_size` changes it per key at runtime, in every binding | | v0.19.0 | Breaking rename: `MAX_CACHED_BOTTOM_TREES` becomes `DEFAULT_BOTTOM_TREE_CACHE_SIZE` | | v0.19.0 | Faster signing (chain steps hashed in batches) and aggregation hints | | v0.19.0 | Bindings expose `PROTOCOL_VERSION`, bumped on every STARK-breaking change. v0.19.0 itself is API-breaking only | ## Client requirements from pq-devnet-0 pq-devnet-0 halted at slot 4096: the precomputed XMSS cache covered slot duties for slots 0 to 4095, validator clients built the next bottom tree on the threads that sign, participation fell to 27%, and a block published 19 minutes late caused a reorg deeper than geth's default limit of 32 blocks. | Area | Requirement | |------|-------------| | XMSS cache | Load the precomputed cache (`--xmss-cache-url`, or the client's equivalent) for any mnemonic, and fall back to building the trees when it is unset, unreachable or refused | | Next bottom tree | Build it ahead of the boundary, in the background and off the signing threads. Starting at the boundary is too late: a tree takes far longer than a slot | | Logging | Log at info level when a new set of trees starts and finishes building | | Signing | Sign in parallel on every core and publish each attestation as soon as it is signed, not once the whole batch is done. Attestations published 5 to 10 s into the slot miss the aggregation cutoff | | Beacon API | Validator public keys are 32 bytes (`XMSSPubkey`) in the validators and duties endpoints. The 48-byte zero-padded form is for deposits only | | Sync | Range sync and payload envelopes by range and by root work on PQ, so a node that falls behind catches up | | Timings | Expose aggregation timings (committee proof, recursive merge, aggregate arrival) in a common format that xatu can ingest and dora can show. Format TBD, proposed over OpenTelemetry | ## Client readiness | Client | Branch | leanVM v0.19.x | Image | Status | |--------|--------|:--------------:|-------|:------:| | Lighthouse | TBD | :hourglass: | `ethpandaops/lighthouse:pq-devnet-1` | :hourglass: | | Teku | [`Consensys/teku@pq-devnet-1`](https://github.com/Consensys/teku/tree/pq-devnet-1) | :hourglass: v0.17.0 | `ethpandaops/teku:pq-devnet-1` | :hourglass: | | Prysm | TBD | :hourglass: | `ethpandaops/prysm-beacon-chain:pq-devnet-1` | :hourglass: | | Grandine | [`grandinetech/grandine@pq-devnet-1`](https://github.com/grandinetech/grandine/tree/pq-devnet-1) | :hourglass: v0.17.0 | `ethpandaops/grandine:pq-devnet-1` | :hourglass: | | ethlambda | [`lambdaclass/ethlambda@pq-devnet-1`](https://github.com/lambdaclass/ethlambda/tree/pq-devnet-1) | :hourglass: | `ethpandaops/ethlambda:pq-devnet-1` | :hourglass: | | Silver | [`gattaca-com/pq-silver@pq-devnet-1`](https://github.com/gattaca-com/pq-silver/tree/pq-devnet-1) | :hourglass: | TBD | :hourglass: | | Nimbus | TBD | :hourglass: | TBD | :hourglass: | | Lodestar | [`ChainSafe/lodestar@pq-devnet-1`](https://github.com/ChainSafe/lodestar/tree/pq-devnet-1) | :hourglass: | `ethpandaops/lodestar:pq-devnet-1` | :hourglass: | ## Open items - **Consensus spec pin**: not fixed yet. Spec test vectors with XMSS may come with this devnet. - **Beacon API**: [PR-684 - beacon-APIs](https://github.com/ethereum/beacon-APIs/pull/684) has no field for the aggregator's position in the staggered order (Teku uses a non-standard `aggregator_position`), and `randao_reveal` is proposed as an array of 32 roots instead of one hex string. ## Not in pq-devnet-1 - **Waggle and SEACAST**: tested on a separate network (`pq-devnet-0-waggle`) once the implementations interop. Today Lighthouse has chunked aggregates over waggle, Prysm and Silver have SEACAST over gossipsub, and the two do not interop. - **Aggregator role**: an opt-in aggregator set with an onchain registry was discussed for home staker hardware; it is a deeper change and not part of this devnet.