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.
[x] 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
[X] Updated relevant documentation in the code
[X] Added a relevant changelog entry to the Pending section in CHANGELOG.md
[X] Re-reviewed Files changed in the Github PR explorer
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 extendSNARKGadget
.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.
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer