Skip to content

pq-devnet-0: ship the PQ key set's .bin to the nodes - #1

Open
rolfyone wants to merge 1 commit into
ethpandaops:masterfrom
rolfyone:pq-keys-ship-bin
Open

rolfyone wants to merge 1 commit into
ethpandaops:masterfrom
rolfyone:pq-keys-ship-bin

Conversation

@rolfyone

Copy link
Copy Markdown

Ships 2393ce16110a380d.bin to the nodes' /pq-keys alongside the .xmss and .vrf, cut per host by pq-key-slice.py like them.

Teku finds a key's record in the .xmss cache through the key set's .bin next to it: one 64-byte record per key, XMSS public key first (Consensys-Incorporated/teku#11719). Without it, the Teku nodes on devnet-0 found none of their keys in the cache and built every key's trees from its seed. That took 41 minutes to load 625 keys on teku-geth-1, so it missed genesis, followed by about an hour of skipped duties while bottom trees were built at the first duties. Lighthouse also reads a .bin next to the cache when it's there.

Each host gets only its own validators' records, as with the other two files. The zero records elsewhere share one public parameter, so they identify no key.

Teku is also getting a fallback that needs no .bin: it takes the genesis state's keys and finds each one's index by its VRF root in the .vrf file, as Lighthouse does (Consensys-Incorporated/teku#11721). With this change, an image without that fallback works too.

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.

1 participant