Expand description
Shared encoding support.
Enums§
- Byte
Order - Byte order used when encoding/decoding field elements as bytestrings.
- Decode
Error - Possible errors in variable-time integer decoding methods.
Traits§
- Array
Decoding - Support for decoding a
Arrayas a big integer. - Array
Encoding - Support for encoding a big integer as a
Array. - Encoded
Size - A trait mapping between encoded representations of integers.
- Encoding
- Encoding support.
Functions§
- truncate_
be 🔒 - Interpret
bytesas a big endian integer and extractbits_precisionnumber of least significant bits, returning a truncated input if it exceeds the requested precision. - truncate_
le 🔒 - Interpret
bytesas a little endian integer and extractbits_precisionnumber of least significant bits, returning a truncated input if it exceeds the requested precision.
Type Aliases§
- Byte
Array - Alias for a byte array whose size is defined by
ArrayEncoding::ByteSize.