-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bls12 377 gadgets for Groth16 #19
Bls12 377 gadgets for Groth16 #19
Conversation
67d0914
to
20a777e
Compare
3734567
to
66074c7
Compare
da8fb60
to
afca9c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to address consistency of #ifndef
, #ifdef
and #if
forms.
eedba35
to
e35f386
Compare
e9fab87
to
1d99b78
Compare
108bef3
to
73c3b11
Compare
1d99b78
to
42c7f53
Compare
libzecale/circuits/groth16_verifier/r1cs_gg_ppzksnark_verifier_gadget.tcc
Show resolved
Hide resolved
libzecale/circuits/groth16_verifier/r1cs_gg_ppzksnark_verifier_gadget.tcc
Show resolved
Hide resolved
, A(pb, FMT(annotation_prefix, " A")) | ||
, check_A( | ||
pb, in_R.X, in_R.Y, A * FqT(2), FMT(annotation_prefix, " check_A")) | ||
, _A(pb, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's be consistent on how we build these gadgets here. I most parts of the code base, smart ptrs are used and passed as args before being reset/new
'ed in the parent gadget's constructor. This contrasts with the existing code.
To be clear, I am not suggesting to do this as part of this PR, but rather to keep this in mind as further improvement going forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See: #23
|
||
// B = Ry^2 | ||
, B(pb, FMT(annotation_prefix, " B")) | ||
, check_B(pb, in_R.Y, B, FMT(annotation_prefix, " check_B")) | ||
, _B(pb, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another place where #20 would apply.
_B
->compute_B
(same for the annotation)Ry^2
(the output wire annotation) ->B
Same applies for the other gadgets in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be covered in a later change.
993a66a
to
3ceb134
Compare
934a45a
to
3e670e3
Compare
…e towards making it fully generic)
…ct form. full pairing test.
…ementation and tests
…or better diagnostics
…ions only. Types describing snark verification gadgets. Parameterize all code by snark and add test configs.
3e670e3
to
616488b
Compare
Update zeth (depends on #19)
No description provided.