Module polynomial

Source
Expand description

Provides polynomial primitive, typically used in secret sharing and threshold DKG

Structs§

Polynomialalloc
Polynomial $f(x) = \sum_i a_i x^i$ defined as a list of coefficients $[a_0, \dots, a_{\text{degree}}]$

Functions§

lagrange_coefficient
Calculates lagrange coefficient $\lambda_j$ to interpolate a polynomial at point $x$
lagrange_coefficient_at_zero
Calculates lagrange coefficient $\lambda_j$ to interpolate a polynomial at point $0$