Documentation
¶
Index ¶
- Variables
- func Deserialize(f io.Reader, into interface{}, expectedCurveID gurvy.ID) error
- func PeekCurveID(file string) (gurvy.ID, error)
- func Read(path string, into interface{}, expectedCurveID gurvy.ID) error
- func Serialize(f io.Writer, from interface{}, curveID gurvy.ID) error
- func Write(path string, from interface{}, curveID gurvy.ID) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidCurve = errors.New("trying to deserialize an object serialized with another curve")
)
Functions ¶
func Deserialize ¶
Deserialize f into object into uses gob + gzip
func PeekCurveID ¶
PeekCurveID reads the first bytes of the file and tries to decode and return the curveID
func Read ¶
Read read and deserialize input into object provided interface must be a pointer uses gob + gzip
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.