amousa11 / sss

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Go 100.0%