{"repo":"asonnino/shamir-bip39","free":true,"listed":false,"github":"https://github.com/asonnino/shamir-bip39","clone":"git clone https://github.com/asonnino/shamir-bip39.git","description":"EIP-3450 Shamir secret sharing for BIP-39 mnemonics","language":"Rust","stars":11,"topics":["bip39","cryptocurrency","mnemonics","secret-sharing","shamir-secret-sharing"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"BIP-39 Shamir Secret Sharing Apply Shamir’s Secret Sharing to BIP-39 mnemonics, in accordance with the specifications outlined in EIP-3450. Each individual share constitutes a valid BIP-39 mnemonic, allowing them to serve as decoy wallets if needed. Similarly, any secret reconstructed using fewer than the required threshold number of shares can also be utilized in the same manner. This implementation makes effective use of the gf256 library to perform operations on Galois fields. This implementation has not been audited and is only suitable for experimental purposes. Basic Usage The binary offers two primary functions: one for splitting a BIP-39 secret and another for reconstructing it from a threshold number of these shares. By default, this repository utilizes a valid English BIP-39 dictionary. However, users have the flexibility to specify an external dictionary using the --dictionary-path option. Splitting The following command shares a BIP-39 mnemonic into 3 shares such that it can be reconstructed from any 2 shares. The feature double-check actively asserts that the master secret can reconstructed from any 2 shares, which should always be the case. The command outputs all 3 shares in a similar format as shown in the example below. Note that the output of this command is non-deterministic since the mnemonic is split using a randomly generated polynomial. Reconstruction The following command reconstructs the master BIP-39 mnemonic from the 3rd and 2nd share: Output: Relat","default_branch":null,"files":null,"tree":[],"storefront":"/r/asonnino","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/asonnino/shamir-bip39/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}