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

Refac/groth16 mpc #1372

Open
wants to merge 123 commits into
base: master
Choose a base branch
from
Open

Refac/groth16 mpc #1372

wants to merge 123 commits into from

Conversation

Tabaie
Copy link
Contributor

@Tabaie Tabaie commented Dec 25, 2024

Description

#1297, but using tools from Consensys/gnark-crypto#589.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

  • Test A
  • Test B

How has this been benchmarked?

  • Benchmark A, on Macbook pro M1, 32GB RAM
  • Benchmark B, on x86 Intel xxx, 16GB RAM

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I did not modify files generated from templates
  • golangci-lint does not output errors locally
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Collaborator

@gbotrel gbotrel left a comment

Choose a reason for hiding this comment

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

lgtm, minor changes maybe

@Tabaie Tabaie requested a review from gbotrel January 22, 2025 21:38
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

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

Thanks Arya! It looks really nice. Imo I understood it mostly. There are a few comments though, see inline.

A few of the comments are nice to have and you don't need to address now. We could do it in separate PR:

  • optional randomness source for contribution
  • being able to change hash function for challenge computation for cool tricks a la providing SNARK of ceremony correctness

backend/groth16/bls12-377/mpcsetup/utils.go Outdated Show resolved Hide resolved
backend/groth16/bls12-377/mpcsetup/utils.go Outdated Show resolved Hide resolved
backend/groth16/bls12-377/mpcsetup/setup.go Show resolved Hide resolved
backend/groth16/bls12-377/mpcsetup/setup_test.go Outdated Show resolved Hide resolved
backend/groth16/bn254/mpcsetup/unit_test.go Outdated Show resolved Hide resolved
backend/groth16/bls12-377/mpcsetup/phase1.go Show resolved Hide resolved
io/roundtrip.go Outdated Show resolved Hide resolved
backend/groth16/bls12-377/mpcsetup/phase1.go Show resolved Hide resolved
backend/groth16/bls12-377/mpcsetup/phase2.go Show resolved Hide resolved
@ivokub ivokub mentioned this pull request Jan 23, 2025
3 tasks
@Tabaie
Copy link
Contributor Author

Tabaie commented Feb 3, 2025

Thanks Arya! It looks really nice. Imo I understood it mostly. There are a few comments though, see inline.

A few of the comments are nice to have and you don't need to address now. We could do it in separate PR:

  • optional randomness source for contribution
  • being able to change hash function for challenge computation for cool tricks a la providing SNARK of ceremony correctness

These are great ideas! I made an issue for them.

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.

3 participants