Skip to content

Make a circuit return a value #830

Answered by ivokub
jeljelih asked this question in Q&A
Sep 13, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @jeljelih - gnark circuits right now check the correctness of the computation given an input. But the inputs must be provided by the prover. Even though theoretically it would be possible to return the corresponding witness value from the circuit, it would require substantial architectural redesign. We do not have it on the roadmap and I'm not sure we are going to implement it in the future.

So right now, I would just recommend computing the commitment value natively and then use the value as witness to the prover and verifier.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jeljelih
Comment options

@ivokub
Comment options

@vmdamn
Comment options

Answer selected by jeljelih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants