radn-rs/src/rcore/hashing.rs

13 lines
353 B
Rust

/// Fixed [type@Hash] length.
pub const HASH_SIZE: usize = 32;
/// Zeroed out array of the same length as [`type@Hash`].
/// Used in [`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];