pub fn from_hex(hex_str: &str) -> Result<Vec<u8>, String>
Decode an string of hex digits into a sequence of bytes. The input must have an even number of digits.