package
0.3.8
Repository: https://github.com/philsippl/gnark.git
Documentation: pkg.go.dev

# Functions

PeekCurveID reads the first bytes of the file and tries to decode and return the curveID.
Read reads bytes from reader and construct object into.
ReadFile read and deserialize input into object provided interface must be a pointer.
ReadWitness read and deserialize JSON file at path 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.
Write object from into provided writer encodes the curveID in the first bytes.
WriteFile serialize object into file.
WriteWitness serialize variable map[name]value into file at path 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.

# Interfaces

CurveObject must know which curve they are tied to.