This crate is part of the Tari Cryptocurrency project.
A set of useful and commonly used utilities that are used in several places in the Tari project.
Functions for conversion between integer and bit array.
A trait that offers representation of data types as a byte array or hex string. See also extend_bytes and message_format.
Function which tries to convert a series of T
s to U
s.
A trait that handles base58 encoding and decoding.
Data structure representing time as a u64
.
A trait allows us to call append_raw_bytes and get the raw bytes of the type.
Data structure describing a fixed set of size n.
A simple Hashable
trait which is used to describe how an object should be hashed.
Functions for conversion between binary and hex string.
Macros for RwLock.
A MessageFormat
trait that handles conversion from and to binary, json, or base64.
Hidden
A wrapper type for concealing sensitive information in logs.
Some of the utilities can be removed with feature flags:
This will allow epoch_time, encoding and safe_array
This will include zeroize support
This will include support for serde
This will include support for borsh
This will include all feature flags.