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

Function polyEval

pvss/pvss.go:36–55  ·  view source on GitHub ↗

Eval computes the private share v = p(i).

(polynomial pcmn.PrimaryPolynomial, x int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 14

PolyEvalFunction · 0.85
getSharesFunction · 0.85
TestBivarPolyEvalFunction · 0.85
TestAVSSVerifyPointFunction · 0.85
TestAVSSVerifyShareFunction · 0.85
TestAVSSFunction · 0.85
genPolyForTargetFunction · 0.85
TestGenPolyForTargetFunction · 0.85
TestHerzbergPSSFunction · 0.85
TestLagrangePolyFunction · 0.85
TestPolyEvalFunction · 0.85

Calls 1

AddMethod · 0.80

Tested by 11

TestBivarPolyEvalFunction · 0.68
TestAVSSVerifyPointFunction · 0.68
TestAVSSVerifyShareFunction · 0.68
TestAVSSFunction · 0.68
TestGenPolyForTargetFunction · 0.68
TestHerzbergPSSFunction · 0.68
TestLagrangePolyFunction · 0.68
TestPolyEvalFunction · 0.68
TestCommitFunction · 0.68
TestLagrangeCurvePtsFunction · 0.68