str_hex_to_32bytes

Function str_hex_to_32bytes 

Source
pub fn str_hex_to_32bytes(text: &str) -> Result<[u8; 32], BaseConversionError>
Expand description

Convert a hexadecimal string in an array of 32 bytes.

The hex string must only contains hex characters and produce a 32 bytes value.