generator

package
v0.0.0-...-23aeb14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLagrangeGenerator

func CreateLagrangeGenerator(preValueKey, resultKey string) *lagrangeGenerator

func CreatePointGenerator

func CreatePointGenerator(preValueKey string, resultKey string) *mpcPointGenerator

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL