8000 Changes to support bls12-377 and bw6-761 by dtebbs · Pull Request #225 · clearmatics/zeth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Changes to support bls12-377 and bw6-761 #225

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

Merged
merged 8 commits into from
Jul 23, 2020
Merged

Conversation

dtebbs
Copy link
Contributor
@dtebbs dtebbs commented Jun 18, 2020
  • Remove command line macros for curve and snark
  • Library code is fully parameterized (does NOT include zeth_config.h or include any notion of "defaults")
  • Application code uses configured snark and curve types form the zeth_config.h
  • type variables use ppT, types use pp

@dtebbs dtebbs force-pushed the pairing-chain branch 5 times, most recently from d53ae35 to e44eb19 Compare July 16, 2020 12:50
@dtebbs dtebbs changed the title WIP: Changes to support bls12-377 and bw6-761 Changes to support bls12-377 and bw6-761 Jul 17, 2020
@dtebbs dtebbs requested a review from AntoineRondelet July 17, 2020 16:33
using HashT = BLAKE2s_256<FieldT>;
using HashTreeT = MiMC_mp_gadget<FieldT>;
using pp = defaults::pp;
using FieldT = defaults::FieldT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as above, re: FieldT->Field

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, technically we should. I was hesitant because of the number of lines it might touch, but since you raised it I'll include this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've switched this everywhere. I think we should now be consistent with the type var vs type name convention.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, technically we should. I was hesitant because of the number of lines it might touch, but since you raised it I'll include this change.

Thanks @dtebbs
Yes, I think it's important to be consistent here

dtebbs added 5 commits July 22, 2020 17:03
Remove ZKSNARK macro from command line.
Use ZETH_SNARK connfig variable across all applications.
Move zeth_config types (curves, snarks, etc) into libzeth::defaults namespace.
@AntoineRondelet
Copy link
Contributor

Looking good to me, great to see the library code fully parameterized @dtebbs!

@AntoineRondelet AntoineRondelet merged commit d704517 into develop Jul 23, 2020
@AntoineRondelet AntoineRondelet deleted the pairing-chain branch July 28, 2020 17:52
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
0