Repository navigation
feat: start networks on the consensus-specs pq fork - #1523
barnabasbusa wants to merge 54 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
Replaces eip8450_fork_epoch and xmss_signatures with pq_fork_epoch, which starts the network on the pq feature fork of consensus-specs and swaps the execution request contracts for inert stubs. Claude-Session: https://claude.ai/code/session_01M9fA4V2rapVbjWM1bW21wn
There was a problem hiding this comment.
Summary
The PR wires pq_fork_epoch/xmss_pubkey_url through the input parser, env template and genesis generator, and switches several defaults toward PQ-capable images. The plumbing mostly matches ethereum-genesis-generator#341, but the request-contract stubbing is still keyed off any non-future PQ epoch, the new Lighthouse command path ignores injected custom binaries, and the Dora default is now a personal PQ image for all networks.
Issues
- 🟡
src/prelaunch_data_generator/el_cl_genesis/el_cl_genesis_generator.star:144— request contracts stubbed for any non-future PQ epoch, not only genesis activation — see the thread on that line - 🟡
src/cl/lighthouse/lighthouse_launcher.star:254— PQ command bypasses injected custom Lighthouse binary — see the thread on that line - 🟡
src/package_io/constants.star:108— Default Dora image is a personal PQ build for every network — see the thread on that line
Reviewed @ 7ec2cd17
"When in doubt, leave it out." — Joshua Porter
There was a problem hiding this comment.
The PR wires pq_fork_epoch and xmss_pubkey_url through the input parser, genesis env template and genesis generator, selects the PQ Dora image only for genesis-activated PQ networks, and rejects non-genesis PQ epochs. The parameter names match ethereum-genesis-generator#341, and the latest fixes close the previously identified Dora and request-contract-stub issues; I found no remaining code problems worth flagging.
Reviewed 8 changed file(s) @ ee4d5305 — no blocking issues found.
"When in doubt, leave it out." — Joshua Porter
This comment has been minimized.
This comment has been minimized.
Adds the Silver Grafana dashboard that vladimir-ea wrote in #1530. It came in with the PQ work on the `pq` branch but has nothing to do with the PQ fork, so it is split out here and removed from #1523; the dashboard directory is provisioned as a whole, so no launcher change is needed. Co-authored-by: vladimir-ea <vladimir-ea@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Summary
Adds genesis-only pq fork support: pq_fork_epoch, staggered aggregation params, precomputed XMSS/VRF URLs, inert request-contract stubs, pq entrypoint fallbacks, and pq test configs; the latest commits add aggregation wiring and run clients without sidecar wrappers when absent. The two branch-pinned URL findings are fixed by the R2 defaults. Still outstanding: the auto-selected VRF/XMSS state URLs are wrong whenever validator index != key index, pq prerequisites/client compatibility are not validated, the package-wide withdrawal_type default flips to 0x02, and the README cache-consumer list is stale.
Issues
- 🔴
src/package_io/input_parser.star:519— default VRF/XMSS state URLs can point at the wrong validator's state — see the thread on that line - 🟡
src/package_io/input_parser.star:506— pq is accepted with CL types the package has no pq handling for — see the thread on that line - 🟡
src/package_io/input_parser.star:507— pq activation does not enforce the documented Gloas/Heze prerequisites — see the thread on that line - 🟡
src/package_io/input_parser.star:1956— global withdrawal_type default changed to 0x02 with the pq work — see the thread on that line - 🟢
README.md:997— xmss-cache-url consumer list is stale after the latest commits — see the thread on that line
Reviewed @ 5d96c31b
"When in doubt, leave it out." — Joshua Porter
| and result["network_params"]["preregistered_validator_keys_mnemonic"] | ||
| == constants.DEFAULT_MNEMONIC | ||
| ): | ||
| result["network_params"]["vrf_state_url"] = constants.DEFAULT_VRF_STATE_URL |
There was a problem hiding this comment.
🟡 default VRF/XMSS state URLs assume key index equals validator index
The defaults are selected solely because the primary mnemonic is DEFAULT_MNEMONIC, but the published .vrf/.xmss files are indexed by mnemonic key index. eth-beacon-genesis derives keys by mnemonic start/count and then optionally shuffles the validator list, so with shuffle_genesis_validators: true, or with additional_mnemonics (including builder_count builders), validator index != key index and a client loading its state at its validator index gets another key's VRF root/cache and cannot sign.
…rapper and default to the pq-devnet-1 key files
…rs when the image has none
There was a problem hiding this comment.
Summary
This PR adds genesis-only pq support (fork version/epoch, XMSS/VRF URLs, stubbed request contracts, pq client wrappers/flags and test configs) and moves the default key files to pq-keys.ethpandaops.io. The auto-selected VRF/XMSS state files can point at another validator's state when genesis validators are shuffled or extra mnemonics are used, and pq activation still isn't validated against its documented Gloas/Heze prerequisites. The stale xmss-cache consumer list is also still there; the withdrawal_type 0x02 default has since landed on main independently, so that earlier item is no longer a PR delta.
Issues
- 🔴
src/package_io/input_parser.star:519— default VRF/XMSS state URLs can point at the wrong validator's state — see the thread on that line - 🟡
src/package_io/input_parser.star:507— pq activation does not enforce the documented Gloas/Heze prerequisites — see the thread on that line - 🟢
README.md:997— xmss-cache-url consumer list is stale after the latest commits — see the thread on that line
Reviewed @ 8254936a
"Firefox" is another name for the red panda — yes, that Firefox.
| result["network_params"][ | ||
| "xmss_pubkey_url" | ||
| ] = constants.DEFAULT_XMSS_PUBKEY_URL | ||
| if ( |
There was a problem hiding this comment.
🔴 default VRF/XMSS state URLs can point at the wrong validator's state
These defaults are applied whenever the primary mnemonic is DEFAULT_MNEMONIC, but the served .vrf/.xmss files are in mnemonic-key-index order while the flags are documented as validator-indexed. With shuffle_genesis_validators: true or any additional_mnemonics (including the builder mnemonic added for builder_count), validator index != key index, so clients fetch another key's VRF root/cache and cannot sign; only set these defaults when there are no additional mnemonics and shuffling is disabled.
This comment has been minimized.
This comment has been minimized.
SummaryAdds genesis-only pq activation, precomputed leanXMSS/VRF URLs, pq client wrappers and six pq CI configs; the latest commit moves Dora's attestation-arrivals env into the parser and looks correct. The core wiring matches ethereum-genesis-generator#341, but pq activation still accepts configurations that contradict its documented fork prerequisites, and the auto-selected VRF/XMSS state files break whenever validator index differs from mnemonic key index. The withdrawal_type 0x02 default from the earlier review is already on main, so it is no longer a delta here. Issues
Reviewed @ |
Adds
pq_fork_epochto start a network at genesis on thepqfeature fork of consensus-specs, where validators are identified by leanXMSS public keys and every duty is signed with leanXMSS instead of BLS, plusxmss_pubkey_urlto fetch precomputed keys for large validator sets instead of deriving them during genesis generation. With the fork enabled the execution request contracts are replaced by inert stubs, so no request other than a deposit can be made. Needs the genesis generator image from ethereum-genesis-generator#341, which this PR points the default at until that is released.