MCPcopy Create free account
hub / github.com/MetaMask/torus-node / LagrangeInterpolatePolynomial

Function LagrangeInterpolatePolynomial

pvss/pvss.go:370–433  ·  view source on GitHub ↗

func lagrangeNormal(shares []pcmn.PrimaryShare) *big.Int { secret := new(big.Int) for _, share := range shares { //when x =0 delta := new(big.Int).SetInt64(int64(1)) upper := new(big.Int).SetInt64(int64(1)) lower := new(big.Int).SetInt64(int64(1)) for j := range shares { if shares[j].

(points []common.Point)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

ProcessMessageMethod · 0.92
processEchoMessageMethod · 0.92
processReadyMessageMethod · 0.92

Calls 1

AddMethod · 0.80

Tested by 1