Expand description
Utilities used in this crate which can also be generally useful downstream.
Structs§
- Read
Adapter - An adapter of ByteReader to any type that implements std::io::Read
- Slice
Reader - Implements ByteReader trait for a slice of bytes.
Enums§
- Deserialization
Error - Defines errors which can occur during deserialization.
- HexParse
Error - Defines errors which can occur during parsing of hexadecimal strings.
Traits§
- Byte
Reader - Defines how primitive values are to be read from
Self. - Byte
Writer - Defines how primitive values are to be written into
Self. - Deserializable
- Defines how to deserialize
Selffrom bytes. - Serializable
- Defines how to serialize
Selfinto bytes.
Functions§
- bytes_
to_ elements_ exact - Converts bytes to field elements with validation.
- bytes_
to_ elements_ with_ padding - Converts a sequence of bytes into vector field elements with padding. This guarantees that no two sequences or bytes map to the same sequence of field elements.
- bytes_
to_ hex_ string - Renders an array of bytes as hex into a String.
- bytes_
to_ packed_ u32_ elements - Converts bytes to field elements using u32 packing in little-endian format.
- elements_
to_ bytes - Converts field elements to raw byte representation.
- hex_
to_ bytes - Parses a hex string into an array of bytes of known size.
- padded_
elements_ to_ bytes - Converts a sequence of padded field elements back to the original bytes.
- uninit_
vector ⚠ - Returns a vector of the specified length with un-initialized memory.
- word_
to_ hex - Converts a Word into hex.