Skip to content

Gigamonkey-BSV/SecretShare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SecretShare: a simple Shamir's secret sharing program

This program will take some data as an ASCII string and split it up into N pieces, M <= N of which can be used to reconstruct the original string. The pieces are provided in base 58 with a Bitcoin-style checksum. You can safely make up to one recording error per piece and the secret string will still be recoverable.

Usage

Split

Generate M messages, N of which can be used to restore the original secret requires entropy provided by the user.

./SecretShare split <secret: string> <num_pieces: uint> <threshold: uint>

Merge

From any number of messages >= N, restore the original secret.

./SecretShare merge <threshold: uint> <pieces: string...>

Build

mkdir build
cd build
conan install ..
cmake .. -DCMAKE_CXX_COMPILER=g++-10
make

Binary file will be in build/bin.

About

Shamir's secret sharing program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published