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

crypto(zk): impl R1CSVar for our circuit variables #2113

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Conversation

redshiftzero
Copy link
Member

The R1CSVar trait is very useful for debugging as it lets you call .value() to learn what value the variable has in the constraint system. This PR implements it for most of our circuit variables, though I've noted a couple of places where it doesn't make sense, e.g. we can't reconstruct a full Note because we don't have the rseed in-circuit, only the derived values.

Related to #2040

@redshiftzero redshiftzero temporarily deployed to smoke-test March 6, 2023 21:01 — with GitHub Actions Inactive
@redshiftzero redshiftzero merged commit be0dd53 into main Mar 7, 2023
@redshiftzero redshiftzero deleted the zk-r1csvar branch March 7, 2023 16:06
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.

None yet

1 participant