Skip to main content

Bytes

Type Alias Bytes 

Source
pub type Bytes<const LEN: usize> = Array<u8, LEN>;
Expand description

Wrapper type for all array-based bytes implementing many important traits, so types based on it can simply derive their implementations.

Type keeps data in little-endian byte order and displays them in the same order (like bitcoin SHA256 single hash type).

Aliased Typeยง

pub struct Bytes<const LEN: usize>(/* private fields */);