---
eip: 8205
label: EIP-8205
title: Withdrawal credentials preregistration
status: Draft
type: Standards Track
category: Core
created: 2026-03-26
requires: 6110, 7685, 7732
official: https://eips.ethereum.org/EIPS/eip-8205
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8205.md
canonical: https://eips.huatuo.xyz/eip-8205/
lang: en
tldr: 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.
tags: [staking, validators, deposits, consensus, security]
---

# EIP-8205: Withdrawal credentials preregistration

> Bind a validator public key to withdrawal credentials before validator deposit via an EL system contract enforced by the CL

**TL;DR:** 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

1. **Sign.** The key holder signs a `(pubkey, withdrawal_credentials)` message with the validator BLS key, under a new domain tied to the chain's `genesis_validators_root` and the genesis fork version (so one signature stays valid across forks, but not across chains).
2. **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](/eip-7002/), it is an [EIP-7685](/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).
3. **Store.** The consensus layer verifies the BLS signature and stores the binding in beacon state with an `expiry_slot` 2^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.
4. **Enforce.** When a deposit ([EIP-6110](/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:

```ts
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](/eip-7732/)).
- **A mismatched deposit loses its ETH.** Protocols should verify the active preregistration (presence and expiry) via an [EIP-4788](/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.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8205
