radn-rs/src/rcore/hashing.rs

15 lines
384 B
Rust

/// Fixed [type@Hash] length.
pub const HASH_SIZE: usize = 32;
/// Zeroed out array of the same length as [`type@Hash`].
/// Used in [`nullable`].
///
/// [`nullable`]: crate::rstd::nullable
pub const HASH_ZEROS: [u8; HASH_SIZE] = [0; HASH_SIZE];
/// For use in [`Point`]/[`Address`].
///
/// [`Point`]: super::Point
/// [`Address`]: super::Address
pub type Hash = [u8; HASH_SIZE];