Expand description
KZG polynomial commitment scheme (KZG10).
This module implements the KZG protocol described in the paper Constant-Size Commitments to Polynomials and Their Applications by Kate, Zaverucha and Goldberg, often referred to as the KZG10 paper.
The protocol requires a structured reference string (SRS) that contains powers of a generator of a group, and a pairing friendly curve.
The pairing friendly curve requirement is hidden in the Pairing trait parameter.
Structsยง
- KZGProof
- PairingSRS
- Define a structured reference string for the KZG protocol.
Functionsยง
- combine_
evaluations - Combine the (chunked) evaluations of multiple polynomials.
- divisor_
polynomial ๐ - The polynomial that evaluates to
0at the evaluation points. - eval_
polynomial ๐ - The polynomial that evaluates to each of
evalsfor the respectiveelms. For now, only works for 2 evaluations points.elmis the vector of evaluation points andevalsis the vector of evaluations at those points.