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

Method Threshold

share/poly.go:68–70  ·  view source on GitHub ↗

Threshold returns the secret sharing threshold.

()

Source from the content-addressed store, hash-verified

66
67// Threshold returns the secret sharing threshold.
68func (p *PriPoly) Threshold() int {
69 return len(p.coeffs)
70}
71
72// Secret returns the shared secret p(0), i.e., the constant term of the polynomial.
73func (p *PriPoly) Secret() kyber.Scalar {

Callers 5

EvalMethod · 0.95
AddMethod · 0.95
EqualMethod · 0.95
CommitMethod · 0.95
AddMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected