Skip to content
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

Merged
merged 30 commits into from
Jul 28, 2020

Conversation

dtebbs
Copy link
Contributor

@dtebbs dtebbs commented Jul 14, 2020

No description provided.

@dtebbs dtebbs force-pushed the bls12-377-gadgets-groth16 branch 4 times, most recently from 67d0914 to 20a777e Compare July 16, 2020 15:59
@dtebbs dtebbs force-pushed the bls12-377-gadgets-final-exp branch 3 times, most recently from 3734567 to 66074c7 Compare July 17, 2020 13:32
@dtebbs dtebbs force-pushed the bls12-377-gadgets-groth16 branch 3 times, most recently from da8fb60 to afca9c9 Compare July 22, 2020 11:55
Copy link
Contributor Author

@dtebbs dtebbs left a 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.

@dtebbs dtebbs force-pushed the bls12-377-gadgets-final-exp branch 3 times, most recently from eedba35 to e35f386 Compare July 22, 2020 15:32
@dtebbs dtebbs force-pushed the bls12-377-gadgets-groth16 branch from e9fab87 to 1d99b78 Compare July 23, 2020 12:05
@dtebbs dtebbs force-pushed the bls12-377-gadgets-final-exp branch 2 times, most recently from 108bef3 to 73c3b11 Compare July 23, 2020 13:50
@dtebbs dtebbs force-pushed the bls12-377-gadgets-groth16 branch from 1d99b78 to 42c7f53 Compare July 23, 2020 13:53
@dtebbs dtebbs changed the title WIP: Bls12 377 gadgets for Groth16 (depends on #18) Bls12 377 gadgets for Groth16 (depends on #18) Jul 23, 2020
libzecale/circuits/aggregator.tcc Outdated Show resolved Hide resolved
libzecale/circuits/pairing/bls12_377_pairing.hpp Outdated 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,
Copy link
Contributor

@AntoineRondelet AntoineRondelet Jul 27, 2020

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.

Copy link
Contributor

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,
Copy link
Contributor

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

Copy link
Contributor Author

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.

libzecale/serialization/proto_utils.hpp Outdated Show resolved Hide resolved
libzecale/tests/circuits/bls12_377_pairing_test.cpp Outdated Show resolved Hide resolved
libzecale/tests/circuits/miller_loop_gadgets_test.cpp Outdated Show resolved Hide resolved
@dtebbs dtebbs force-pushed the bls12-377-gadgets-groth16 branch from 993a66a to 3ceb134 Compare July 27, 2020 13:23
@dtebbs dtebbs changed the base branch from bls12-377-gadgets-final-exp to bls12-377-gadgets July 27, 2020 13:23
@dtebbs dtebbs force-pushed the bls12-377-gadgets-groth16 branch from 934a45a to 3e670e3 Compare July 27, 2020 15:21
@dtebbs dtebbs changed the title Bls12 377 gadgets for Groth16 (depends on #18) Bls12 377 gadgets for Groth16 Jul 27, 2020
dtebbs added 26 commits July 28, 2020 10:32
…ions only.

Types describing snark verification gadgets.
Parameterize all code by snark and add test configs.
@dtebbs dtebbs force-pushed the bls12-377-gadgets-groth16 branch from 3e670e3 to 616488b Compare July 28, 2020 09:32
@AntoineRondelet AntoineRondelet merged commit e7f60e4 into bls12-377-gadgets Jul 28, 2020
AntoineRondelet added a commit that referenced this pull request Jul 28, 2020
@AntoineRondelet AntoineRondelet deleted the bls12-377-gadgets-groth16 branch July 30, 2020 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants