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

Function GenerateRandomBivariatePolynomial

pvss/avss.go:22–37  ·  view source on GitHub ↗

GenerateRandomBivariatePolynomial - create a bivariate polynomial which is defined by coeffs of all possible combinations of powers of x and y, such that powers of x and y are less than t (threshold). accepts param secret = f(0,0) Example coeff. matrix: f00, f01.y, f02.y^2 f10.x, f11.x.y,

(secret big.Int, threshold int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

ProcessMessageMethod · 0.92
processShareMessageMethod · 0.92
TestGenerateBivarPolyFunction · 0.85
TestBivarPolyEvalFunction · 0.85
TestAVSSVerifyPolyFunction · 0.85
TestAVSSVerifyPointFunction · 0.85
TestAVSSVerifyShareFunction · 0.85
TestAVSSFunction · 0.85

Calls 1

RandomBigIntFunction · 0.85

Tested by 7

TestGenerateBivarPolyFunction · 0.68
TestBivarPolyEvalFunction · 0.68
TestAVSSVerifyPolyFunction · 0.68
TestAVSSVerifyPointFunction · 0.68
TestAVSSVerifyShareFunction · 0.68
TestAVSSFunction · 0.68