1. KZG polynomial commitment scheme

One of the most widely used polynomial commitment schemes is the KZG commitment scheme. The scheme was originally published in 2010 by Kate, Zaverucha, and Goldberg.

Let and be two elliptic curve groups of order , and a non-trivial bilinear mapping x .

Let and be generators.

We define and , where .

Structured Reference String(SRS)

The SRS is generated as a set of public parameters required for proof generation and verification of a polynomial. It typically consists of elements like , where is a generator of a particular group and is a secret value. The parameter is determined by the polynomial’s degree.

Trusted setup

A trusted setup selects a random secret .

For a polynomial with a maximum degree , the setup releases and for .

Commitment

For a polynomial , the commitment is calculated as:

To prove that the polynomial evaluates to at , the prover constructs a quotient polynomial:

(where )

The proof is then calculated as .

Given a commitment , an evaluation , and a proof .

According to the Schwartz-Zippel lemma, if two polynomials agree on a sufficiently large number of points, they are likely equal. In this context, we can express:

Using the bilinear pairing function , the verifier can check if:

This becomes:

Therefore,

Thus,

This equation holds if and only if , due to the properties of the pairing function and the structure of .



  • References

https://www.iacr.org/archive/asiacrypt2010/6477178/6477178.pdf

https://eprint.iacr.org/2022/621.pdf