Skip to content
/ sss Public

shamir secret sharing, a library for share generation and recovery of a secret

Notifications You must be signed in to change notification settings

amousa11/sss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sss

Shamir Secret Sharing

A simple, lightly tested library for share generation and recovery of a secret.

For a cli version, try sss-cli

Documentation

GenerateShares

GenerateShares(minimum int, shares int, prime *big.Int) (*big.Int, []*utils.Point, error)

This function creates a set of shares returned as an array of points, as well as the secret that these shares recover as a big.Int. It also returns an error.

RecoverSecret

RecoverSecret(points []*utils.Point, modulus *big.Int) (*big.Int, error)

This function recovers a secret from a set of points under prime modulus. The secret is returned as a big.Int

Releases

No releases published

Packages

No packages published

Languages