Module poly

Module poly 

Source
Expand description

Polynomial operations over the BLS12-381 scalar field.

§Warning

The security of the polynomial operations is critical for the overall security of the threshold schemes. Ensure that the scalar field operations are performed over the correct field and that all elements are valid.

Structs§

Eval
A polynomial evaluation at a specific index.
Poly
A polynomial that is using a scalar for the variable x and a generic element for the coefficients.
Weight
A Barycentric Weight for interpolation at x=0.

Functions§

compute_weights
Computes Barycentric Weights for Lagrange interpolation at x=0.
new
Returns a new scalar polynomial of the given degree where each coefficients is sampled at random using kernel randomness.
new_from
In the context of secret sharing, the threshold is the degree + 1.
prepare_evaluations
Prepares at least t evaluations for Lagrange interpolation.
public
Returns the public key of the polynomial (constant term).

Type Aliases§

PartialSignature
The partial signature type.
Private
Private polynomials are used to generate secret shares.
Public
Public polynomials represent commitments to secrets on a private polynomial.
Signature
Signature polynomials are used in threshold signing (where a signature is interpolated using at least threshold evaluations).