Documentation ¶ Index ¶ Variables func Create(ec elliptic.Curve, threshold int, secret *big.Int, indexes []*big.Int) (Vs, Shares, error) type Share func (share *Share) Verify(ec elliptic.Curve, threshold int, vs Vs) bool type Shares func (shares Shares) ReConstruct(ec elliptic.Curve) (secret *big.Int, err error) type Vs Constants ¶ This section is empty. Variables ¶ View Source var ( ErrNumSharesBelowThreshold = fmt.Errorf("not enough shares to satisfy the threshold") ) Functions ¶ func Create ¶ func Create(ec elliptic.Curve, threshold int, secret *big.Int, indexes []*big.Int) (Vs, Shares, error) Returns a new array of secret shares created by Shamir's Secret Sharing Algorithm, requiring a minimum number of shares to recreate, of length shares, from the input secret Types ¶ type Share ¶ type Share struct { Threshold int ID, Share *big.Int // Sigma i } func (*Share) Verify ¶ func (share *Share) Verify(ec elliptic.Curve, threshold int, vs Vs) bool type Shares ¶ type Shares []*Share func (Shares) ReConstruct ¶ func (shares Shares) ReConstruct(ec elliptic.Curve) (secret *big.Int, err error) type Vs ¶ type Vs []*crypto.ECPoint // v0..vt Source Files ¶ View all Source files feldman_vss.go Click to show internal directories. Click to hide internal directories.