BN256 G2 operations inside the circuit #378
Unanswered
mharishankar
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Hello -- are you looking at doing BN256 Fp2 operations inside a BN256 Snark? If so, the field would be different, so unless I missed something in your goal, you would have to implement Fp2 arithmetic using the std/math/emulated package (develop branch), then point arithmetic. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We have implemented BLS public key additions and BLS signature verification with BN256 in our solidity smart-contract - Public keys are in G2 and hence public key aggregation operations are G2 additions, while signatures are in G1.
We are attempting to move the public key aggregations inside the snark as the BN256 G2 operations are gas expensive (https://github.com/musalbas/solidity-BN256G2) . However, I don't see support for this in the gnark repo, where only the twistededwards BN254 impl is available. Can you recommend a way to do this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions