{"eip":4736,"title":"Consensus Layer Withdrawal Protection","description":"Additional security for BLSToExecutionChange operation when a consensus layer mnemonic may be compromised, without changing consensus","authors":["Benjamin Chodroff (@benjaminchodroff)","Jim McDonald (@mcdee)"],"status":"Final","type":"Standards Track","category":"Interface","created":"2022-01-30","discussionsTo":"https://ethereum-magicians.org/t/consensus-layer-withdrawal-protection/8161","repo":"EIPs","label":"EIP-4736","officialUrl":"https://eips.ethereum.org/EIPS/eip-4736","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4736.md","url":"https://eips.huatuo.xyz/eip-4736/","tldr":{"en":"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.","ja":"ビーコンノードが、事前署名された引き出しアドレス変更を先読みして優先するための、任意でコンセンサス外の慣習。BLS 引き出しニーモニックを盗んだ攻撃者に、正規のバリデーターが勝てるようにする。","ko":"비콘 노드가 사전 서명된 출금 주소 변경을 미리 불러와 우선 적용하도록 하는, 선택적이고 합의와 무관한 관례. BLS 출금 니모닉을 탈취한 공격자보다 정당한 검증자가 먼저 이기도록 돕는다.","zh":"一项可选的、非共识层的约定，让信标节点预加载并优先采用预先签名的提款地址变更，帮助合法验证者在与窃取了其 BLS 提款助记词的攻击者的竞争中获胜。"},"tags":["consensus","staking","withdrawals","security","capella"],"explainers":{"en":{"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"],"related":[4895,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-4736/","markdown":"## What problem does it solve?\n\nEarly 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.\n\nThat 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.\n\nERC-4736 does **not** change consensus. It proposes voluntary client and operator behaviour that tilts the race toward the legitimate holder.\n\n## How it works\n\nA `BLSToExecutionChange` contains a validator index, the current BLS withdrawal public key, the proposed execution address, and a signature from the withdrawal key.\n\nThe proposal recommends that beacon node clients optionally support a **broadcast file** of pre-signed changes:\n\n- At the fork, the node automatically broadcasts each valid message in the file.\n- Afterwards, for any validator listed in the file, the node prefers the matching signature and **refuses to accept or re-broadcast** a conflicting one.\n- For validators not in the file, the node falls back to accepting the first valid request it hears.\n\nClaims would be collected in public repositories as one JSON file per validator (for example `mainnet/\u003cvalidatorIndex\u003e.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.\n\n## Sample code\n\nShape of a claim file, as described in the spec (values shortened):\n\n```json\n[\n  {\n    \"message\": {\n      \"validator_index\": \"123456\",\n      \"from_bls_pubkey\": \"0x977c…6bfb\",\n      \"to_execution_address\": \"0x08f2…5164\"\n    },\n    \"signature\": \"0x8729…c283\"\n  }\n]\n```\n\nPseudocode for the recommended node behaviour:\n\n```python\ndef on_bls_change(msg, preloaded):  # preloaded: validator_index -\u003e signature\n    if not verify(msg):\n        return DROP\n    expected = preloaded.get(msg.validator_index)\n    if expected is not None and msg.signature != expected:\n        return DROP            # do not include or gossip a conflicting change\n    return ACCEPT_AND_GOSSIP\n```\n\n## Things to know\n\n- **Status: Final** (Interface category). Everything in it is OPTIONAL; it does not affect block validity.\n- 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.\n- It improves the odds, it does not guarantee them. Whether a conflicting message gets in depends on which proposers run which filters.\n- It cannot help someone who has lost their mnemonic entirely, and a contested claim cannot be settled from on-chain data alone.\n- 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/).\n"},"ja":{"lang":"ja","tldr":"ビーコンノードが、事前署名された引き出しアドレス変更を先読みして優先するための、任意でコンセンサス外の慣習。BLS 引き出しニーモニックを盗んだ攻撃者に、正規のバリデーターが勝てるようにする。","tags":["consensus","staking","withdrawals","security","capella"],"related":[4895,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-4736/","markdown":"## 何を解決するのか\n\n初期のバリデーターは BLS 引き出しクレデンシャル（`0x00`）で作成されており、ステークは実行レイヤーのアドレスではなく、ニーモニックから導出された鍵で管理されていました。Capella アップグレードで、そのクレデンシャルを Ethereum アドレスに切り替える 1 回限りの `BLSToExecutionChange` メッセージが導入されました。一度設定すると、再度変更することはできません。\n\nここに競争が生まれます。攻撃者がバリデーターのニーモニックをこっそりコピーしていた場合、攻撃者と本来の所有者の両方が有効な `BLSToExecutionChange` に署名でき、プロトコルには両者を区別する方法がありません。ブロック提案者に先に届いたメッセージがステークを手にします。\n\nERC-4736 はコンセンサスを**変更しません**。この競争を正当な保有者に有利に傾ける、クライアントとオペレーターの自発的な振る舞いを提案するものです。\n\n## 仕組み\n\n`BLSToExecutionChange` には、バリデーターインデックス、現在の BLS 引き出し公開鍵、変更先の実行アドレス、そして引き出し鍵による署名が含まれます。\n\nこの提案は、ビーコンノードクライアントが、事前署名された変更を集めた**ブロードキャストファイル**を任意でサポートすることを推奨しています。\n\n- フォーク時に、ノードはファイル内の有効なメッセージをそれぞれ自動的にブロードキャストします。\n- その後、ファイルに載っているバリデーターについては、ノードは一致する署名を優先し、競合する署名の**受け入れも再ブロードキャストも拒否**します。\n- ファイルに載っていないバリデーターについては、最初に受け取った有効なリクエストを受け入れる動作に戻ります。\n\n申請は、バリデーターごとに 1 つの JSON ファイル（例: `mainnet/\u003cvalidatorIndex\u003e.json`）として公開リポジトリに集められ、誰でも独立して検証できます。同じバリデーターに 2 つの異なる有効な申請が存在する場合は「係争中（contested）」となり、ノードオペレーターは、当事者が示せる証拠（元のデポジットアドレスの管理など）に基づいて、どちらを読み込むかを決めます。\n\n## サンプルコード\n\n仕様に記載されている申請ファイルの形（値は短縮）:\n\n```json\n[\n  {\n    \"message\": {\n      \"validator_index\": \"123456\",\n      \"from_bls_pubkey\": \"0x977c…6bfb\",\n      \"to_execution_address\": \"0x08f2…5164\"\n    },\n    \"signature\": \"0x8729…c283\"\n  }\n]\n```\n\n推奨されるノードの挙動の疑似コード:\n\n```python\ndef on_bls_change(msg, preloaded):  # preloaded: validator_index -\u003e signature\n    if not verify(msg):\n        return DROP\n    expected = preloaded.get(msg.validator_index)\n    if expected is not None and msg.signature != expected:\n        return DROP            # do not include or gossip a conflicting change\n    return ACCEPT_AND_GOSSIP\n```\n\n## 知っておくべきこと\n\n- **ステータス: Final**（Interface カテゴリ）。内容はすべて OPTIONAL で、ブロックの有効性には影響しません。\n- Capella で `BLSToExecutionChange` が有効になる時点のために設計されました。変更は 1 回限りなので、BLS（`0x00`）クレデンシャルのままのバリデーターにのみ意味があります。\n- 成功の確率を高めるものであり、保証するものではありません。競合するメッセージが取り込まれるかどうかは、どの提案者がどのフィルターを動かしているかに依存します。\n- ニーモニックを完全に紛失した人は助けられず、係争中の申請はオンチェーンデータだけでは決着できません。\n- 仕様は、バリデーター鍵が漏えいした疑いのある人は、できるだけ早く退出するよう勧めています。引き出し自体は [EIP-4895](/eip-4895/) で定義され、実行アドレスから発動する退出は後に [EIP-7002](/eip-7002/) で定義されました。\n"},"ko":{"lang":"ko","tldr":"비콘 노드가 사전 서명된 출금 주소 변경을 미리 불러와 우선 적용하도록 하는, 선택적이고 합의와 무관한 관례. BLS 출금 니모닉을 탈취한 공격자보다 정당한 검증자가 먼저 이기도록 돕는다.","tags":["consensus","staking","withdrawals","security","capella"],"related":[4895,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-4736/","markdown":"## 어떤 문제를 해결하나요?\n\n초기 검증자는 BLS 출금 자격 증명(`0x00`)으로 생성되었고, 이는 스테이크가 실행 계층 주소가 아니라 니모닉에서 파생된 키로 제어된다는 뜻입니다. Capella 업그레이드는 이 자격 증명을 이더리움 주소로 바꾸는 일회성 `BLSToExecutionChange` 메시지를 도입했습니다. 한 번 설정하면 다시 바꿀 수 없습니다.\n\n여기서 경주가 생깁니다. 공격자가 검증자의 니모닉을 몰래 복사해 두었다면, 공격자와 실제 소유자 모두 유효한 `BLSToExecutionChange`에 서명할 수 있고, 프로토콜은 둘을 구분할 방법이 없습니다. 블록 제안자에게 먼저 도달한 메시지가 스테이크를 차지합니다.\n\nERC-4736은 합의를 **변경하지 않습니다**. 이 경주를 정당한 보유자에게 유리하게 기울이는, 클라이언트와 운영자의 자발적 동작을 제안합니다.\n\n## 어떻게 동작하나요?\n\n`BLSToExecutionChange`에는 검증자 인덱스, 현재 BLS 출금 공개 키, 제안된 실행 주소, 그리고 출금 키의 서명이 들어 있습니다.\n\n이 제안은 비콘 노드 클라이언트가 사전 서명된 변경을 담은 **브로드캐스트 파일**을 선택적으로 지원할 것을 권장합니다.\n\n- 포크 시점에 노드는 파일의 유효한 메시지를 각각 자동으로 브로드캐스트합니다.\n- 그 후 파일에 있는 검증자에 대해서는 일치하는 서명을 우선하고, 충돌하는 서명은 **수락하거나 다시 브로드캐스트하기를 거부**합니다.\n- 파일에 없는 검증자에 대해서는 처음 들은 유효한 요청을 수락하는 방식으로 돌아갑니다.\n\n청구(claim)는 검증자마다 JSON 파일 하나(예: `mainnet/\u003cvalidatorIndex\u003e.json`)로 공개 저장소에 모이며, 누구나 독립적으로 검증할 수 있습니다. 같은 검증자에 대해 서로 다른 유효한 청구가 둘 존재하면 \"분쟁 중(contested)\"이 되며, 노드 운영자는 당사자들이 제시할 수 있는 증거(예: 최초 예치 주소의 통제권)를 바탕으로 어느 쪽을 불러올지 결정합니다.\n\n## 샘플 코드\n\n스펙에 설명된 청구 파일의 형태(값은 줄임):\n\n```json\n[\n  {\n    \"message\": {\n      \"validator_index\": \"123456\",\n      \"from_bls_pubkey\": \"0x977c…6bfb\",\n      \"to_execution_address\": \"0x08f2…5164\"\n    },\n    \"signature\": \"0x8729…c283\"\n  }\n]\n```\n\n권장되는 노드 동작의 의사 코드:\n\n```python\ndef on_bls_change(msg, preloaded):  # preloaded: validator_index -\u003e signature\n    if not verify(msg):\n        return DROP\n    expected = preloaded.get(msg.validator_index)\n    if expected is not None and msg.signature != expected:\n        return DROP            # do not include or gossip a conflicting change\n    return ACCEPT_AND_GOSSIP\n```\n\n## 알아둘 점\n\n- **상태: Final**(Interface 카테고리). 모든 내용은 OPTIONAL이며 블록 유효성에 영향을 주지 않습니다.\n- Capella에서 `BLSToExecutionChange`가 활성화되는 시점을 위해 설계되었습니다. 각 변경은 일회성이므로 아직 BLS(`0x00`) 자격 증명을 가진 검증자에게만 의미가 있습니다.\n- 확률을 높일 뿐 보장하지는 않습니다. 충돌하는 메시지가 포함되는지는 어떤 제안자가 어떤 필터를 실행하느냐에 달려 있습니다.\n- 니모닉을 완전히 잃어버린 사람은 도울 수 없으며, 분쟁 중인 청구는 온체인 데이터만으로 해결할 수 없습니다.\n- 스펙은 검증자 키가 유출되었다고 의심되는 사람은 가능한 한 빨리 exit하라고 권고합니다. 출금 자체는 [EIP-4895](/eip-4895/)에 정의되어 있고, 실행 주소에서 트리거하는 exit는 나중에 [EIP-7002](/eip-7002/)에서 정의되었습니다.\n"},"zh":{"lang":"zh","tldr":"一项可选的、非共识层的约定，让信标节点预加载并优先采用预先签名的提款地址变更，帮助合法验证者在与窃取了其 BLS 提款助记词的攻击者的竞争中获胜。","tags":["consensus","staking","withdrawals","security","capella"],"related":[4895,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-4736/","markdown":"## 它解决什么问题？\n\n早期验证者是用 BLS 提款凭证（`0x00`）创建的，这意味着其质押由助记词派生的密钥控制，而不是由执行层地址控制。Capella 升级引入了一次性的 `BLSToExecutionChange` 消息，可将这些凭证切换为以太坊地址。一旦设置，就无法再次更改。\n\n这就产生了一场竞赛。如果攻击者悄悄复制了某个验证者的助记词，攻击者和真正的所有者都能签署有效的 `BLSToExecutionChange`，而协议无法区分两者。谁的消息先到达区块提议者，谁就赢得这笔质押。\n\nERC-4736 **不会**改变共识。它提出的是客户端和运营者的自愿行为，使这场竞赛向合法持有者倾斜。\n\n## 它如何运作\n\n`BLSToExecutionChange` 包含验证者索引、当前的 BLS 提款公钥、拟设置的执行层地址，以及由提款密钥生成的签名。\n\n该提案建议信标节点客户端可选地支持一个由预签名变更组成的**广播文件**：\n\n- 在分叉时，节点自动广播文件中的每条有效消息。\n- 之后，对于文件中列出的验证者，节点优先采用匹配的签名，并**拒绝接受或重新广播**与之冲突的签名。\n- 对于不在文件中的验证者，节点回退为接受它听到的第一个有效请求。\n\n声明会以每个验证者一个 JSON 文件的形式（例如 `mainnet/\u003cvalidatorIndex\u003e.json`）收集在公开仓库中，任何人都可以独立验证。当同一个验证者存在两个不同的有效声明时，即为\"有争议\"（contested），节点运营者会根据各方能出示的任何证据（例如对原始存款地址的控制权）来决定加载哪一个。\n\n## 示例代码\n\n规范中描述的声明文件格式（数值已缩短）：\n\n```json\n[\n  {\n    \"message\": {\n      \"validator_index\": \"123456\",\n      \"from_bls_pubkey\": \"0x977c…6bfb\",\n      \"to_execution_address\": \"0x08f2…5164\"\n    },\n    \"signature\": \"0x8729…c283\"\n  }\n]\n```\n\n推荐的节点行为伪代码：\n\n```python\ndef on_bls_change(msg, preloaded):  # preloaded: validator_index -\u003e signature\n    if not verify(msg):\n        return DROP\n    expected = preloaded.get(msg.validator_index)\n    if expected is not None and msg.signature != expected:\n        return DROP            # do not include or gossip a conflicting change\n    return ACCEPT_AND_GOSSIP\n```\n\n## 需要注意\n\n- **状态：Final**（Interface 类别）。其中所有内容都是 OPTIONAL，不影响区块有效性。\n- 它是为 Capella 启用 `BLSToExecutionChange` 的那一刻而设计的。由于每次变更都是一次性的，它只对仍持有 BLS（`0x00`）凭证的验证者有意义。\n- 它提高成功的概率，但不保证。冲突消息能否被打包，取决于哪些提议者运行了哪些过滤规则。\n- 它帮不了完全丢失助记词的人，而有争议的声明无法仅凭链上数据解决。\n- 规范建议，任何怀疑验证者密钥已被泄露的人应尽早退出。提款本身定义在 [EIP-4895](/eip-4895/) 中；由执行层地址触发的退出则在后来的 [EIP-7002](/eip-7002/) 中实现。\n"}}}
