Versions in this module Expand all Collapse all v0 v0.1.0 Feb 21, 2023 Changes in this version + var ErrNumSharesBelowThreshold = fmt.Errorf("not enough shares to satisfy the threshold") + func CheckIndexes(ec elliptic.Curve, indexes []*big.Int) ([]*big.Int, error) + func Create(ec elliptic.Curve, threshold int, secret *big.Int, indexes []*big.Int) (Vs, Shares, error) + type Share struct + ID *big.Int + Share *big.Int + Threshold int + func (share *Share) Verify(ec elliptic.Curve, threshold int, vs Vs) bool + type Shares []*Share + func (shares Shares) ReConstruct(ec elliptic.Curve) (secret *big.Int, err error) + type Vs []*crypto.ECPoint