EIP-8321 · Draft · Core · 2026-07-05
EIP-8321: Hash-Chain RANDAO
Replaces the BLS-signature RANDAO reveal with a hash-chain commit-reveal, so the beacon chain's randomness no longer depends on a signature scheme that quantum computers could break.
What problem does it solve?
Each beacon block mixes the proposer's RANDAO reveal into a shared random value that later picks proposers and committees (and that the EVM exposes as PREVRANDAO, see EIP-4399). Today the reveal is a BLS signature over the epoch number. Because a BLS signature is unique for a given key and message, a proposer cannot grind for a better value; it can only reveal or withhold.
BLS is not quantum-safe. With a quantum computer, an attacker could recover a validator's key and compute all its future reveals, predicting the proposer schedule far ahead and biasing randomness more effectively. Simply swapping to a post-quantum signature does not help: the planned hash-based scheme includes a salt, so signatures are not unique and could be ground.
EIP-8321 removes the signature from RANDAO altogether and uses a hash chain, which relies only on collision and preimage resistance.
How it works
- Build a chain off-chain. A validator picks a random 32-byte secret
c_0and computesc_i = blake3("HASH_CHAIN_RANDAO" || c_{i-1})up toc_n. At least 2^16 links (~2 MB to store) is recommended, enough for centuries of proposals. - Register once. The validator submits a BLS-signed
RandaoCommitmentRegistrationwithc_n. Up to 128 per block are allowed; the commitment activates 3 epochs after inclusion so it cannot be timed against a known duty. A commitment can never be changed; a validator that loses its chain must exit and re-enter. - Reveal one link per block. When proposing, the validator publishes the previous link as
hash_chain_reveal. The chain checksblake3(DST || reveal) == stored_commitment, mixes it in withmix = blake3(mix || reveal), and stores the reveal as the new commitment.
A hash accumulator (rather than today's XOR) is used because commitments are copyable: with XOR, a validator could register a copy of someone else's commitment and cancel their contribution. Validators that never register keep using the legacy BLS reveal; that path is meant to be removed in a later post-quantum fork, which would set the initial commitment at deposit time.
Sample code
Generating a chain and the per-block check (Python with the blake3 package):
import os
from blake3 import blake3
DST = b"HASH_CHAIN_RANDAO"
def make_chain(n: int = 2**16) -> list[bytes]:
while True:
chain = [os.urandom(32)]
for _ in range(n):
chain.append(blake3(DST + chain[-1]).digest())
if all(c != bytes(32) for c in chain): # zero word is forbidden
return chain
chain = make_chain()
commitment = chain[-1] # c_n: register this once
# Proposal k reveals chain[n-k]; the protocol verifies and advances:
def process_reveal(stored: bytes, reveal: bytes, mix: bytes) -> tuple[bytes, bytes]:
assert reveal != bytes(32)
assert blake3(DST + reveal).digest() == stored
return reveal, blake3(mix + reveal).digest() # (new commitment, new mix)
Things to know
- Status: Draft. The fork is not yet scheduled.
- Bias is unchanged, not removed. A proposer can still withhold its block, the same one-bit lever as today.
- Mistakes are permanent. A wrong or lost commitment means the validator cannot propose on the hash-chain path until it exits and re-enters. Clients should walk the full chain before registering. Funds and slashing risk are unaffected.
- Treat the chain secret like a signing key, but do not derive it from the signing key: walking a chain to the end eventually reveals its seed.
- A stolen chain secret lets an attacker predict, but not choose, that validator's contributions.
- This is only one piece of post-quantum consensus: block signatures and the registration signature still use BLS. See also EIP-8292 for post-quantum attestation aggregation.