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

test: add test vectors for R1CS to detect circuit breakage #66

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

redshiftzero
Copy link
Member

This was created for debugging why tests are failing against mainnet proving and verification keys in penumbra-zone/penumbra#4927
Similar to penumbra-zone/decaf377#110

This PR:

  1. Adds a small utility for generating proving and verification keys, which then get committed (similar to the parameter-setup tool in the penumbra monorepo)
  2. Loads those keys in the R1CS tests in this repo

The benefit of this is that if a dependency is updated that changes the circuits, we'll detect it with these tests. We have similar tests in the penumbra monorepo but it would be nice to have them in all the crypto dependencies with R1CS gadgets so we can more easily identify which changes are causing the breakage.

@redshiftzero redshiftzero merged commit 4a2bf58 into main Nov 20, 2024
5 checks passed
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.

1 participant