pub fn hex_to_bytes(hex: &str) -> Result<Vec<u8>>
Convert hex string to bytes
hex
A vector of bytes
Returns an error if the hex string is invalid