-
Notifications
You must be signed in to change notification settings - Fork 421
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
Optimized final exponentiation in the pairing implementation + faster proof verification #41
Conversation
Also, the current Groth16 proof verification equation is
|
Current version uses wasmcurves and it already implements the fast final exp algorithm |
Solves #31.
Currently, the final exponentiation in the snarkjs pairing implementation consists in raising to a 2790-bit integer in Fq12. This PR implements an optimized lattice-based final exponentiation following [SAC:FueKnaRod11].
In addition to the pairing test with the new version in
./test/algebra.js
, the PR implements a test to check if the optimized method gives the same result as the old method, and compares timings (~14x faster).Type: Enhacement
Status: Ready to review