-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Labels
Description
I suggest adding shamir's secret sharing scheme as described Satoshi Labs's SLIP0039
My idea is to introduce command that generates n Shamir's shares with reconstruction threshold of m with m<=n. Optionally with seed encryption using passphrase.
mnemonic-to-sshare [-h ] --count <n> --threshold <m> --language <lang> [--passphrase <psh>] [WORD]...
Command produces either m shares each on separate line, or
Error: invalid mnemonic, or
Error: threshold too large
Reverse command restoring mnemonic from Shamir's shares would look like this:
sshare-to-mnemonic [-h] [--passphrase <psh>] --share [WORD]... --share [WORD]... [...]
Command produces either mnemonic, or
Error: inconsistent shares,
Error: invalid share(s), or
Error: not enough shares
Reactions are currently unavailable