Multi-pair assert pairing is one with previous GTEl - #1808
Open
shramee wants to merge 2 commits into
Open
Conversation
shramee
force-pushed
the
multi-miller-is-one
branch
2 times, most recently
from
August 13, 2026 20:42
ce60923 to
6d21947
Compare
* millerLoopAndCheckFinalExpHint multiple points * millerLoopAndFinalExpResult takes P and Q slices * new `AssertMultiMillerLoopAndFinalExpIsOne` for multiple point pairs * test: bn254 multi pairing with prev check
shramee
force-pushed
the
multi-miller-is-one
branch
from
August 20, 2026 11:02
4708e6f to
5d24724
Compare
shramee
marked this pull request as ready for review
August 20, 2026 11:10
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.
Allow multiple pairs when asserting pairing is one with previous GTEl (target group element).
This adds
AssertMultiMillerLoopAndFinalExpIsOne(noticeMulti) functions followingAssertMillerLoopAndFinalExpIsOne. Clean way to do this involves,millerLoopAndCheckFinalExpHintto support multiple pairsmillerLoopAndFinalExpResultto use multiple pairsAssertMillerLoopAndFinalExpIsOnecallsmillerLoopAndFinalExpResultwith P and Q as slices, public API signature has no changes.AssertMultiMillerLoopAndFinalExpIsOneexposing multi pair signature.Description
Allow multiple pairs when checking pairings are 1 with previous result. Currently this is only supported for one pair.
Fixes # (issue)
Type of change
How has this been tested?
How has this been benchmarked?
Checklist:
naI have made corresponding changes to the documentationgolangci-lintdoes not output errors locallynaAny dependent changes have been merged and published in downstream modulesNote
Cursor Bugbot is generating a summary for commit 5d24724. Configure here.