pub fn decode_hex<T: AsRef<[u8]>>(message: T) -> Result<Vec<u8>, Error>
helper method for decoding hex