Replies: 1 comment 1 reply
-
gnark doesn't provide such witness computation mechanism and in general it is also impossible. In essence SNARK circuits allow you to show that some witness is valid but it is up to the user to provide it. For example, let say we have a very simple circuit which proves |
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.
-
Hello, I'm new to zk so my question might looks silly, but please answer me.
When I'm creating the witness assignment, I have to manually calculate the value for Y based on X (for example, if X is 3, I calculate that Y is 35). Is there a built-in function in the gnark library that can do this calculation for me?"
= Is there a function to find the corresponding Y value for any X value, not just X=3? If I implement a more complex circuit, what's the method for generating the correct Y for a different X each time?
Beta Was this translation helpful? Give feedback.
All reactions