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

Trusted Setup client binaries #257

Closed
wants to merge 22 commits into from
Closed

Conversation

SupremoUGH
Copy link
Contributor

@SupremoUGH SupremoUGH commented Sep 23, 2022

New:


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.

Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
@SupremoUGH SupremoUGH added changelog:added Changelog: add these changes to the `added` section of the changelog A-cryptography Area: Issues and PRs related to Cryptography A-trusted-setup Area: Issues and PRs related to Trusted Setup labels Sep 26, 2022
@SupremoUGH SupremoUGH self-assigned this Sep 26, 2022
@SupremoUGH SupremoUGH marked this pull request as ready for review September 26, 2022 15:00
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Copy link
Contributor

@bhgomes bhgomes left a comment

Choose a reason for hiding this comment

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

Also, please add a GH issue for removing the duplicate code when writing a configuration.

manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
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.

Are there any interesting tests we can add to this?

bhgomes and others added 6 commits September 27, 2022 11:57
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
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.

I think that since we don't have any sort of progress bars we need to at least number our messages like in here so that the user feels like they're making progress.

Maybe good intervals to mark would be:

  1. /5 "Connecting to server for Metadata" and "waiting for registry to update"
  2. /5 "Waiting in Queue, you are number ... "
  3. /5 "Receiving data from Coordinator"
  4. /5 "Computing contribution"
  5. /5 "Waiting for confirmation from Coordinator"

Then Finished, show tweet prompt

manta-trusted-setup/src/groth16/ceremony/client.rs Outdated Show resolved Hide resolved
manta-trusted-setup/src/groth16/ceremony/config/ppot.rs Outdated Show resolved Hide resolved
Co-authored-by: Todd Norton <93260651+GhostOfGauss@users.noreply.github.com>
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
Co-authored-by: Todd Norton <93260651+GhostOfGauss@users.noreply.github.com>
Signed-off-by: Francisco Hernández Iglesias <38819712+SupremoUGH@users.noreply.github.com>
Comment on lines +424 to +426
println!(
"Success! You have contributed to the security of Manta Pay! \n Now set your contribution in stone! Tweet:\n\"I made contribution number {} to the #MantaNetworkTrustedSetup! My contribution's hash is {:?} \"",
response.index, C::contribution_hash(&response)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should return the hexstring representation. Use https://docs.rs/hex/latest/hex/ hex::encode.

Comment on lines +75 to +77
P: Pairing<G1 = GroupAffine<R1>, G2 = GroupAffine<R2>> + ?Sized,
R1: SWModelParameters,
R2: SWModelParameters,
Copy link
Contributor

Choose a reason for hiding this comment

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

These constraints should go on the check function.

}
}

fn curve_point_checks<P>(p: &GroupAffine<P>) -> Result<(), SerializationError>
Copy link
Contributor

Choose a reason for hiding this comment

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

Add documentation and #[inline] marker, and probably move to manta_crypto::arkworks::serialize.

@bhgomes
Copy link
Contributor

bhgomes commented Sep 29, 2022

Closed in favor of #259.

@bhgomes bhgomes closed this Sep 29, 2022
@bhgomes bhgomes deleted the feat/client-server-bin branch January 10, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cryptography Area: Issues and PRs related to Cryptography A-trusted-setup Area: Issues and PRs related to Trusted Setup changelog:added Changelog: add these changes to the `added` section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants