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 constraint spans to vm circuits #201

Open
slumber opened this issue Jun 25, 2024 · 0 comments
Open

add constraint spans to vm circuits #201

slumber opened this issue Jun 25, 2024 · 0 comments

Comments

@slumber
Copy link
Contributor

slumber commented Jun 25, 2024

If this constraint isn't satisfied, arkworks won't be able to log it even if subscriber is enabled:

cs.enforce_constraint(row(&rcs.a[i]), row(&rcs.b[i]), row(&rcs.c[i]))?;

because there's no span. See, for example:
https://github.com/arkworks-rs/r1cs-std/blob/4020fbc22625621baa8125ede87abaeac3c1ca26/src/boolean/allocated.rs#L72

For debugging purpose, and at least while we use arkworks, spans locating unsat constraints are useful for debugging.

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

No branches or pull requests

1 participant