Function bao::hash::hash

source ·
pub fn hash(input: &[u8]) -> Hash
Expand description

Hash a slice of input bytes all at once. If the std feature is enabled, as it is by default, this will use multiple threads via Rayon.

Example

let hash_at_once = bao::hash::hash(b"input bytes");