Skip to content

feat: start networks on the consensus-specs pq fork - #1523

Open
barnabasbusa wants to merge 54 commits into
mainfrom
pq
Open

barnabasbusa wants to merge 54 commits into
mainfrom
pq

Conversation

@barnabasbusa

@barnabasbusa barnabasbusa commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Adds pq_fork_epoch to start a network at genesis on the pq feature fork of consensus-specs, where validators are identified by leanXMSS public keys and every duty is signed with leanXMSS instead of BLS, plus xmss_pubkey_url to 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.

redpanda-reviewer[bot]

This comment was marked as outdated.

@redpanda-reviewer

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
@barnabasbusa barnabasbusa changed the title feat: add the EIP-8450 post-quantum key registry genesis fork feat: start networks on the consensus-specs pq fork Nov 18, 2026
redpanda-reviewer[bot]

This comment was marked as outdated.

@redpanda-reviewer redpanda-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/package_io/constants.star Resolved

@redpanda-reviewer redpanda-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

redpanda-reviewer[bot]

This comment was marked as outdated.

redpanda-reviewer[bot]

This comment was marked as outdated.

redpanda-reviewer[bot]

This comment was marked as outdated.

@redpanda-reviewer

This comment has been minimized.

redpanda-reviewer[bot]

This comment was marked as outdated.

barnabasbusa added a commit that referenced this pull request Nov 23, 2026
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>
redpanda-reviewer[bot]

This comment was marked as outdated.

@redpanda-reviewer

This comment has been minimized.

@redpanda-reviewer

This comment has been minimized.

redpanda-reviewer[bot]

This comment was marked as outdated.

@redpanda-reviewer redpanda-reviewer Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

redpandabot[bot]

This comment was marked as outdated.

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 (

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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.

@redpandabot

This comment has been minimized.

@redpandabot

redpandabot Bot commented Nov 30, 2026

Copy link
Copy Markdown

Summary

Adds 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

  • 🟡 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:522 — default VRF/XMSS state URLs can point at the wrong validator's state — 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
  • 🟢 static_files/xmss-keys/b9dec4e1daa17dfe.vrf — the shipped XMSS key files are unreferenced — Nothing in the package reads static_files/xmss-keys/; all defaults point at pq-keys.ethpandaops.io. These two files add about 10.9 MB to every package run, and the .xmss cache is not shipped either, so remove them or wire them into a real fallback.

Reviewed @ 85e0a8c8
"Firefox" is another name for the red panda — yes, that Firefox.

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