ERC-8517 Post-quantum validator seed derivation

Draft · Accounts & wallets · created 2026-11-24

From a single mnemonic, derive an Ethereum validator's or builder's post-quantum signing key (leanXMSS) and VRF seed along a fixed path, so that every tool reproduces and can recover the same keys.

Why it is needed

Ethereum's post-quantum consensus uses leanXMSS signatures and VRFs instead of BLS, both of which are generated from a 32-byte seed. Without a standard derivation method, each wallet or node tool would generate this seed randomly each time, and validators would have no way to recover their post-quantum keys from a mnemonic they already hold, forcing them to manage yet another separate backup. If different tools produce different keys, moving the same mnemonic to different software can produce a key that does not match the validator's registration, and a staker could not use the mnemonic alone to construct the registration (including proof of ownership) for a validator run by a different operator.

In depth

Structure of the derivation tree

The master node is a (key, chain_code) pair created by applying HMAC-SHA512 to the seed using the fixed domain string "Ethereum PQ seed". Child nodes are derived by applying HMAC-SHA512 again, using chain_code as the HMAC key and data formed by concatenating 0x00, the parent key, and index+HARDENED_OFFSET encoded as 4 bytes big-endian. Because every level is hardened, knowing a child node, its siblings, or other nodes cannot be used to trace back the parent node. index must be at least 0 and less than HARDENED_OFFSET (2**31); implementations must reject values outside this range.

Meaning of each level of the path

The path is m/5326/3600/<chain_id>/<role>/<account>. 5326 is the purpose value obtained by typing "lean" on a phone keypad, pointing to leanXMSS of Lean Ethereum, and 3600 is the same coin type as ERC-2334. chain_id is the EIP-155 chain ID of the network's execution layer (for example 1 for mainnet) and must be at least 1 and less than HARDENED_OFFSET; truncating or hashing it to fit the range is prohibited. role is ROLE_VALIDATOR(0) for validators and ROLE_BUILDER(1) for builders, and implementations must reject values they do not support. account functions as the account index from ERC-2334, counted separately starting from 0 for each network and role combination.

From account seed to signing/VRF seeds

The key value of the node obtained at the end of the path is that account's account_seed, and chain_code is not used. From here, HKDF-Expand (based on SHA-256) is used to derive two seeds: using the info string "leanXMSS key" yields the 32-byte xmss_seed, and using "VRF key" yields the 32-byte vrf_seed. Because the two info strings differ, the two seeds are independent of each other. Builders have no VRF tree, so builder tooling must not require derivation of vrf_seed and may omit it.

Changes compared to ERC-2333/2334

ERC-2333 passes through a Lamport public key at every level and performs modular reduction against the order of the BLS12-381 curve, consuming more than 500 SHA-256 operations per level, which is a heavy burden for hardware wallets or zero-knowledge proofs. This standard takes advantage of the fact that post-quantum seeds are arbitrary 32-byte strings rather than curve scalars, and uses only hardening-only derivation with two rounds of HMAC-SHA512 per level, as in SLIP-0010. It also does not use ERC-2334's use level or the levels below it, because post-quantum withdrawal credentials are execution layer addresses and the signing seed and VRF seed are already split via HKDF.

Reason for separating networks and roles

If the same leanXMSS key were used across two networks or two roles (validator and builder), it would sign different messages from the same leaf, enabling forgery. Placing chain_id and role as separate subtrees prevents this problem, and a key derived for the wrong network is immediately detected as mismatched with registration, which is safer than having it be reused silently. Because this level sits above account_seed, a single keystore holds secrets for only one network, and importing it into another network does not reuse that network's key.

Seed validity and keystore recommendations

The input seed must be 16 to 64 octets; implementations must reject values outside this range. It is recommended to use a BIP-39 64-octet seed (derived via PBKDF2-HMAC-SHA512 with 2048 iterations from an NFKD-normalized mnemonic and passphrase), and non-mnemonic seeds are recommended to have at least 256 bits of entropy. Keystores are recommended to store account_seed encrypted together with the derivation path, including network and role, and a single keystore should hold only one account key.

Progress status

This ERC is currently in Draft status, still under community discussion, and its specific values or rules may change or be discontinued.

Things to watch out for

Original ERC · ← ERCs