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

Circuit builder - verify proof should not require &self #396

Closed
vlopes11 opened this issue Feb 10, 2021 · 0 comments
Closed

Circuit builder - verify proof should not require &self #396

vlopes11 opened this issue Feb 10, 2021 · 0 comments
Labels
team:Core Low Level Core Development Team (Rust)

Comments

@vlopes11
Copy link
Contributor

Currently, the Circuit::verify_proof takes &mut self. That implies in some cases the circuit may need to instantiate default implementations to be able to verify proofs.

That is not applicable because no concrete data from the circuit is required for the proof verification.

Proposed change

  • Remove &mut self from Circuit::verify_proof signature
@vlopes11 vlopes11 added the team:Core Low Level Core Development Team (Rust) label Feb 10, 2021
@jules jules self-assigned this Feb 11, 2021
@jules jules removed their assignment Feb 14, 2021
@ZER0 ZER0 removed the Epic label Feb 28, 2021
CPerezz pushed a commit that referenced this issue Mar 4, 2021
Since these two functions didn't need `Self` or `self` and also
were independent, we've been able to remove them from the trait.

This closes #396 and also allows us to have a generic method that
can verify Proofs of any `Circuit` without needing to have access to the
type of it.
CPerezz pushed a commit that referenced this issue Mar 4, 2021
Since these two functions didn't need `Self` or `self` and also
were independent, we've been able to remove them from the trait.

This closes #396 and also allows us to have a generic method that
can verify Proofs of any `Circuit` without needing to have access to the
type of it.
@ZER0 ZER0 closed this as completed in 8e431bf Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:Core Low Level Core Development Team (Rust)
Projects
None yet
Development

No branches or pull requests

4 participants