tl;dr: Given a polynomial f(X) of degree m, can we compute all nKZG proofs for f(ωk),k∈[0,n−1] in O(nlogn) time, where ω is a primitive nth root of unity?
Dankrad Feist and Dmitry Khovratovich [^FK20] give a resounding ‘yes!’
There may now be improvements over FK that are faster [^CJLplus24e],[^LJGK25e].
This blog post still only explains the original FK algorithm.
g generates a “bilinear” group \Gr of prime order p, endowed with a bilinear map or pairinge:\Gr×\Gr→\GrT
we use multiplicative notation here: i.e., ga denotes composing g with itself a times
there exists a primitive nth root of unity ω, where n is a power of two
we have q-SDH public parameters (g,gτ,gτ2,…,gτq), for q≤n
we work with polynomials in \Zp[X] of degree ≤n
Related work
Other works that give related techniques to compute proofs fast in KZG-like polynomial commitments are:
Authenticated multipoint evaluation trees (AMTs) (see paper [^TCZplus20] and blogpost)
“How to compute all Pointproofs” (see paper [^Tome20How]), much inspired by Feist and Khovratovich’s technique explained in this blogpost
Refresher: Computing n different KZG proofs
Let f(X) be a polynomial with coefficients fi:
f(X)=fmXm+fm−1Xm−1+⋯f1X+f0=i∈[0,m]∑fiXi
Recall that a KZG evaluation proofπi for f(ωi) is a KZG commitment to a quotient polynomialQi(X)=X−ωif(X)−f(ωi):
πi=gQi(τ)=gτ−ωif(τ)−f(ωi)
Computing such a proof takes O(m) time!
But what if we want to compute allπi,i∈[0,n)?
If done naively, this would take O(nm) time, which is too expensive!
Lower bound?
Is this O(nm) time complexity inherent? After all, to compute πi don’t we first need to compute Qi(X), which takes O(m) time? As you’ll see below, the answer is “no!”
Fortunately, Feist and Khovratovich observe that the Qi’s are algebraically-related and so are their πi KZG commitments!
As a result, they observe that computing all πi’s does not require computing all Qi’s.
Below, we explain how their faster, O(nlogn)-time technique works!
An important caveat is that their technique relies on the evaluation points being ω0,…,ωn−1.
Quotient polynomials and their coefficients
To understand how the πi’s relate to one other, let us look at the coefficients of Qi(X).
We can show that when dividing f (of degree m) by (X−ωi) we obtain a quotient polynomial with coefficients t0,t1,…,tm−1 such that:
Note that the ti’s are a function of fm,fm−1,…,f1, but not of f0!
Proof: One could prove by induction that the coefficients above are correct.
However, it's easiest to take an example and convince yourself, as shown below for m=4.
(Click to expand.)
Indeed, the quotient obtained when dividing f(X)=f3X3+f2X2+⋯+f0 by X−ωi exactly matches Equations \refeq:div−coeffs−1 and \refeq:div−coeffs−2 above:
Specifically, the quotient's coefficients, as expected, are:
Next, let us expand Equations \refeq:div−coeffs−1 and \refeq:div−coeffs−2 above and get a better sense of the relationship between KZG quotient polynomials:
But a close look at Equation \refeq:pi−dft−like reveals it is actually a Discrete Fourier Transform (DFT) on the hj’s!
Specifically, we can rewrite it as:
Here, the extra hm+1,…,hn (if any) are just commitments to the zero polynomials: i.e., they are the identity element in \Gr.
(Also, DFT\Gr is a DFT on group elements via exponentiations, rather than on field elements via multiplication.)
Time complexity: Ignoring the time to compute the hj commitments, which we have not discussed yet, note that the DFT above would only take O(nlogn) time!
This (almost) summarizes the Feist-Khovratovich (FK) technique!
The key idea? KZG quotient polynomial commitments are actually related, if the evaluation points are roots of unity.
Specifically, these commitments are the output of a single DFT as per Equation \refeq:pi−dft, which can be computed in quasilinear time!
However, one key challenge remains, which we address next: computing the hj commitments.
Computing the hj=gHj(τ) commitments
To see how the hj’s can be computed fast too, let’s rewrite them from Equation \refeq:HX.
Key observation: We can express the Hj(X) polynomials as a Toeplitz matrix product between a matrix F (of f(X)’s coefficients) and a column vector V(X) (of the indeterminate variable X):
Therefore, the commitments hj to the Hj(X)’s can also be expressed as a Toeplitz matrix product, where “multiplication” is replaced with “exponentation” and the column vector V(X) is replaced by V(τ):
Fortunately, it is well known that such a matrix product can be computed in O(mlogm) time (incidentally, also via DFTs).
If you are curious, in a previous blogpost, as well as in a short paper [^Tome20How], we explain in detail how this works.
Conclusion
We are all done!
To summarize, to compute all proofs πi for f(ωi), the Feist-Khovratovich (FK) technique [^FK20] proceeds as follows:
Computes all hj’s from Equation \refeq:hj in O(mlogm) time via a Toeplitz matrix product
Computes all πi’s in O(nlogn) time via a DFT on the hj’s, as per Equation \refeq:pi−dft
A few things that we could still talk about, but we are out of time:
Implementing this efficiently (see one attempt here)
Optimizing part of the implementation (see Dankrad’s observation’s in this tweet)
Other techniques for computing proofs on multiple polynomials from the FK paper [^FK20]
Decreasing KZG verifier time when opening multiple polynomials (fi)i∈[t] at the same point x=zt, also via the power of DFTs [^GW21]
[^FK20]: Fast amortized Kate proofs, by Dankrad Feist and Dmitry Khovratovich, 2020, [URL]
[^CJLplus24e]: Improved Polynomial Division in Cryptography, by Kostas Kryptos Chalkias and Charanjit Jutla and Jonas Lindstrom and Varun Madathil and Arnab Roy, in Cryptology {ePrint} Archive, Paper 2024/1279, 2024, [URL]
[^LJGK25e]: Cauchyproofs: Batch-Updatable Vector Commitment with Easy Aggregation and Application to Stateless Blockchains, by Zhongtang Luo and Yanxue Jia and Alejandra Victoria Ospina Gracia and Aniket Kate, in Cryptology {ePrint} Archive, Paper 2025/038, 2025, [URL]
[^TCZplus20]: Towards Scalable Threshold Cryptosystems, by Alin Tomescu and Robert Chen and Yiming Zheng and Ittai Abraham and Benny Pinkas and Guy Golan Gueta and Srinivas Devadas, in IEEE S&P’20, 2020
[^Tome20How]: How to compute all Pointproofs, by Alin Tomescu, in Cryptology ePrint Archive, Report 2020/1516, 2020, [URL]
[^GW21]: fflonk: a Fast-Fourier inspired verifier efficient version of PlonK, by Ariel Gabizon and Zachary J. Williamson, in Cryptology ePrint Archive, Report 2021/1167, 2021, [URL]