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
Hi, I have been trying to get a BN254 pairing working inside the Groth16 SNARK by using the sw_bn254 and emulated packages in the develop branch. I'll put the code below to help you understand what I am doing.
Key Generation : pk = sk * g2Gen
Sign : sig = sk * hashToPoint(msg)
Verify : e(sig, g2Gen) = e(hashToPoint(msg), pk)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I have been trying to get a BN254 pairing working inside the Groth16 SNARK by using the sw_bn254 and emulated packages in the develop branch. I'll put the code below to help you understand what I am doing.
Key Generation :
pk = sk * g2Gen
Sign :
sig = sk * hashToPoint(msg)
Verify :
e(sig, g2Gen) = e(hashToPoint(msg), pk)
But sadly the check is returning false, and I don't see where I am going wrong.
Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions