---
eip: 601
label: ERC-601
title: Ethereum hierarchy for deterministic wallets
status: Final
type: Standards Track
category: ERC
created: 2017-04-13
official: https://eips.ethereum.org/EIPS/eip-601
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-601.md
canonical: https://eips.huatuo.xyz/zh/eip-601/
lang: zh
tldr: "定义了以太坊专用的 HD 钱包路径 m/43'/60'/601'/w'，使各钱包能从同一个种子派生出相同的账户，而不是使用互不兼容的 BIP-44 变体。"
tags: [wallet, hd-wallet, bip32, keys]
---

# ERC-601: Ethereum hierarchy for deterministic wallets

> This EIP defines a logical hierarchy for deterministic wallets based on BIP32, the purpose scheme defined in BIP43 and eip-draft-ethereum-purpose.

**TL;DR:** 定义了以太坊专用的 HD 钱包路径 m/43'/60'/601'/w'，使各钱包能从同一个种子派生出相同的账户，而不是使用互不兼容的 BIP-44 变体。

## 它解决什么问题？

分层确定性（HD）钱包按照**派生路径**（BIP-32）把一个助记词转换成许多密钥。如果两个钱包使用不同的路径，同一个种子打开的就是不同的账户。撰写本 EIP 时，以太坊钱包使用了好几种不同的路径，其中一些违反了 BIP-44 的规则。在另一个钱包中恢复种子的用户有时会看到空账户，或者不得不手动输入路径。

作者还认为，BIP-44 是为比特币这类 UTXO 币设计的。它的 `change` 层级等部分在以太坊的账户模型中毫无意义。因此 EIP-601 提出了一棵专为以太坊设计的、更简单的独立树。

## 它如何运作

路径有四个层级，每一层都使用硬化派生（`'`）：

```
m / purpose' / subpurpose' / EIP' / wallet'
m / 43'      / 60'         / 601' / 0'
```

| 层级 | 值 | 含义 |
| --- | --- | --- |
| `purpose` | `43` | 用于非比特币方案的 BIP-43 purpose |
| `subpurpose` | `60` | 以太坊的 SLIP-44 币种类型 |
| `EIP` | `601` | 定义路径其余部分的 EIP 编号 |
| `wallet` | `0, 1, 2…` | 同一种子中的独立身份（账户） |

钱包规则：

- 账户从 0 开始依次编号。账户 `n` 没有交易历史时，不要创建账户 `n+1`。
- 导入种子后，扫描所有已使用的账户。

前三个层级来自 [ERC-600](/eip-600/)，它保留了 `m/43'/60'/<eip>'`，使任何 EIP 都能在自己的编号下定义自己的密钥树。EIP-601 是面向普通用户账户的那棵树。

## 示例代码

派生第一个 EIP-601 账户，与常见的 BIP-44 路径对比（ethers v6）：

```ts
import { HDNodeWallet } from "ethers";

const phrase = "test test test test test test test test test test test junk";

const eip601 = HDNodeWallet.fromPhrase(phrase, undefined, "m/43'/60'/601'/0'");
const bip44  = HDNodeWallet.fromPhrase(phrase, undefined, "m/44'/60'/0'/0/0"); // ethers default

console.log(eip601.address); // different from...
console.log(bip44.address);  // ...this one: same seed, different account
```

## 需要注意

- 尽管状态是 Final，大多数钱包并**没有**切换。MetaMask 和 ethers 默认使用 BIP-44 风格的路径 `m/44'/60'/0'/0/i`，其他大多数钱包也使用类似的 `m/44'/60'/...` 路径。如果用 EIP-601 路径派生，除非用户手动输入路径，否则其他钱包不会显示这些账户。
- 规范文本中仍然提到 "eip-draft-ethereum-purpose"。该草案对应同一作者的 [ERC-600](/eip-600/)。测试用例和实现部分写的是 "TBD" 和 "None yet"，因此没有官方测试向量。
- 以太坊共识层（BLS）的验证者密钥使用自己的路径 `m/12381/3600/...`，由 [EIP-2334](/eip-2334/) 定义。


---

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