slice_to_hash

Function slice_to_hash 

Source
pub fn slice_to_hash(input_slice: &[u8]) -> HashType
Expand description

Convert a &[u8] to a [u8; 32]

ยงPanics

Panics if the input does not have length 32.