{"eip":2334,"title":"BLS12-381 Deterministic Account Hierarchy","description":"BLS12-381 Deterministic account hierarchy structure","authors":["Carl Beekhuizen (@CarlBeek) \u003ccarl@ethereum.org\u003e"],"status":"Review","type":"Standards Track","category":"ERC","created":"2019-09-30","requires":[2333],"discussionsTo":"https://ethereum-magicians.org/t/bls-keys-related-erc-discussion-erc-2333-2334-2335/19774","repo":"ERCs","label":"ERC-2334","officialUrl":"https://eips.ethereum.org/EIPS/eip-2334","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-2334.md","url":"https://eips.huatuo.xyz/eip-2334/","tldr":{"en":"Defines the derivation paths for BLS12-381 keys, such as m/12381/3600/i/0/0 for a validator's signing key, so every staking tool derives the same keys from the same seed.","ja":"BLS12-381 鍵の導出パス（バリデーターの署名鍵なら m/12381/3600/i/0/0 など）を定め、あらゆるステーキングツールが同じシードから同じ鍵を導出できるようにする。","ko":"BLS12-381 키의 파생 경로(예: 검증자 서명 키는 m/12381/3600/i/0/0)를 정의해, 모든 스테이킹 도구가 같은 시드에서 같은 키를 파생하도록 한다.","zh":"定义 BLS12-381 密钥的派生路径，例如验证者签名密钥使用 m/12381/3600/i/0/0，使所有质押工具都能从同一个种子派生出相同的密钥。"},"tags":["bls","keys","wallet","staking","validator"],"explainers":{"en":{"lang":"en","tldr":"Defines the derivation paths for BLS12-381 keys, such as m/12381/3600/i/0/0 for a validator's signing key, so every staking tool derives the same keys from the same seed.","tags":["bls","keys","wallet","staking","validator"],"related":[2333,2335],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-2334/","markdown":"## What problem does it solve?\n\nBeacon chain validators sign with BLS signatures over the BLS12-381 curve, not with the secp256k1 keys used for ordinary Ethereum accounts. [ERC-2333](/eip-2333/) defines how to derive a tree of BLS keys from one seed, but a tree alone is not enough: every wallet, deposit tool and validator client must also agree on *which branch* of the tree holds which key. Otherwise the same mnemonic would produce different keys in different tools, and a user restoring from backup could not find their validator.\n\nThe existing Bitcoin-style path standards (BIP32/BIP44) do not fit. ERC-2333 uses its own key derivation function, uses only hardened keys and allows more keys per level, so a new path scheme is needed.\n\n## How it works\n\nA path is a list of integer indices separated by `/`, starting from the master node `m`. At least four levels below the master must be used:\n\n```text\nm / purpose / coin_type / account / use\n```\n\n| Level | Meaning |\n| --- | --- |\n| `purpose` | Always `12381` (named after the curve). Only valid if ERC-2333 is the key derivation function. |\n| `coin_type` | Separates keys for different chains. Ethereum's BLS keys use `3600` (60², a nod to Ethereum's secp256k1 coin type 60). |\n| `account` | Lets one user keep distinct sets of keys for different purposes. |\n| `use` | Related but separate keys within an account; often `0`. |\n\nFor beacon chain validators the standard fixes two keys per validator `i`:\n\n- **Withdrawal key:** `m/12381/3600/i/0`\n- **Signing key:** `m/12381/3600/i/0/0`, the 0th child of the withdrawal key.\n\nThe signing key is a \"hot\" key handed to the validator client; if it leaks, the worst case is a slashable message. The withdrawal key controls the staked funds and should stay \"cold\". Because the signing key is a child of the withdrawal key, safely storing the withdrawal key (or the seed) is enough to recover the signing key.\n\nSince every ERC-2333 derivation is hardened, the `'` hardened marker used in BIP44 paths is not used and is invalid here.\n\n## Sample code\n\nGenerating the paths for the first few validators (TypeScript):\n\n```ts\nconst PURPOSE = 12381;\nconst COIN_TYPE = 3600; // Ethereum BLS keys\n\nfunction withdrawalPath(i: number): string {\n  return `m/${PURPOSE}/${COIN_TYPE}/${i}/0`;\n}\n\nfunction signingPath(i: number): string {\n  return `${withdrawalPath(i)}/0`; // child 0 of the withdrawal key\n}\n\nfor (let i = 0; i \u003c 3; i++) {\n  console.log(i, withdrawalPath(i), signingPath(i));\n}\n// 0 m/12381/3600/0/0 m/12381/3600/0/0/0\n// 1 m/12381/3600/1/0 m/12381/3600/1/0/0\n// 2 m/12381/3600/2/0 m/12381/3600/2/0/0\n```\n\nEach path is then fed to an ERC-2333 derivation routine together with the seed to obtain the actual secret key.\n\n## Things to know\n\n- Status is **Review**: the document is still open for changes, even though staking tooling already relies on these paths.\n- It is one of a trio: [ERC-2333](/eip-2333/) (key derivation), this ERC (paths) and [ERC-2335](/eip-2335/) (encrypted keystore files).\n- Custodial or secret-shared setups may not be able to follow the paths exactly; the spec allows affected keys to be derived another way, but asks implementations to follow it as far as is reasonable.\n- These keys are unrelated to your regular wallet address: the same mnemonic run through BIP44 (`m/44'/60'/…`) yields completely different secp256k1 keys.\n"},"ja":{"lang":"ja","tldr":"BLS12-381 鍵の導出パス（バリデーターの署名鍵なら m/12381/3600/i/0/0 など）を定め、あらゆるステーキングツールが同じシードから同じ鍵を導出できるようにする。","tags":["bls","keys","wallet","staking","validator"],"related":[2333,2335],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-2334/","markdown":"## 何を解決するのか\n\nビーコンチェーンのバリデーターは、通常の Ethereum アカウントが使う secp256k1 鍵ではなく、BLS12-381 曲線上の BLS 署名で署名します。[ERC-2333](/eip-2333/) は 1 つのシードから BLS 鍵のツリーを導出する方法を定めていますが、ツリーだけでは不十分です。どのウォレット、デポジットツール、バリデータークライアントも、ツリーの*どの枝*にどの鍵があるのかについて合意している必要があります。そうでなければ、同じニーモニックからツールごとに異なる鍵が生成され、バックアップから復元するユーザーは自分のバリデーターを見つけられません。\n\nBitcoin 流のパス標準（BIP32/BIP44）は適していません。ERC-2333 は独自の鍵導出関数を使い、ハードン鍵のみを使い、階層ごとにより多くの鍵を許容するため、新しいパス体系が必要です。\n\n## 仕組み\n\nパスは、マスターノード `m` から始まり `/` で区切られた整数インデックスのリストです。マスターの下に少なくとも 4 階層を使う必要があります。\n\n```text\nm / purpose / coin_type / account / use\n```\n\n| 階層 | 意味 |\n| --- | --- |\n| `purpose` | 常に `12381`（曲線にちなんだ名前）。ERC-2333 が鍵導出関数である場合にのみ有効。 |\n| `coin_type` | チェーンごとに鍵を分離する。Ethereum の BLS 鍵は `3600`（60²。Ethereum の secp256k1 のコインタイプ 60 にちなむ）を使う。 |\n| `account` | 1 人のユーザーが用途ごとに別の鍵セットを持てるようにする。 |\n| `use` | アカウント内の関連するが別々の鍵。多くは `0`。 |\n\nビーコンチェーンのバリデーターについては、バリデーター `i` ごとに 2 つの鍵が標準で固定されています。\n\n- **出金鍵：** `m/12381/3600/i/0`\n- **署名鍵：** `m/12381/3600/i/0/0`。出金鍵の 0 番目の子。\n\n署名鍵はバリデータークライアントに渡す「ホット」な鍵で、漏えいした場合の最悪のケースはスラッシングの対象になるメッセージへの署名です。出金鍵はステークした資金を管理するため「コールド」に保つべきです。署名鍵は出金鍵の子なので、出金鍵（またはシード）を安全に保管すれば署名鍵を復元できます。\n\nERC-2333 の導出はすべてハードンであるため、BIP44 のパスで使われるハードンのマーカー `'` は使用せず、ここでは無効です。\n\n## サンプルコード\n\n最初の数個のバリデーターのパスを生成する例（TypeScript）:\n\n```ts\nconst PURPOSE = 12381;\nconst COIN_TYPE = 3600; // Ethereum BLS keys\n\nfunction withdrawalPath(i: number): string {\n  return `m/${PURPOSE}/${COIN_TYPE}/${i}/0`;\n}\n\nfunction signingPath(i: number): string {\n  return `${withdrawalPath(i)}/0`; // child 0 of the withdrawal key\n}\n\nfor (let i = 0; i \u003c 3; i++) {\n  console.log(i, withdrawalPath(i), signingPath(i));\n}\n// 0 m/12381/3600/0/0 m/12381/3600/0/0/0\n// 1 m/12381/3600/1/0 m/12381/3600/1/0/0\n// 2 m/12381/3600/2/0 m/12381/3600/2/0/0\n```\n\nその後、各パスをシードとともに ERC-2333 の導出ルーチンに渡して、実際の秘密鍵を取得します。\n\n## 知っておくべきこと\n\n- ステータスは **Review** です。ステーキングツールがすでにこれらのパスに依存していますが、文書はまだ変更の余地があります。\n- 3 つで 1 組の標準の 1 つです。[ERC-2333](/eip-2333/)（鍵導出）、この ERC（パス）、[ERC-2335](/eip-2335/)（暗号化キーストアファイル）です。\n- カストディアルやシークレット分散の構成ではパスを厳密に守れない場合があります。仕様は該当する鍵を別の方法で導出することを認めていますが、合理的な範囲で従うよう求めています。\n- これらの鍵は通常のウォレットアドレスとは無関係です。同じニーモニックを BIP44（`m/44'/60'/…`）に通すと、まったく異なる secp256k1 鍵が得られます。\n"},"ko":{"lang":"ko","tldr":"BLS12-381 키의 파생 경로(예: 검증자 서명 키는 m/12381/3600/i/0/0)를 정의해, 모든 스테이킹 도구가 같은 시드에서 같은 키를 파생하도록 한다.","tags":["bls","keys","wallet","staking","validator"],"related":[2333,2335],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-2334/","markdown":"## 어떤 문제를 해결하나요?\n\n비콘 체인 검증자는 일반 이더리움 계정이 쓰는 secp256k1 키가 아니라 BLS12-381 곡선 위의 BLS 서명으로 서명합니다. [ERC-2333](/eip-2333/)은 하나의 시드에서 BLS 키 트리를 파생하는 방법을 정의하지만, 트리만으로는 충분하지 않습니다. 모든 지갑, 예치(deposit) 도구, 검증자 클라이언트가 트리의 *어느 가지*에 어떤 키가 있는지도 합의해야 합니다. 그렇지 않으면 같은 니모닉이 도구마다 다른 키를 만들어 내고, 백업에서 복구하는 사용자는 자신의 검증자를 찾지 못합니다.\n\n기존 비트코인 방식의 경로 표준(BIP32/BIP44)은 맞지 않습니다. ERC-2333은 자체 키 파생 함수를 쓰고, 강화(hardened) 키만 사용하며, 단계마다 더 많은 키를 허용하므로 새로운 경로 체계가 필요합니다.\n\n## 어떻게 동작하나요?\n\n경로는 마스터 노드 `m`에서 시작해 `/`로 구분한 정수 인덱스의 목록입니다. 마스터 아래로 최소 네 단계를 사용해야 합니다.\n\n```text\nm / purpose / coin_type / account / use\n```\n\n| 단계 | 의미 |\n| --- | --- |\n| `purpose` | 항상 `12381`(곡선 이름에서 따옴). ERC-2333이 키 파생 함수일 때만 유효. |\n| `coin_type` | 체인별로 키를 구분. 이더리움의 BLS 키는 `3600`(60², 이더리움 secp256k1 코인 타입 60에 대한 오마주)을 사용. |\n| `account` | 한 사용자가 용도별로 서로 다른 키 집합을 둘 수 있게 함. |\n| `use` | 계정 안의 관련되어 있지만 별개인 키. 보통 `0`. |\n\n비콘 체인 검증자의 경우, 이 표준은 검증자 `i`마다 두 개의 키를 고정합니다.\n\n- **출금 키:** `m/12381/3600/i/0`\n- **서명 키:** `m/12381/3600/i/0/0`, 출금 키의 0번째 자식.\n\n서명 키는 검증자 클라이언트에 넘기는 \"핫\" 키로, 유출되더라도 최악의 경우 슬래싱 대상이 되는 메시지가 서명되는 정도입니다. 출금 키는 스테이킹한 자금을 제어하므로 \"콜드\"로 유지해야 합니다. 서명 키는 출금 키의 자식이므로, 출금 키(또는 시드)를 안전하게 보관하면 서명 키를 복구할 수 있습니다.\n\nERC-2333의 모든 파생은 강화 방식이므로, BIP44 경로에서 쓰는 강화 표시 `'`는 사용하지 않으며 여기서는 유효하지 않습니다.\n\n## 샘플 코드\n\n처음 몇 개 검증자의 경로 생성(TypeScript):\n\n```ts\nconst PURPOSE = 12381;\nconst COIN_TYPE = 3600; // Ethereum BLS keys\n\nfunction withdrawalPath(i: number): string {\n  return `m/${PURPOSE}/${COIN_TYPE}/${i}/0`;\n}\n\nfunction signingPath(i: number): string {\n  return `${withdrawalPath(i)}/0`; // child 0 of the withdrawal key\n}\n\nfor (let i = 0; i \u003c 3; i++) {\n  console.log(i, withdrawalPath(i), signingPath(i));\n}\n// 0 m/12381/3600/0/0 m/12381/3600/0/0/0\n// 1 m/12381/3600/1/0 m/12381/3600/1/0/0\n// 2 m/12381/3600/2/0 m/12381/3600/2/0/0\n```\n\n그런 다음 각 경로를 시드와 함께 ERC-2333 파생 루틴에 넘겨 실제 비밀 키를 얻습니다.\n\n## 알아둘 점\n\n- 상태는 **Review**입니다. 스테이킹 도구가 이미 이 경로에 의존하고 있지만 문서는 아직 변경될 수 있습니다.\n- 세 가지로 이루어진 묶음 중 하나입니다. [ERC-2333](/eip-2333/)(키 파생), 이 ERC(경로), [ERC-2335](/eip-2335/)(암호화된 키스토어 파일)입니다.\n- 수탁형이나 비밀 분산 방식에서는 경로를 정확히 따르지 못할 수 있습니다. 명세는 해당 키를 다른 방식으로 파생하는 것을 허용하지만, 합리적인 범위에서는 따를 것을 요구합니다.\n- 이 키들은 일반 지갑 주소와 무관합니다. 같은 니모닉을 BIP44(`m/44'/60'/…`)로 돌리면 완전히 다른 secp256k1 키가 나옵니다.\n"},"zh":{"lang":"zh","tldr":"定义 BLS12-381 密钥的派生路径，例如验证者签名密钥使用 m/12381/3600/i/0/0，使所有质押工具都能从同一个种子派生出相同的密钥。","tags":["bls","keys","wallet","staking","validator"],"related":[2333,2335],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-2334/","markdown":"## 它解决什么问题？\n\n信标链验证者使用 BLS12-381 曲线上的 BLS 签名来签名，而不是普通以太坊账户使用的 secp256k1 密钥。[ERC-2333](/eip-2333/) 定义了如何从一个种子派生出一棵 BLS 密钥树，但光有树还不够：每个钱包、存款工具和验证者客户端还必须就树的*哪个分支*存放哪个密钥达成一致。否则，同一个助记词在不同工具中会产生不同的密钥，从备份恢复的用户就找不到自己的验证者。\n\n现有的比特币式路径标准（BIP32/BIP44）并不适用。ERC-2333 使用自己的密钥派生函数，只使用硬化密钥，并且每一层允许更多的密钥，因此需要一套新的路径方案。\n\n## 它如何运作\n\n路径是由 `/` 分隔的一串整数索引，从主节点 `m` 开始。主节点之下至少要使用四层：\n\n```text\nm / purpose / coin_type / account / use\n```\n\n| 层级 | 含义 |\n| --- | --- |\n| `purpose` | 始终为 `12381`（以曲线命名）。仅当 ERC-2333 是密钥派生函数时才有效。 |\n| `coin_type` | 区分不同链的密钥。以太坊的 BLS 密钥使用 `3600`（60²，呼应以太坊 secp256k1 的币种类型 60）。 |\n| `account` | 让一个用户可以为不同用途保留不同的密钥集合。 |\n| `use` | 账户内相关但相互独立的密钥；通常为 `0`。 |\n\n对于信标链验证者，该标准为每个验证者 `i` 固定了两个密钥：\n\n- **提款密钥：** `m/12381/3600/i/0`\n- **签名密钥：** `m/12381/3600/i/0/0`，即提款密钥的第 0 个子密钥。\n\n签名密钥是交给验证者客户端的“热”密钥；如果它泄露，最坏的情况是签出可被罚没的消息。提款密钥控制着质押的资金，应保持“冷”存储。由于签名密钥是提款密钥的子密钥，只要安全保管提款密钥（或种子），就足以恢复签名密钥。\n\n由于 ERC-2333 的所有派生都是硬化的，BIP44 路径中使用的硬化标记 `'` 在这里不使用，并且是无效的。\n\n## 示例代码\n\n为前几个验证者生成路径（TypeScript）：\n\n```ts\nconst PURPOSE = 12381;\nconst COIN_TYPE = 3600; // Ethereum BLS keys\n\nfunction withdrawalPath(i: number): string {\n  return `m/${PURPOSE}/${COIN_TYPE}/${i}/0`;\n}\n\nfunction signingPath(i: number): string {\n  return `${withdrawalPath(i)}/0`; // child 0 of the withdrawal key\n}\n\nfor (let i = 0; i \u003c 3; i++) {\n  console.log(i, withdrawalPath(i), signingPath(i));\n}\n// 0 m/12381/3600/0/0 m/12381/3600/0/0/0\n// 1 m/12381/3600/1/0 m/12381/3600/1/0/0\n// 2 m/12381/3600/2/0 m/12381/3600/2/0/0\n```\n\n随后，每条路径连同种子一起交给 ERC-2333 的派生例程，得到真正的私钥。\n\n## 需要注意\n\n- 状态为 **Review**：尽管质押工具已经依赖这些路径，文档仍然开放修改。\n- 它是三件套之一：[ERC-2333](/eip-2333/)（密钥派生）、本 ERC（路径）和 [ERC-2335](/eip-2335/)（加密密钥库文件）。\n- 托管式或秘密共享的方案可能无法完全遵循这些路径；规范允许受影响的密钥用其他方式派生，但要求实现在合理范围内尽量遵循。\n- 这些密钥与你常用的钱包地址无关：同一个助记词按 BIP44（`m/44'/60'/…`）派生，会得到完全不同的 secp256k1 密钥。\n"}},"requiredBy":[2335,2386]}
