Threshold returns the secret sharing threshold.
()
| 314 | |
| 315 | // Threshold returns the secret sharing threshold. |
| 316 | func (p *PubPoly) Threshold() int { |
| 317 | return len(p.commits) |
| 318 | } |
| 319 | |
| 320 | // Commit returns the secret commitment p(0), i.e., the constant term of the polynomial. |
| 321 | func (p *PubPoly) Commit() kyber.Point { |