项目作者: amousa11

项目描述 :
shamir secret sharing, a library for share generation and recovery of a secret
高级语言: Go
项目地址: git://github.com/amousa11/sss.git
创建时间: 2018-03-27T10:24:12Z
项目社区:https://github.com/amousa11/sss

开源协议:

下载


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