Expand description
Leverage common functionality across multiple primitives.
Re-exports§
pub use array::Array;
Modules§
Structs§
- Priority
Set - A set that offers efficient iteration over its elements in priority-ascending order.
Traits§
- Sized
Serialize - Types with a constant encoded length.
- System
Time Ext - Extension trait to add methods to
std::time::SystemTime
Functions§
- from_
hex - Converts a hexadecimal string to bytes.
- from_
hex_ formatted - Converts a hexadecimal string to bytes, stripping whitespace and/or a
0x
prefix. Commonly used in testing to encode external test vectors without modification. - hex
- Converts bytes to a hexadecimal string.
- max_
faults - Compute the maximum value of
f
(faults) that can be tolerated givenn = 3f + 1
. - modulo
- Compute the modulo of bytes interpreted as a big-endian integer.
- quorum
- Assuming that
n = 3f + 1
, compute the minimum size ofq
such thatq >= 2f + 1
. - union
- Computes the union of two byte slices.
- union_
unique - Concatenate a namespace and a message, prepended by a varint encoding of the namespace length.