-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor(BW6-761): use revisited Ate pairing instead of Tate #876
Conversation
📦 ❌ 📦 ❌ 📦 ❌ ❌ ❌ ❌
❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌
❌ ❌ ❌ |
📦 ❌ 📦 ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ |
@ivokub this is ready for review after we merge Consensys/gnark-crypto#465 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I was relooking and there were some errors. Will submit another review after testing and recompiling
There was an old test of a function that does not exist anymore ( |
📦 ❌ 📦 ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ 📦 ❌ ❌ ❌ ❌
❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌
❌ ❌ ❌ ❌ ❌ ❌ ❌ ❌
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, running the KZG and Groth16 examples also timeouted my other PR. And the test with Mul034 was the failing one. Now looks perfect!
Description
Revisit the Miller loop algorithm from #846 to allow fixed-argument pairings needed for KZG optimization (see #874). TL;DR: use Eq. (6') instead of (6) in https://hackmd.io/@gnark/BW6-761-changes.
The PR needs gnark-crypto PR Consensys/gnark-crypto#465 for testing.
TODO:
Type of change
How has this been tested?
Same existing tests work fine + new tests for fixed-argument pairing (compare pairing result to gnark-crypto).
How has this been benchmarked?
We lost 2084 R1CS and 24527 SRS for a single pairing compared to
master
but this should be offset in KZG gadget #874 with the fixed-argument pairing that the new Miller loop allows (see below).Checklist:
golangci-lint
does not output errors locally