Build Status

rust-sssmc39

"I think Shamir Secret Sharing (and a number of other things, RNGs for example), suffer from a property where they are just complex enough that people are excited to implement them often for little good reason, and then they are complex enough (or have few enough reasons to invest significant time) they implement them poorly." -Gregory Maxwell

"Hold my vodka" -Yeastplume

This is a currently very work-in-progress Rust implementation of SLIP-0039: Shamir's Secret Sharing for Mnemonic Codes. It is being developed for eventual incorpration into Grin's Wallet, however I hope it can be of use to anyone looking to implement a master-secret sharing scheme. The specification doesn't just operate on BIP-39 Mnemonics, but can also split keys of almost any size so it should be useful for a wide variety of needs.

Again, this is an untested work-in-progess, so use at your own risk.

Status

Still Outstanding

Credits

The code was put together using the SLIP-0039 Python Reference Implementation as a reference

Field arithmetic code taken with thanks and respect from Rusty Secrets, with license details in all derived source files.

Rusty Secrets was forked off sellibitze's secretshare.