Documentation
¶
Overview ¶
Package io offers useful serialization interfaces for gnark objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadWitness ¶
ReadWitness read and deserialize JSON file from reader
returned object will contain map[string]interface{}
keys being variable names and interface{} being big.Int
big.Int values in files can be in base10 or base16 strings
func WriteWitness ¶
WriteWitness serialize variable map[name]value into writer
map[string]interface{} --> interface must be convertible to big.Int using backend.FromInterface()
the resulting format is human readable (JSON)
big.Int are serialized in hexadecimal strings
Types ¶
type WriterRawTo ¶ added in v0.3.6
WriterRawTo is the interface that wraps the WriteRawTo method.
WriteRawTo writes data to w until there's no more data to write or when an error occurs. The return value n is the number of bytes written. Any error encountered during the write is also returned.
WriteRawTo will not compress the data (as opposed to WriteTo)