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

feat: merge abstract phase1 for trusted setup #131

Merged
merged 33 commits into from
Jul 12, 2022
Merged

Conversation

bhgomes
Copy link
Contributor

@bhgomes bhgomes commented Jun 22, 2022

Adds preliminary phase1 abstractions for trusted setup, integrating into the rest of the manta-rs ecosystem.


Before we can merge this PR, please make sure that all the following items have been checked off:

  • Linked to an issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Added one line describing your change in CHANGELOG.md and added the appropriate changelog label to the PR.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Checked that changes and commits conform to the standards outlined in CONTRIBUTING.md.

@bhgomes bhgomes modified the milestones: v0.6.0, v0.5.3 Jun 22, 2022
Copy link
Contributor

@GhostOfGauss GhostOfGauss left a comment

Choose a reason for hiding this comment

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

Looks good, I like the refactoring of Configuration into Pairing, Serializer, Deserializer, and HasDistribution.

I'm going to think a bit about whether it would make things clearer to refactor Response and Challenge so that only Response would be passed between functions and Challenge could be computed within the function that needs it. Maybe this isn't possible or worthwhile but I find the current usage confusing.

manta-trusted-setup/src/mpc.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/mpc.rs Show resolved Hide resolved
manta-trusted-setup/src/mpc.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/util.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/util.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/kzg.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/kzg.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/kzg.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/kzg.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/kzg.rs Outdated Show resolved Hide resolved
@bhgomes bhgomes added changelog:added Changelog: add these changes to the `added` section of the changelog norelease labels Jun 24, 2022
Co-authored-by: Todd Norton <93260651+GhostOfGauss@users.noreply.github.com>

Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
For many proof system SRS ceremonies, we use a modified KZG scheme.
Instead of having a global one, we wanted to have a Groth16-specific KZG
ceremony, and in the future we can add a more universal interface for
this commitment scheme SRS.

Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
@bhgomes
Copy link
Contributor Author

bhgomes commented Jun 27, 2022

@GhostOfGauss Resurfacing this issue #131 (comment) since the code has changed since then.

@bhgomes bhgomes marked this pull request as ready for review June 27, 2022 19:06
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
Co-authored-by: Todd Norton <93260651+GhostOfGauss@users.noreply.github.com>

Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
@bhgomes bhgomes requested a review from GhostOfGauss July 6, 2022 22:47
GhostOfGauss
GhostOfGauss previously approved these changes Jul 8, 2022
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
manta-trusted-setup/Cargo.toml Outdated Show resolved Hide resolved
manta-trusted-setup/src/util.rs Show resolved Hide resolved
Co-authored-by: Boyuan Feng <bfeng9@wisc.edu>

Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
BoyuanFeng
BoyuanFeng previously approved these changes Jul 8, 2022
@bhgomes bhgomes requested a review from GhostOfGauss July 8, 2022 22:50
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
@bhgomes bhgomes merged commit 6377bc9 into main Jul 12, 2022
@bhgomes bhgomes deleted the feat/trusted-setup branch July 12, 2022 12:57
@bhgomes bhgomes linked an issue Jul 12, 2022 that may be closed by this pull request
@bhgomes bhgomes modified the milestones: v0.6.1, v0.5.5 Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trusted-setup Area: Issues and PRs related to Trusted Setup changelog:added Changelog: add these changes to the `added` section of the changelog P-medium Priority: Medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Trusted Setup Phase1 Generic Interface
4 participants