Threshold returns the secret sharing threshold.
()
| 66 | |
| 67 | // Threshold returns the secret sharing threshold. |
| 68 | func (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. |
| 73 | func (p *PriPoly) Secret() kyber.Scalar { |