Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.41 KB

File metadata and controls

43 lines (27 loc) · 1.41 KB

bip39shamir

Build Status

shamir.kandzi.com

Split your Bip39 seed in N different mnemonics. Any K of the new mnemonics are sufficient to reconstruct the original mnemonic.

Based on Shamir's Secret Sharing.

Example

const mnemonic = "volume speed orbit feed useful kitchen grief fringe long tackle tide damage";
const data = shares(mnemonic, 5, 3);

// [ 'account once detect oval fringe audit only kid black beach high cruise before iron siege',
//   'actor loud income bulb shock sheriff odor case message skin rapid despair tragic void cradle',
//   'add burger excess hip defense wool prize mammal help belt gate audit employ doctor nothing',
//   'afford foster stand can group eyebrow short buddy report dutch length tiny repeat effort calm',
//   'album shoot trigger finger oil hat visa rib figure old faculty sphere board vibrant maid' ]
combine([data[0], data[1], data[3]]);

// volume speed orbit feed useful kitchen grief fringe long tackle tide damage

Test

yarn test

Contact

@jkandzi

License

bip39shamir is released under the MIT license. See LICENSE for details.