Module emerald_vault::util
source · Re-exports
pub use crate::crypto::util::keccak256;
pub use crate::crypto::util::KECCAK256_BYTES;
Functions
- Padding high bytes with
O
to fitlen
bytes - Counts bytes required to hold
x
value - Time stamp in format
yyy-mm-ddThh-mm-ss
- Convert a slice into array
- Converts
unsigned
value to byte array - Padding hex string with
O
to get even length - Convert byte array into
u64
- Trim all high zero bytes
- Trix hex prefix
0x