Replies: 1 comment 5 replies
-
Could you have a look at the example? Does this work? There are essentially two options - binary or JSON serialization. Users should use binary serialization for efficiency and correctness. JSON serialization is only used for pretty-printing and is quite slow. |
Beta Was this translation helpful? Give feedback.
5 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.
-
Hello - I'm looking for the best way to read the elements within a public witness.
For instance, in the case of the gnark playground 'hash of a secret' example: given a public witness (of type
witness.Witness
), is there any sample code to obtain the frontend.VariableHash
?It looks like we need to define a schema and then use this to call
witness.ToJSON
orwitness.FromJSON
functions, but some aspects of this are not very clear, for example the role oftLeaf
in creating a new Schema.Any support would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions