You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless I'm completely off track (which is perfectly possible), if you work around this with is_zero checks of the G1 and G2 elements, no other cases should be affected.
In terms of fixes (short of alternative implemenations of the pairing), the preecompute functions should probably assert that the input elements are not the identity, and the high level pairing functions could be extended with the workaround to check for identity elements.
Hi all,
I believe I found a small bug in libff on the
develop
andmaster
branches, where e(g_1^0, g_2) != e(g_1, g_2^0), but they should be equal.I am able to reproduce it with the following test:
And then building and running the tests as per the README:
I discovered this while using BN128 from the
master
branch in one one of my projects and then reproduced it in thedevelop
branch above.Specifically, in my project, if I compare e(g_1^0, g_2) with e(g_1, g_2^0), which it should be equal to, I get:
As you can see, the LHS begins with a [1,0] while the RHS with a [0,0].
The text was updated successfully, but these errors were encountered: