frontend.Variable to big.Int or []byte #770
Unanswered
LautaroLasorsa
asked this question in
Q&A
Replies: 1 comment
-
Hi. When writing circuits there is the concept of computing in-circuit and computing out-circuit. In-circuit you have to use https://pkg.go.dev/github.com/consensys/gnark@v0.8.0/std/hash/mimc#NewMiMC, but when computing the witness, you have to use the out-circuit equivalent https://pkg.go.dev/github.com/consensys/gnark-crypto@v0.11.0/hash Can you post the full example which can be executed (as a test file would be best). I'm not fully following what you are trying to achieve. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have the following structure:
and I have to addapt the following code from an Eddsa sample:
I need to adapt it to use the Data.Hash() output as msg, but it doesn't work with a frontend.Variable msg.
How can I adapt it?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions