pub fn slice_to_hash(slice: &[u8]) -> Result<HashValue, ScriptError>Expand description
Convert a slice into a HashValue.
Returns ScriptError::InvalidData if the slice is not exactly 32 bytes long.
pub fn slice_to_hash(slice: &[u8]) -> Result<HashValue, ScriptError>Convert a slice into a HashValue.
Returns ScriptError::InvalidData if the slice is not exactly 32 bytes long.