Closed wwared closed 1 month ago
This PR fixes the issue mentioned in https://github.com/lurk-lab/bls12_381/pull/8/files#r1587195797
I forgot the full conditions for the G1 add circuit to not divide by zero, which are P != Q and P != -Q. Since -Q is Q with its y coordinate flipped, this is still thankfully easy and cheap to check
P != Q
P != -Q
-Q
Q
y
This PR fixes the issue mentioned in https://github.com/lurk-lab/bls12_381/pull/8/files#r1587195797
I forgot the full conditions for the G1 add circuit to not divide by zero, which are
P != Q
andP != -Q
. Since-Q
isQ
with itsy
coordinate flipped, this is still thankfully easy and cheap to check