pub fn decode_hex(bytes: &[u8]) -> Result<Vec<u8>, DecodeError>
Decodes a slice of hex bytes into a byte vector. This function handles and supports both uppercase and lowercase characters.