Function decode

Source
pub fn decode(hex_str: &str) -> Result<Vec<u8>, String>
Expand description

Converts a hex string to a vector of bytes

ยงErrors

Returns an error if hex_str contains a non-hex digit.