Module miden_crypto::utils
source · Expand description
Utilities used in this crate which can also be generally useful downstream.
Modules
- Feature-based re-export of common string components.
- A contiguous growable array type with heap-allocated contents, written
Vec<T>
.
Macros
- Creates a
String
using interpolation of runtime expressions. - Creates a
Vec
containing the arguments.
Structs
- A pointer type that uniquely owns a heap allocation of type
T
. - Implements ByteReader trait for a slice of bytes.
Enums
- Defines errors which can occur during deserialization.
- Defines errors which can occur during parsing of hexadecimal strings.
Traits
- Defines how primitive values are to be read from
Self
. - Defines how primitive values are to be written into
Self
. - Defines how to deserialize
Self
from bytes. - Defines how to serialize
Self
into bytes.
Functions
- Renders an array of bytes as hex into a String.
- Parses a hex string into an array of bytes of known size.
- Returns a vector of the specified length with un-initialized memory.
- Converts a Word into hex.