Skip to content

Shamir's secret sharing scheme #553

@jakubtrnka

Description

@jakubtrnka

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions