Module ops

Module ops 

Source
Expand description

Stateless operations useful in a DKG/Resharing procedure.

Functionsยง

construct_public
Construct a new public polynomial by summing all commitments.
evaluate_all
Evaluates the polynomial at n indices.
generate_shares
Generate shares and a commitment.
recover_public
Recover public polynomial by interpolating coefficient-wise all polynomials.
recover_public_with_weights
Recover public polynomial by interpolating coefficient-wise all polynomials using precomputed Barycentric Weights.
verify_commitment
Verify that a given commitment is valid for a dealer. If a previous polynomial is provided, verify that the commitment is on that polynomial.
verify_share
Verify that a given share is valid for a specified recipient.