Documentation
¶
Overview ¶
Author: xingchang@fusion.org
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIdNoEqualN = errors.New("[ERROR]: the length of input ids is not equal to the share number n.")
var ErrShareNotPass = errors.New("[ERROR]: the set of shares contain invalid share.")
Functions ¶
func GetSharesId ¶
func GetSharesId(ss *ShareStruct) *big.Int
func Vss ¶
func Vss(secret *big.Int, ids []*big.Int, t int, n int) (*PolyGStruct, *PolyStruct, []*ShareStruct, error)
Types ¶
type PolyGStruct ¶
type PolyStruct ¶
type PolyStruct struct { PolyGStruct Poly []*big.Int // coefficient set }
type ShareStruct ¶
type ShareStruct struct {}
func (*ShareStruct) Verify ¶
func (share *ShareStruct) Verify(polyG *PolyGStruct) bool
Click to show internal directories.
Click to hide internal directories.