Replies: 1 comment 1 reply
-
|
Looks like one can use ccs, err := frontend.Compile(ecc.BN254.ScalarField(), scs.NewBuilder, circuit)
scs := ccs.(*cs.R1CS)
constraints := scs.GetR1Cs()
// scs := ccs.(*cs.SparseR1CS)
// constraints := scs.GetSparseR1Cs()
for _, r1c := range constraints {
fmt.Println(r1c.String(scs))
}Happy to learn if there are better ways to do this! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Is there a way to view the compiled constraint system in gnark?
I am looking for something similar to the visual view available on https://play.gnark.io/, as mentioned in this PR discussion.
Beta Was this translation helpful? Give feedback.
All reactions