Documentation ¶
Index ¶
- func CreateLagrangeGenerator(preValueKey, resultKey string) *lagrangeGenerator
- func CreatePointGenerator(preValueKey string, resultKey string) *mpcPointGenerator
- type RandomPolynomialValue
- func (poly *RandomPolynomialValue) CalculateResult() error
- func (poly *RandomPolynomialValue) GetMessageData(i int) interface{}
- func (poly *RandomPolynomialValue) GetResultData() *protocol.MpcData
- func (poly *RandomPolynomialValue) Initialize(peers []protocol.PeerInfo, result protocol.MpcResultInterface) error
- func (poly *RandomPolynomialValue) SetMessageData(seed uint64, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLagrangeGenerator ¶
func CreateLagrangeGenerator(preValueKey, resultKey string) *lagrangeGenerator
func CreatePointGenerator ¶
Types ¶
type RandomPolynomialValue ¶
type RandomPolynomialValue struct { RandCoefficient []*big.Int //coefficient PolyValue []*big.Int Result *big.Int // contains filtered or unexported fields }
func CreateJRSSValue ¶
func CreateJRSSValue(degree int, peerNum int, resultKey string) *RandomPolynomialValue
func CreateJZSSValue ¶
func CreateJZSSValue(degree int, peerNum int, resultKey string) *RandomPolynomialValue
func (*RandomPolynomialValue) CalculateResult ¶
func (poly *RandomPolynomialValue) CalculateResult() error
func (*RandomPolynomialValue) GetMessageData ¶
func (poly *RandomPolynomialValue) GetMessageData(i int) interface{}
func (*RandomPolynomialValue) GetResultData ¶
func (poly *RandomPolynomialValue) GetResultData() *protocol.MpcData
func (*RandomPolynomialValue) Initialize ¶
func (poly *RandomPolynomialValue) Initialize(peers []protocol.PeerInfo, result protocol.MpcResultInterface) error
func (*RandomPolynomialValue) SetMessageData ¶
func (poly *RandomPolynomialValue) SetMessageData(seed uint64, value interface{}) error
Click to show internal directories.
Click to hide internal directories.