Add KZH-k multilinear polynomial commitments - #171
Open
h-hafezi wants to merge 1 commit into
Open
Conversation
h-hafezi
requested review from
WizardOfMenlo,
mmagician and
weikengchen
and removed request for
a team
August 26, 2026 01:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds KZH-
k, a non-hiding pairing-based multilinear polynomialcommitment family parameterized by the const generic
K.The implementation follows KZH-Fold and uses the generic-opening auxiliary
commitments described by IronDict. It uses arkworks' native little-endian MLE
layout throughout and calls
MultilinearExtension::fix_variablesfor partialevaluation.
Highlights
PolynomialCommitmentinterface for dense and sparsearkworks multilinear extensions.
variables is not divisible by
K.opening algorithm.
linear-combination APIs, and prepared verifier keys.
proofs, labels, and point dimensions at operation boundaries.
malformed-input tests, cost-bound tests, and a KZH benchmark covering
K = 2, 3, 4, 6and 12, 16, and 20 variables.For
N = 2^nevaluations, the balanced construction has:O(K * N)commitment preprocessing work;O(N^(ceil(K / 2) / K))online group work plusO(N)field work for ageneric opening, giving
O(sqrt(N))group work for evenK;O(K * N^(1/K))proof size and verifier work.This PR intentionally does not add hiding commitments, strict degree bounds,
a Boolean-specialized opening API, or an R1CS verification gadget.
The most important files to review are:
poly-commit/src/kzh/mod.rspoly-commit/src/kzh/data_structures.rspoly-commit/src/kzh/utils.rspoly-commit/src/kzh/tests.rsNo existing GitHub issue currently tracks this addition; the construction,
scope, costs, setup assumptions, and compatibility choices are described here
and in the module documentation.
Validation
cargo test -p ark-poly-commit kzh::tests::(31 passed)cargo test -p ark-poly-commit kzh::tests:: --no-default-features --features std(30 passed)cargo test --workspace --all-features(145 passed)cargo check --workspace --all-targets --all-featurescargo check -p ark-poly-commit --no-default-featurescargo fmt --all -- --checkcargo doc -p ark-poly-commit --no-deps --all-featuresPendingsection inCHANGELOG.mdFiles changedin the Github PR explorer