EIP-8205 · Draft · Core · 2026-03-26
EIP-8205: Withdrawal credentials preregistration
Lets a validator key holder lock in the withdrawal credentials for their key before any deposit is made, closing the deposit front-running hole that delegated staking protocols defend against today with custom workarounds.
What problem does it solve?
In delegated staking, one party supplies the ETH and another (the node operator) generates the validator's BLS key. On the beacon chain the first deposit for a public key fixes its withdrawal credentials forever. So a malicious operator can race the protocol: deposit a small amount first with its own withdrawal address, and the protocol's later 32 ETH deposit ends up controlled by the operator.
Liquid staking and staking-as-a-service products defend against this with bonds, guardian committees, or both. Those defenses work, but each team builds and audits its own, and new entrants are exposed until they do. EIP-8205 adds a protocol-level guarantee instead.
How it works
- Sign. The key holder signs a
(pubkey, withdrawal_credentials)message with the validator BLS key, under a new domain tied to the chain'sgenesis_validators_rootand the genesis fork version (so one signature stays valid across forks, but not across chains). - Submit. Anyone sends the 176-byte record (
pubkey ++ withdrawal_credentials ++ signature) plus a fee to a new system contract on the execution layer. Like EIP-7002, it is an EIP-7685 request queue with a fee starting at 1 wei that rises exponentially when demand exceeds 1 request per block (up to 4 are dequeued per block). - Store. The consensus layer verifies the BLS signature and stores the binding in beacon state with an
expiry_slot2^18 slots (~36 days at 12 s slots) ahead. It is rejected if the pubkey already has a validator, a valid pending deposit, or an active preregistration. - Enforce. When a deposit (EIP-6110) arrives for a preregistered key, it is accepted only if the withdrawal credentials match and its BLS signature is valid. A matching deposit consumes the preregistration. A mismatched one is silently dropped, and its ETH stays in the deposit contract permanently, which makes front-running a pure loss for the attacker.
Pubkeys without a preregistration are processed exactly as today.
Sample code
Querying the fee and submitting a request (ethers v6). The contract address is still TBD in the spec:
import { concat, JsonRpcProvider, Wallet } from "ethers";
const PREREG_CONTRACT = process.env.PREREG_CONTRACT!; // TBD in the spec
const provider = new JsonRpcProvider(process.env.RPC_URL);
const wallet = new Wallet(process.env.PRIVATE_KEY!, provider);
// Fee getter: empty calldata, no value
const fee = BigInt(await provider.call({ to: PREREG_CONTRACT, data: "0x" }));
// 48-byte pubkey + 32-byte withdrawal credentials + 96-byte BLS signature
const data = concat([pubkey, withdrawalCredentials, blsSignature]); // 176 bytes
await wallet.sendTransaction({ to: PREREG_CONTRACT, data, value: fee });
Things to know
- Status: Draft. Contract address, request type, test cases and reference implementation are all TBD. It requires a hard fork and builds on ePBS (EIP-7732).
- A mismatched deposit loses its ETH. Protocols should verify the active preregistration (presence and expiry) via an EIP-4788 beacon-root proof atomically in the deposit transaction, or wait for finality if verifying separately.
- The signed message never expires cryptographically; anyone holding it can resubmit it later. Treat signing as a permanent commitment.
- If an attacker's deposit is processed before the preregistration (including in the same payload), the attacker wins as today. Hence the verification step above.
- Overpaid fees are not refunded; query the fee first.
- Solo stakers who control both funds and keys gain nothing from preregistering.