Kate-Zaverucha-Goldberg (KZG) Constant-Sized Polynomial Commitments
Kate, Zaverucha and Goldberg introduced a constant-sized polynomial commitment scheme in 2010 [^KZG10e]. We refer to this scheme as KZG and quickly introduce it below.
Prerequisites:
- Cyclic groups of prime order and finite fields
- Pairings (or bilinear maps)
- Polynomials
Trusted setup
To commit to degree polynomials, need -SDH public parameters:
Here, is called the trapdoor. These parameters should be generated via a distributed protocol [^BCGplus15][^BGG18][^BGM17] that outputs just the ’s and forgets the trapdoor .
The public parameters are updatable: given ’s, anyone can update them to ’s where by picking a random and computing:
This is useful when you want to safely re-use a pre-generated set of public parameters, without trusting that nobody knows the trapdoor.
Commitments
Commitment to is computed as:
Since it is just one group element, the commitment is constant-sized.
Evaluation proofs
To prove an evaluation , a quotient polynomial is computed in time:
Then, the constant-sized evaluation proof is:
Note that this leverages the polynomial remainder theorem.
Verifying an evaluation proof
A verifier who has the commitment , the evaluation and the proof can verify the evaluation in constant-time using two pairings:
This effectively checks that by checking this equality holds for . In other words, it checks that the polynomial remainder theorem holds at .
Batch proofs
One can prove multiple evaluations for arbitrary points using a constant-sized KZG batch proof , where:
can be interpolated via Lagrange interpolation in time [^vG13ModernCh10] as:
can be computed in time via a subproduct tree in time [^vG13ModernCh10], as depicted below (for ). The computation proceeds downwards, in the direction of the arrows, with the monomials being computed first.

Each node in the subproduct tree multiplies the polynomials stored in its two children nodes. This way, the root polynomial will be exactly . If FFT-based multiplication is used, the time to compute a subproduct tree of size is:
Observation 1: I believe computing faster for arbitrary points is not possible, but I would be happy to be contradicted!
Observation 2: In practice, the algorithms for computing and efficiently would require FFT-based techniques for polynomial division and multiplication, and FFTs are fastest when the finite field is endowed with th roots of unity for sufficiently high , on the order of the degrees of and .
Verifying a batch proof
The verifier who has the commitment , the evaluations and a batch proof can verify them as follows.
- First, he interpolates the accumulator polynomial as discussed above.
Then, commits to in time:
- Second, he interpolates s.t. as discussed above.
Then, commits to in time:
- Third, he checks Equation holds at using two pairings: .
Note that:
Aggregation of proofs
For now, we discuss proof aggregation in a different blog post on building vector commitments (VCs) from KZG.
Applications
There are many cryptographic tools one can build using polynomial commitment schemes such as KZG.
Here’s a few we’ve blogged about in the past:
- Cryptographic accumulators
- Vector Commitments (VC) schemes with -sized proofs or with -sized proofs
- Range proofs
Appendix
Recently, Cohen et al.[^CDKS22e] showed that an MPC ceremony for generating “powers-of-” tolerates bias and so does not need a final random beacon contribution.
Acknowledgements
Many thanks to Shravan Srinivasan and Philipp Jovanovic for really helping improve this post.
[^KZG10e]: Polynomial commitments, by Kate, Aniket and Zaverucha, Gregory M and Goldberg, Ian, 2010, [URL] [^BCGplus15]: Secure Sampling of Public Parameters for Succinct Zero Knowledge Proofs, by E. Ben-Sasson and A. Chiesa and M. Green and E. Tromer and M. Virza, in 2015 IEEE Symposium on Security and Privacy, 2015 [^BGG18]: A Multi-party Protocol for Constructing the Public Parameters of the Pinocchio zk-SNARK, by Bowe, Sean and Gabizon, Ariel and Green, Matthew D., in Financial Cryptography and Data Security, 2019 [^BGM17]: Scalable Multi-party Computation for zk-SNARK Parameters in the Random Beacon Model, by Sean Bowe and Ariel Gabizon and Ian Miers, 2017, [URL] [^vG13ModernCh10]: Fast polynomial evaluation and interpolation, by von zur Gathen, Joachim and Gerhard, Jurgen, in Modern Computer Algebra, 2013 [^CDKS22e]: Guaranteed Output in Rounds for Round-Robin Sampling Protocols, by Ran Cohen and Jack Doerner and Yashvanth Kondi and abhi shelat, in Cryptology {ePrint} Archive, Paper 2022/257, 2022, [URL]