{"eip":3450,"title":"Standardized Shamir Secret Sharing Scheme for BIP-39 Mnemonics","description":"A standardized algorithm for applying Shamir's Secret Sharing Scheme to BIP-39 mnemonics.","authors":["Daniel Streit (@danielstreit)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2021-03-29","discussionsTo":"https://ethereum-magicians.org/t/erc-3450-standard-for-applying-shamirs-to-bip-39-mnemonics/5844","repo":"ERCs","label":"ERC-3450","officialUrl":"https://eips.ethereum.org/EIPS/eip-3450","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-3450.md","url":"https://eips.huatuo.xyz/eip-3450/","tldr":{"en":"A proposed standard for splitting a BIP-39 seed phrase into N shares with Shamir's Secret Sharing, where any T shares rebuild it and every share is itself a valid BIP-39 mnemonic.","ja":"BIP-39 のシードフレーズを Shamir の秘密分散で N 個のシェアに分割する標準の提案。任意の T 個のシェアで復元でき、すべてのシェア自体が有効な BIP-39 ニーモニックになる。","ko":"BIP-39 시드 문구를 Shamir 비밀 분산으로 N개의 조각(share)으로 나누는 표준 제안. 임의의 T개 조각으로 복원할 수 있고, 모든 조각이 그 자체로 유효한 BIP-39 니모닉이다.","zh":"一个拟议的标准：用 Shamir 秘密共享把 BIP-39 助记词拆分成 N 份，任意 T 份即可重建，且每一份本身都是有效的 BIP-39 助记词。"},"tags":["wallet","mnemonic","bip-39","secret-sharing","key-management"],"explainers":{"en":{"lang":"en","tldr":"A proposed standard for splitting a BIP-39 seed phrase into N shares with Shamir's Secret Sharing, where any T shares rebuild it and every share is itself a valid BIP-39 mnemonic.","tags":["wallet","mnemonic","bip-39","secret-sharing","key-management"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3450/","markdown":"## What problem does it solve?\n\nMost wallets back up keys as a BIP-39 mnemonic, the familiar 12 or 24 words. That phrase is a single point of failure: lose it and the funds are gone, let someone see it and they can take everything.\n\nShamir's Secret Sharing is the classic fix: split a secret into *N* shares so that any *T* of them reconstruct it, while fewer than *T* reveal nothing. The catch, the spec argues, is that there was no canonical implementation for mnemonics, so shares made with one tool might not be recoverable with another years later. ERC-3450 pins down one exact algorithm.\n\n## How it works\n\n1. **Mnemonic → entropy.** Decode the words to their underlying entropy (128–256 bits), dropping the checksum bits. Only the BIP-39 English word list is supported.\n2. **Split each byte.** Treat every entropy byte as an element of GF(256), using the AES (Rijndael) polynomial `x⁸ + x⁴ + x³ + x + 1`. For each byte, build a random polynomial of degree `T − 1` whose constant term is that byte, using a cryptographically secure random source for the other coefficients.\n3. **Make shares.** For each share ID `x = 1 … N`, evaluate the polynomials at `x`. The resulting byte vector is encoded as a new BIP-39 mnemonic with a freshly computed checksum, so it has the same length as the original and passes normal mnemonic validation.\n4. **Recover.** Take any `T` shares, convert each back to entropy, and use Lagrange interpolation at `x = 0` to get the original entropy, then the original mnemonic.\n\nConstraints: `1 \u003c T ≤ N \u003c 256`. A share is the pair **(ID, mnemonic)**; the ID is the x-coordinate and is not encoded in the words.\n\n## Sample code\n\nCore GF(256) arithmetic and recovery of one byte (TypeScript, illustrative only):\n\n```ts\n// Multiply in GF(256) with the AES polynomial 0x11b\nfunction gmul(a: number, b: number): number {\n  let p = 0;\n  while (b) {\n    if (b \u0026 1) p ^= a;\n    a = (a \u003c\u003c 1) ^ (a \u0026 0x80 ? 0x11b : 0);\n    b \u003e\u003e= 1;\n  }\n  return p \u0026 0xff;\n}\n\nfunction ginv(a: number): number {   // a^254 = a^-1 in GF(256)\n  let r = 1;\n  for (let i = 0; i \u003c 254; i++) r = gmul(r, a);\n  return r;\n}\n\n// Lagrange interpolation at x = 0 for one byte position\nexport function recoverByte(shares: { x: number; y: number }[]): number {\n  let secret = 0;\n  for (const i of shares) {\n    let num = 1, den = 1;\n    for (const j of shares) {\n      if (i === j) continue;\n      num = gmul(num, j.x);           // (0 - x_j) = x_j in GF(2^8)\n      den = gmul(den, i.x ^ j.x);     // (x_i - x_j) = x_i XOR x_j\n    }\n    secret ^= gmul(i.y, gmul(num, ginv(den)));\n  }\n  return secret;\n}\n```\n\n## Things to know\n\n- **Status: Stagnant.** The spec's test vectors are marked \"coming soon\", so interoperability between implementations is not guaranteed.\n- This is **not** compatible with SLIP-39, a different and more widely known Shamir scheme for seeds that uses its own word list and encodes metadata in the shares.\n- You must keep each share's ID together with its words. Without the IDs, recovery may be impossible. The spec also suggests storing the ID in a way that does not reveal what it is.\n- There is deliberately no check on recovery: with fewer than `T` shares you get a valid-looking but wrong mnemonic, with no error.\n- Splitting is only as safe as the device doing it. Do it offline, use a secure random source, and destroy the original afterwards only once recovery has been tested.\n"},"ja":{"lang":"ja","tldr":"BIP-39 のシードフレーズを Shamir の秘密分散で N 個のシェアに分割する標準の提案。任意の T 個のシェアで復元でき、すべてのシェア自体が有効な BIP-39 ニーモニックになる。","tags":["wallet","mnemonic","bip-39","secret-sharing","key-management"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3450/","markdown":"## 何を解決するのか\n\nほとんどのウォレットは、鍵を BIP-39 ニーモニック、つまりおなじみの 12 語または 24 語でバックアップします。このフレーズは単一障害点です。失くせば資金は失われ、誰かに見られればすべてを奪われます。\n\nShamir の秘密分散は古典的な解決策です。秘密を *N* 個のシェアに分割し、任意の *T* 個で復元できる一方、*T* 個未満では何も分からないようにします。仕様の主張によれば、問題はニーモニック向けの標準的な実装がなかったことで、あるツールで作ったシェアが、数年後に別のツールでは復元できないかもしれません。ERC-3450 は、ある 1 つの正確なアルゴリズムを確定させます。\n\n## 仕組み\n\n1. **ニーモニック → エントロピー。** 単語をその元になっているエントロピー（128〜256 ビット）にデコードし、チェックサムのビットを取り除きます。サポートされるのは BIP-39 の英語の単語リストだけです。\n2. **各バイトを分割する。** エントロピーの各バイトを、AES（Rijndael）の多項式 `x⁸ + x⁴ + x³ + x + 1` を使った GF(256) の元として扱います。各バイトについて、定数項がそのバイトである `T − 1` 次のランダムな多項式を作り、それ以外の係数には暗号論的に安全な乱数源を使います。\n3. **シェアを作る。** シェア ID `x = 1 … N` それぞれについて、多項式を `x` で評価します。得られたバイトベクトルは、新たに計算したチェックサムを付けた新しい BIP-39 ニーモニックとしてエンコードされるため、元と同じ長さになり、通常のニーモニック検証も通ります。\n4. **復元する。** 任意の `T` 個のシェアを取り、それぞれをエントロピーに戻し、`x = 0` でのラグランジュ補間によって元のエントロピーを求め、さらに元のニーモニックを得ます。\n\n制約：`1 \u003c T ≤ N \u003c 256`。シェアは **（ID, ニーモニック）** の組です。ID は x 座標であり、単語にはエンコードされません。\n\n## サンプルコード\n\nGF(256) の中核となる算術と、1 バイトの復元（TypeScript、説明用のみ）:\n\n```ts\n// Multiply in GF(256) with the AES polynomial 0x11b\nfunction gmul(a: number, b: number): number {\n  let p = 0;\n  while (b) {\n    if (b \u0026 1) p ^= a;\n    a = (a \u003c\u003c 1) ^ (a \u0026 0x80 ? 0x11b : 0);\n    b \u003e\u003e= 1;\n  }\n  return p \u0026 0xff;\n}\n\nfunction ginv(a: number): number {   // a^254 = a^-1 in GF(256)\n  let r = 1;\n  for (let i = 0; i \u003c 254; i++) r = gmul(r, a);\n  return r;\n}\n\n// Lagrange interpolation at x = 0 for one byte position\nexport function recoverByte(shares: { x: number; y: number }[]): number {\n  let secret = 0;\n  for (const i of shares) {\n    let num = 1, den = 1;\n    for (const j of shares) {\n      if (i === j) continue;\n      num = gmul(num, j.x);           // (0 - x_j) = x_j in GF(2^8)\n      den = gmul(den, i.x ^ j.x);     // (x_i - x_j) = x_i XOR x_j\n    }\n    secret ^= gmul(i.y, gmul(num, ginv(den)));\n  }\n  return secret;\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス：Stagnant。** 仕様のテストベクターは「近日公開」とされているため、実装間の相互運用性は保証されません。\n- これは SLIP-39 と互換では**ありません**。SLIP-39 は、シード向けの別の、より広く知られた Shamir 方式で、独自の単語リストを使い、シェアにメタデータをエンコードします。\n- 各シェアの ID は、その単語と一緒に保管しなければなりません。ID がないと復元できなくなる可能性があります。仕様は、ID を、それが何であるかを明かさない形で保管することも提案しています。\n- 復元時のチェックは意図的にありません。`T` 個未満のシェアでは、有効に見えるが誤ったニーモニックが得られ、エラーは出ません。\n- 分割の安全性は、それを行うデバイスの安全性次第です。オフラインで行い、安全な乱数源を使い、復元をテストしてから初めて元のものを破棄してください。\n"},"ko":{"lang":"ko","tldr":"BIP-39 시드 문구를 Shamir 비밀 분산으로 N개의 조각(share)으로 나누는 표준 제안. 임의의 T개 조각으로 복원할 수 있고, 모든 조각이 그 자체로 유효한 BIP-39 니모닉이다.","tags":["wallet","mnemonic","bip-39","secret-sharing","key-management"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3450/","markdown":"## 어떤 문제를 해결하나요?\n\n대부분의 지갑은 키를 BIP-39 니모닉, 즉 익숙한 12개 또는 24개 단어로 백업합니다. 이 문구는 단일 장애점입니다. 잃어버리면 자금이 사라지고, 누가 보게 되면 모든 것을 가져갈 수 있습니다.\n\nShamir 비밀 분산은 고전적인 해법입니다. 비밀을 *N*개의 조각으로 나누어 임의의 *T*개로 복원할 수 있게 하고, *T*개 미만으로는 아무것도 알 수 없게 합니다. 명세가 지적하는 문제는 니모닉에 대한 표준 구현이 없다는 점이었고, 그래서 한 도구로 만든 조각을 몇 년 뒤 다른 도구로는 복원하지 못할 수 있습니다. ERC-3450은 정확한 알고리즘 하나를 못 박습니다.\n\n## 어떻게 동작하나요?\n\n1. **니모닉 → 엔트로피.** 단어를 그 바탕이 되는 엔트로피(128–256비트)로 디코딩하고 체크섬 비트는 버립니다. BIP-39 영어 단어 목록만 지원합니다.\n2. **각 바이트 분할.** 엔트로피의 각 바이트를 AES(Rijndael) 다항식 `x⁸ + x⁴ + x³ + x + 1`을 쓰는 GF(256)의 원소로 취급합니다. 각 바이트마다 상수항이 그 바이트인 `T − 1`차 무작위 다항식을 만들며, 나머지 계수에는 암호학적으로 안전한 난수원을 사용합니다.\n3. **조각 만들기.** 조각 ID `x = 1 … N` 각각에 대해 다항식을 `x`에서 계산합니다. 그 결과로 나온 바이트 벡터는 새로 계산한 체크섬과 함께 새로운 BIP-39 니모닉으로 인코딩되므로, 원본과 길이가 같고 일반적인 니모닉 검증을 통과합니다.\n4. **복원.** 임의의 `T`개 조각을 가져와 각각 엔트로피로 되돌리고, `x = 0`에서 라그랑주 보간을 사용해 원래의 엔트로피를 얻은 다음 원래 니모닉을 얻습니다.\n\n제약: `1 \u003c T ≤ N \u003c 256`. 조각은 **(ID, 니모닉)** 쌍입니다. ID는 x 좌표이며 단어에는 인코딩되지 않습니다.\n\n## 샘플 코드\n\n핵심 GF(256) 연산과 바이트 하나의 복원(TypeScript, 설명용):\n\n```ts\n// Multiply in GF(256) with the AES polynomial 0x11b\nfunction gmul(a: number, b: number): number {\n  let p = 0;\n  while (b) {\n    if (b \u0026 1) p ^= a;\n    a = (a \u003c\u003c 1) ^ (a \u0026 0x80 ? 0x11b : 0);\n    b \u003e\u003e= 1;\n  }\n  return p \u0026 0xff;\n}\n\nfunction ginv(a: number): number {   // a^254 = a^-1 in GF(256)\n  let r = 1;\n  for (let i = 0; i \u003c 254; i++) r = gmul(r, a);\n  return r;\n}\n\n// Lagrange interpolation at x = 0 for one byte position\nexport function recoverByte(shares: { x: number; y: number }[]): number {\n  let secret = 0;\n  for (const i of shares) {\n    let num = 1, den = 1;\n    for (const j of shares) {\n      if (i === j) continue;\n      num = gmul(num, j.x);           // (0 - x_j) = x_j in GF(2^8)\n      den = gmul(den, i.x ^ j.x);     // (x_i - x_j) = x_i XOR x_j\n    }\n    secret ^= gmul(i.y, gmul(num, ginv(den)));\n  }\n  return secret;\n}\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 명세의 테스트 벡터는 \"곧 제공\"으로 표시되어 있으므로 구현 간 상호 운용성이 보장되지 않습니다.\n- 이것은 SLIP-39와 호환되지 **않습니다**. SLIP-39는 시드를 위한 또 다른, 더 널리 알려진 Shamir 방식으로, 자체 단어 목록을 쓰고 조각에 메타데이터를 인코딩합니다.\n- 각 조각의 ID를 그 단어와 함께 보관해야 합니다. ID가 없으면 복원이 불가능할 수 있습니다. 명세는 ID를 그것이 무엇인지 드러나지 않는 방식으로 보관하라고도 제안합니다.\n- 복원 시 검사는 일부러 없습니다. `T`개 미만의 조각으로는 유효해 보이지만 틀린 니모닉이 나오며 오류는 없습니다.\n- 분할의 안전성은 이를 수행하는 장치만큼만 안전합니다. 오프라인에서 하고, 안전한 난수원을 쓰고, 복원을 테스트한 뒤에야 원본을 파기하세요.\n"},"zh":{"lang":"zh","tldr":"一个拟议的标准：用 Shamir 秘密共享把 BIP-39 助记词拆分成 N 份，任意 T 份即可重建，且每一份本身都是有效的 BIP-39 助记词。","tags":["wallet","mnemonic","bip-39","secret-sharing","key-management"],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3450/","markdown":"## 它解决什么问题？\n\n大多数钱包把密钥备份为 BIP-39 助记词，也就是大家熟悉的 12 或 24 个单词。这个短语是单点故障：丢了，资金就没了；被别人看到，对方就能拿走一切。\n\nShamir 秘密共享是经典的解决办法：把秘密拆成 *N* 份，任意 *T* 份就能重建它，而少于 *T* 份则什么都泄露不出来。规范指出，问题在于助记词没有规范的实现，所以用某个工具生成的份额，几年后可能无法用另一个工具恢复。ERC-3450 确定了一个具体的算法。\n\n## 它如何运作\n\n1. **助记词 → 熵。** 把单词解码为其底层的熵（128–256 位），去掉校验位。只支持 BIP-39 英文词表。\n2. **拆分每个字节。** 把熵的每个字节视为 GF(256) 的元素，使用 AES（Rijndael）多项式 `x⁸ + x⁴ + x³ + x + 1`。对每个字节，构造一个 `T − 1` 次随机多项式，其常数项就是该字节，其他系数使用密码学安全的随机源。\n3. **生成份额。** 对每个份额 ID `x = 1 … N`，在 `x` 处计算这些多项式的值。得到的字节向量被编码成一个新的 BIP-39 助记词，并重新计算校验和，因此它与原助记词长度相同，也能通过常规的助记词校验。\n4. **恢复。** 取任意 `T` 份，把每一份转换回熵，在 `x = 0` 处用拉格朗日插值得到原始的熵，再得到原始助记词。\n\n约束：`1 \u003c T ≤ N \u003c 256`。一份份额是 **（ID，助记词）** 这一对；ID 是 x 坐标，不会编码在单词中。\n\n## 示例代码\n\nGF(256) 的核心运算和单个字节的恢复（TypeScript，仅作示意）：\n\n```ts\n// Multiply in GF(256) with the AES polynomial 0x11b\nfunction gmul(a: number, b: number): number {\n  let p = 0;\n  while (b) {\n    if (b \u0026 1) p ^= a;\n    a = (a \u003c\u003c 1) ^ (a \u0026 0x80 ? 0x11b : 0);\n    b \u003e\u003e= 1;\n  }\n  return p \u0026 0xff;\n}\n\nfunction ginv(a: number): number {   // a^254 = a^-1 in GF(256)\n  let r = 1;\n  for (let i = 0; i \u003c 254; i++) r = gmul(r, a);\n  return r;\n}\n\n// Lagrange interpolation at x = 0 for one byte position\nexport function recoverByte(shares: { x: number; y: number }[]): number {\n  let secret = 0;\n  for (const i of shares) {\n    let num = 1, den = 1;\n    for (const j of shares) {\n      if (i === j) continue;\n      num = gmul(num, j.x);           // (0 - x_j) = x_j in GF(2^8)\n      den = gmul(den, i.x ^ j.x);     // (x_i - x_j) = x_i XOR x_j\n    }\n    secret ^= gmul(i.y, gmul(num, ginv(den)));\n  }\n  return secret;\n}\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 规范的测试向量标注为\"即将提供\"，因此不同实现之间的互操作性没有保证。\n- 它与 SLIP-39 **不**兼容，后者是另一种更广为人知的针对种子的 Shamir 方案，使用自己的词表，并把元数据编码在份额中。\n- 你必须把每份份额的 ID 与其单词放在一起保管。没有 ID，可能无法恢复。规范还建议以不暴露其含义的方式存放 ID。\n- 恢复时有意不做校验：份额少于 `T` 份时，你会得到一个看起来有效但实际错误的助记词，而且不会报错。\n- 拆分的安全性取决于执行拆分的设备。请离线操作，使用安全的随机源，并且只有在测试过恢复之后才销毁原件。\n"}}}
