pub fn decode_hex(s: &str) -> Result<Vec<u8>, ParseIntError>
Decodes a hex-encoded string into a byte array.
This function will return an error if the string is not hex-encoded.