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