Replies: 1 comment 4 replies
-
What is your use case? If we narrow down the set of possible commitment schemes that way we can look at which ones are easier to verify with gnark. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, what's the common practice of verifying the correctness of a commitment with gnark?
One way I know is to directly use the mimc hash as the one-way function but iirc the security analysis is not well-founded.
I checked api.Compiler.Commit() but don't quite follow how it's used.
What I want will be pretty similar to proving the knowledge of a pre-image of a hash function:
Given a message z, the witness contains c = commit (z; r) with some witness randomness r
The circuit checks that c is the right commitment of the witness message z and randomness r.
AssertEq(c, commit(z; r))
Beta Was this translation helpful? Give feedback.
All reactions