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

Add proof input preprocessing #30

Merged
merged 3 commits into from
May 9, 2021

Conversation

rozbb
Copy link
Contributor

@rozbb rozbb commented May 9, 2021

Description

If a verifier knows the public inputs to a circuit, it can now preprocess them in advance. This is a useful trick for reducing the online time of protocols which require a verification.

This does not implement the same functionality for circuits. This is because the circuit is implemented as a SNARKGadget, which does not expose input preprocessing methods. I'm not certain if all the NIZK schemes in arkworks have the ability to do this trick, so it might not be possible to extend SNARKGadget.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (master)
    N/A
  • Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work.
    N/A
  • Wrote unit tests
    Existing verif unit tests also test the change
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

LGTM

@weikengchen weikengchen merged commit d0d725c into arkworks-rs:master May 9, 2021
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