Closed vlasin closed 2 weeks ago
All data types have JSON instances
How are ToJSON
instances of Symbolic datatypes going to be used, btw?
All data types have JSON instances
How are
ToJSON
instances of Symbolic datatypes going to be used, btw?
Do you mean for circuits? We only need them for the interpreter version.
We only need them for the interpreter version.
Oh, okay, nice!
However, we might want a circuit serialization feature at some point. Also, conversions to/from other popular formats.
Then I think we can model this more accurately with the help of #308, like this:
fromValueJSON :: (SymbolicValue d, FromJSON (Value d)) => ...
toValueJSON :: (SymbolicValue d, ToJSON (Value d), Context d ~ c, BaseField c ~ WitnessField c) => ...
And derive FromJSON
/ToJSON
for Symbolic data which would give us circuit serialization behavior
Add types related to the ZK KYC application to zkFold Symbolic. See this document for details.
Checklist for this issue: