Module serialization

Source
Expand description

Serialization and deserialization utilities for group elements and scalars.

This module provides functions to convert group elements and scalars to and from byte representations using canonical encodings.

Functionsยง

deserialize_elements
Deserialize a byte slice into a vector of group elements.
deserialize_scalars
Deserialize a byte slice into a vector of scalar field elements.
serialize_elements
Serialize a slice of group elements into a byte vector.
serialize_scalars
Serialize a slice of scalar field elements into a byte vector.