MCPcopy Create free account
hub / github.com/DOSNetwork/core / Secret

Method Secret

share/poly.go:73–75  ·  view source on GitHub ↗

Secret returns the shared secret p(0), i.e., the constant term of the polynomial.

()

Source from the content-addressed store, hash-verified

71
72// Secret returns the shared secret p(0), i.e., the constant term of the polynomial.
73func (p *PriPoly) Secret() kyber.Scalar {
74 return p.coeffs[0]
75}
76
77// Eval computes the private share v = p(i).
78func (p *PriPoly) Eval(i int) *PriShare {

Callers 3

TestSecretRecoveryFunction · 0.95
TestSecretRecoveryDeleteFunction · 0.95
TestPrivateAddFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestSecretRecoveryFunction · 0.76
TestSecretRecoveryDeleteFunction · 0.76
TestPrivateAddFunction · 0.76