---
eip: 8365
label: EIP-8365
title: Disallow new 0x00 validators
status: Draft
type: Standards Track
category: Core
created: 2026-07-18
requires: 6110, 7251, 7732
official: https://eips.ethereum.org/EIPS/eip-8365
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8365.md
canonical: https://eips.huatuo.xyz/zh/eip-8365/
lang: zh
tldr: 阻止存款创建带有旧式 0x00（BLS）提款凭证的新验证者，把这一群体冻结起来，作为淘汰该凭证类型的第一步，而现有的 0x00 验证者继续正常工作。
tags: [staking, validators, deposits, withdrawals, consensus]
---

# EIP-8365: Disallow new 0x00 validators

> Reject deposits that would create new validators with 0x00 withdrawal credentials, leaving existing validators untouched

**TL;DR:** 阻止存款创建带有旧式 0x00（BLS）提款凭证的新验证者，把这一群体冻结起来，作为淘汰该凭证类型的第一步，而现有的 0x00 验证者继续正常工作。

## 它解决什么问题？

验证者的提款凭证以一个前缀字节开头。`0x00` 是创世时代的原始格式：`0x00 || sha256(bls_withdrawal_pubkey)[1:]`。资金由另一把 BLS 密钥控制，没有执行层地址。自 Capella 升级以来，持有人可以通过单向的 `BLSToExecutionChange` 改为 `0x01`（执行地址），大多数人已经这样做了。

根据规范，2026 年 8 月主网上仍有约 9,200 个 `0x00` 验证者，转换已经放缓到涓涓细流，有些似乎已经丢失了密钥。然而，存款仍然可以创建全新的 `0x00` 验证者，而且仍有人这样做。这些验证者无法使用执行层触发的退出（[EIP-7002](/eip-7002/)），一旦丢失 BLS 提款密钥，其余额将被永久困住。它们中的每一个，还让旧式 `0x00` 的代码路径继续存活，而这些路径本来需要被带入后量子过渡。

## 它如何运作

在共识层的存款处理（`apply_pending_deposit`）中加入一个检查：

- 如果待处理的存款针对的是**新的**公钥，并且其提款凭证以 `0x00` 开头，就在检查签名之前将其跳过。
- 对现有验证者的**追加存款**（top-up），包括现有的 `0x00` 验证者，照常应用。
- 创建 `0x01` 或 `0x02`（[EIP-7251](/eip-7251/) 复利）验证者的存款不受影响。在适用 [EIP-7732](/eip-7732/) 构建者 `0x03` 凭证路由的地方，`0x00` 检查先运行。

被跳过的存款与目前签名无效的存款一样处理：被悄悄忽略，ETH 留在存款合约中。没有退款机制。

这一防护是在存款被**处理**时应用的，而不是在提交时。在分叉之前发送、但在分叉之后仍在排队的 `0x00` 存款也会被拒绝。

## 示例代码

规范中修改后的存款函数：

```python
def apply_pending_deposit(state: BeaconState, deposit: PendingDeposit) -> None:
    validator_pubkeys = [v.pubkey for v in state.validators]
    if deposit.pubkey not in validator_pubkeys:
        # [New] Do not create validators with BLS withdrawal credentials
        if deposit.withdrawal_credentials[:1] == BLS_WITHDRAWAL_PREFIX:  # 0x00
            return
        if is_valid_deposit_signature(deposit.pubkey, deposit.withdrawal_credentials,
                                      deposit.amount, deposit.signature):
            add_validator_to_registry(state, deposit.pubkey,
                                      deposit.withdrawal_credentials, deposit.amount)
    else:
        # Top-ups are unaffected
        index = ValidatorIndex(validator_pubkeys.index(deposit.pubkey))
        increase_balance(state, index, deposit.amount)
```

## 需要注意

- **状态：Draft。** 它需要一次共识层硬分叉；执行层没有变化。
- **不要再发送新的 `0x00` 存款。** 一旦该提案生效，这些 ETH 就会丢失。自 Capella 以来，仍在维护的存款工具都不会产生 `0x00` 凭证。
- 现有的 `0x00` 验证者不会被退出、受罚或遭到其他改动，通过 `BLSToExecutionChange` 改为 `0x01` 仍然可用。转换是明智之举。
- 这被描述为分阶段弃用的第一个"通知"阶段。规范提到了计划中的配套 EIP：以有上限的速率退出剩余的 `0x00` 验证者、逐步淘汰其余额，并在后量子分叉时移除 `0x00` 机制。这些提案不属于本 EIP。
- 第三方无法以这种方式烧掉别人的存款：创建 `0x00` 存款需要验证者密钥的有效签名。
- "悄悄丢弃，不退款"的做法与 [EIP-8205](/eip-8205/) 对提款凭证不匹配的存款的处理一致。


---

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