perf(zkatdlog): optimize IPA prover using native gnark-crypto arithmetic - #2154
Open
SurbhiAgarwal1 wants to merge 2 commits into
Open
perf(zkatdlog): optimize IPA prover using native gnark-crypto arithmetic#2154SurbhiAgarwal1 wants to merge 2 commits into
SurbhiAgarwal1 wants to merge 2 commits into
Conversation
SurbhiAgarwal1
force-pushed
the
perf/zkp-ipa-optimization
branch
from
August 6, 2026 09:30
aca7240 to
d4f768b
Compare
Signed-off-by: Surbhi Agarwal <SurbhiAgarwal1@users.noreply.github.com>
SurbhiAgarwal1
force-pushed
the
perf/zkp-ipa-optimization
branch
from
August 6, 2026 09:43
d4f768b to
4b48652
Compare
Contributor
Author
|
Hi @adecaro and @AkramBitar , I have updated the PR branch (
Could you please trigger/re-run the CI workflows and let me know if any further changes are needed? Thanks! |
Contributor
|
Thanks a lot for submitting this PR! Regards, |
Contributor
|
Could you please help to review this PR? Thanks a lot, |
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 introduces native gnark-crypto field arithmetic for the Inner Product Argument (IPA) prover to eliminate the allocation overhead of the generic mathlib wrapper in tight reduction loops. Supersedes #1912.
As discussed in #1432 and the parent performance epic (#954), the core curve layer heavily relies on mathlib interface allocations, which becomes a bottleneck during Bulletproof/IPA proof generation.
Changes Made
ipa_native.gocontainingnativeIPAReduceto execute round reductions natively.ipaProver.reduceto dynamically dispatch execution based on the underlying curve viamath.DispatchCurve(BLS12-381 and BN254).math.GnarkFr[T]) for in-place scalar computations.Related Issues
Type of Change
Testing Done
make unit-tests)