Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -956,12 +956,23 @@ network_params:
# Base URL holding precomputed leanXMSS public keys and VRF roots for the
# validator mnemonics, as <mnemonic fingerprint>.bin files with 64 bytes per
# key index. Only the needed range is fetched; keys that are missing, such
# as those of another mnemonic or beyond the end of the file, are derived,
# which takes about 5 CPU seconds per key
# as those of another mnemonic or beyond the end of the file, are derived.
# A VRF root covers the 2^31 leaves of its tree, about an hour of CPU time
# per key, so more than a handful of validators need precomputed keys
# Defaults to "", which on a pq network resolves to static_files/xmss-keys of
# this package on GitHub, holding the first 10000 keys of the default mnemonic
xmss_pubkey_url: ""

# URL of a file of precomputed VRF tree states, 1028 bytes per validator
# index: the VRF root, then the compact state at slot 0 (4 zero bytes and the
# 31 siblings of leaf 0). A validator client loads the states of its
# validators from it instead of hashing each tree in full, which takes
# minutes per validator. Passed to consensoor
# Defaults to "", which on a pq network with the default mnemonic resolves to
# the states of its first 10000 keys in static_files/xmss-keys of this
# package on GitHub
vrf_state_url: ""

# Temporary hack while FOCIL is kept separate from frames: disables the Heze
# fork on the CL side (HEZE_FORK_EPOCH pinned to max uint64 in the CL config)
# while the EL still activates bogota at heze_fork_epoch.
Expand Down Expand Up @@ -1868,7 +1879,7 @@ slashoor_params:
# Ethereum genesis generator params
ethereum_genesis_generator_params:
# The image to use for ethereum genesis generator
image: ethpandaops/ethereum-genesis-generator:pq
image: ethpandaops/ethereum-genesis-generator:pq-full-vrf
# Pass custom environment variables to the genesis generator (e.g. MY_VAR: my_value)
extra_env: {}

Expand Down
6 changes: 6 additions & 0 deletions src/cl/consensoor/consensoor_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ def get_beacon_config(
)
)

if (
network_params.pq_fork_epoch != constants.FAR_FUTURE_EPOCH
and network_params.vrf_state_url != ""
):
cmd.append("--vrf-state-url=" + network_params.vrf_state_url)

bootnode_arg = bootnode_enr_override
if network_params.network not in constants.PUBLIC_NETWORKS:
if (
Expand Down
7 changes: 5 additions & 2 deletions src/package_io/constants.star
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,18 @@ BUILDOOR_SERVICE_NAME = "buildoor"
BUILDOOR_API_PORT = 8080
DEFAULT_DORA_IMAGE = "ethpandaops/dora:master"
DEFAULT_DORA_PQ_IMAGE = "ethpandaops/dora:pq"
DEFAULT_XMSS_PUBKEY_URL = "https://raw.githubusercontent.com/ethpandaops/ethereum-package/b49c2c80c1eb84cccd82bcf7299e1c0441170c43/static_files/xmss-keys"
DEFAULT_XMSS_PUBKEY_URL = "https://raw.githubusercontent.com/ethpandaops/ethereum-package/d4c9a8ace9dd80ca4f9938885345f8f40a646fd0/static_files/xmss-keys"
DEFAULT_VRF_STATE_URL = "https://raw.githubusercontent.com/ethpandaops/ethereum-package/d4c9a8ace9dd80ca4f9938885345f8f40a646fd0/static_files/xmss-keys/b9dec4e1daa17dfe.vrf"

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 URLs pinned to a commit that only exists on this unmerged branch

Both DEFAULT_XMSS_PUBKEY_URL (110) and DEFAULT_VRF_STATE_URL (111) point at d4c9a8ace9dd..., which is this branch's own commit (git log: d4c9a8a feat: ship 10000 leanxmss keys with vrf roots and states over all 2^31 leaves), not a commit on the base pq/main (git branch -r --contains d4c9a8a lists only origin/pq-full-vrf). If the stack is squash-merged or this branch is rebased/force-pushed before merge, the commit becomes unreachable and both raw.githubusercontent URLs 404. The failure is quiet: eth-beacon-genesis logs "failed to fetch xmss keys, deriving them instead" and then derives a full 2^31-leaf root per key, which the README itself sizes at about an hour of CPU per key, so genesis generation stalls instead of erroring. Pinning to a commit that is on the base branch (as 35ec821 did for the previous key file) or to a release tag avoids this.

DEFAULT_CHECKPOINTZ_IMAGE = "ethpandaops/checkpointz:latest"
DEFAULT_SPAMOOR_IMAGE = "ethpandaops/spamoor:master"
DEFAULT_DISRUPTOOR_IMAGE = "ethpandaops/disruptoor:latest"
DEFAULT_SLASHOOR_IMAGE = "ethpandaops/slashoor:latest"
DEFAULT_ASSERTOOR_IMAGE = "ethpandaops/assertoor:master"
DEFAULT_SNOOPER_IMAGE = "ethpandaops/rpc-snooper:latest"
DEFAULT_BOOTNODOOR_IMAGE = "ethpandaops/bootnodoor:latest"
DEFAULT_ETHEREUM_GENESIS_GENERATOR_IMAGE = "ethpandaops/ethereum-genesis-generator:pq"
DEFAULT_ETHEREUM_GENESIS_GENERATOR_IMAGE = (
"ethpandaops/ethereum-genesis-generator:pq-full-vrf"
)
DEFAULT_YQ_IMAGE = "linuxserver/yq"
DEFAULT_FLASHBOTS_RELAY_IMAGE = "ethpandaops/mev-boost-relay:main"
DEFAULT_FLASHBOTS_BUILDER_IMAGE = "ethpandaops/reth-rbuilder:develop"
Expand Down
9 changes: 9 additions & 0 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,12 @@ def input_parser(plan, input_args):
result["network_params"][
"xmss_pubkey_url"
] = constants.DEFAULT_XMSS_PUBKEY_URL
if (
result["network_params"]["vrf_state_url"] == ""
and result["network_params"]["preregistered_validator_keys_mnemonic"]
== constants.DEFAULT_MNEMONIC
):
result["network_params"]["vrf_state_url"] = constants.DEFAULT_VRF_STATE_URL

if result["network_params"]["fulu_fork_epoch"] != 0:
for bpo_key in [
Expand Down Expand Up @@ -905,6 +911,7 @@ def input_parser(plan, input_args):
heze_fork_epoch=result["network_params"]["heze_fork_epoch"],
pq_fork_epoch=result["network_params"]["pq_fork_epoch"],
xmss_pubkey_url=result["network_params"]["xmss_pubkey_url"],
vrf_state_url=result["network_params"]["vrf_state_url"],
frames_enabled=result["network_params"]["frames_enabled"],
network=result["network_params"]["network"],
min_validator_withdrawability_delay=result["network_params"][
Expand Down Expand Up @@ -1866,6 +1873,7 @@ def default_network_params():
"heze_fork_epoch": constants.FAR_FUTURE_EPOCH,
"pq_fork_epoch": constants.FAR_FUTURE_EPOCH,
"xmss_pubkey_url": "",
"vrf_state_url": "",
"frames_enabled": False,
"network_sync_base_url": "https://snapshots.ethpandaops.io/",
"force_snapshot_sync": False,
Expand Down Expand Up @@ -1956,6 +1964,7 @@ def default_minimal_network_params():
"heze_fork_epoch": constants.FAR_FUTURE_EPOCH,
"pq_fork_epoch": constants.FAR_FUTURE_EPOCH,
"xmss_pubkey_url": "",
"vrf_state_url": "",
"frames_enabled": False,
"network_sync_base_url": "https://snapshots.ethpandaops.io/",
"force_snapshot_sync": False,
Expand Down
1 change: 1 addition & 0 deletions src/package_io/sanity_check.star
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ SUBCATEGORY_PARAMS = {
"heze_fork_epoch",
"pq_fork_epoch",
"xmss_pubkey_url",
"vrf_state_url",
"frames_enabled",
"network_sync_base_url",
"force_snapshot_sync",
Expand Down
Binary file added static_files/xmss-keys/b9dec4e1daa17dfe.bin
Binary file not shown.
Binary file added static_files/xmss-keys/b9dec4e1daa17dfe.vrf
Binary file not shown.
Binary file removed static_files/xmss-keys/e06eb4adf7945123.bin
Binary file not shown.
Loading