---
eip: 4736
label: EIP-4736
title: Consensus Layer Withdrawal Protection
status: Final
type: Standards Track
category: Interface
created: 2022-01-30
official: https://eips.ethereum.org/EIPS/eip-4736
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4736.md
canonical: https://eips.huatuo.xyz/eip-4736/
lang: en
tldr: An optional, non-consensus convention for beacon nodes to preload and prefer pre-signed withdrawal-address changes, helping legitimate validators beat an attacker who has stolen their BLS withdrawal mnemonic.
tags: [consensus, staking, withdrawals, security, capella]
---

# EIP-4736: Consensus Layer Withdrawal Protection

> Additional security for BLSToExecutionChange operation when a consensus layer mnemonic may be compromised, without changing consensus

**TL;DR:** An optional, non-consensus convention for beacon nodes to preload and prefer pre-signed withdrawal-address changes, helping legitimate validators beat an attacker who has stolen their BLS withdrawal mnemonic.

## What problem does it solve?

Early validators were created with BLS withdrawal credentials (`0x00`), meaning their stake was controlled by a key derived from a mnemonic, not by an execution-layer address. The Capella upgrade introduced a one-time `BLSToExecutionChange` message that switches those credentials to an Ethereum address. Once set, it cannot be changed again.

That creates a race. If an attacker had quietly copied a validator's mnemonic, both the attacker and the real owner could sign a valid `BLSToExecutionChange`, and the protocol has no way to tell them apart. Whichever message reaches block proposers first wins the stake.

ERC-4736 does **not** change consensus. It proposes voluntary client and operator behaviour that tilts the race toward the legitimate holder.

## How it works

A `BLSToExecutionChange` contains a validator index, the current BLS withdrawal public key, the proposed execution address, and a signature from the withdrawal key.

The proposal recommends that beacon node clients optionally support a **broadcast file** of pre-signed changes:

- At the fork, the node automatically broadcasts each valid message in the file.
- Afterwards, for any validator listed in the file, the node prefers the matching signature and **refuses to accept or re-broadcast** a conflicting one.
- For validators not in the file, the node falls back to accepting the first valid request it hears.

Claims would be collected in public repositories as one JSON file per validator (for example `mainnet/<validatorIndex>.json`), independently verifiable by anyone. When two different valid claims exist for the same validator, it is "contested", and node operators decide which to load based on whatever evidence (such as control of the original deposit address) the parties can show.

## Sample code

Shape of a claim file, as described in the spec (values shortened):

```json
[
  {
    "message": {
      "validator_index": "123456",
      "from_bls_pubkey": "0x977c…6bfb",
      "to_execution_address": "0x08f2…5164"
    },
    "signature": "0x8729…c283"
  }
]
```

Pseudocode for the recommended node behaviour:

```python
def on_bls_change(msg, preloaded):  # preloaded: validator_index -> signature
    if not verify(msg):
        return DROP
    expected = preloaded.get(msg.validator_index)
    if expected is not None and msg.signature != expected:
        return DROP            # do not include or gossip a conflicting change
    return ACCEPT_AND_GOSSIP
```

## Things to know

- **Status: Final** (Interface category). Everything in it is OPTIONAL; it does not affect block validity.
- It was designed for the moment Capella enabled `BLSToExecutionChange`. Because each change is one-time, it only matters for validators that still have BLS (`0x00`) credentials.
- It improves the odds, it does not guarantee them. Whether a conflicting message gets in depends on which proposers run which filters.
- It cannot help someone who has lost their mnemonic entirely, and a contested claim cannot be settled from on-chain data alone.
- The spec advises anyone who suspects a compromised validator key to exit as early as possible. Withdrawals themselves are defined in [EIP-4895](/eip-4895/); exits triggered from an execution address came later in [EIP-7002](/eip-7002/).


---

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