domain::utils::base32

Function decode_hex

source
pub fn decode_hex<Octets>(s: &str) -> Result<Octets, DecodeError>
where Octets: FromBuilder, <Octets as FromBuilder>::Builder: OctetsBuilder + EmptyBuilder,
Expand description

Decodes a string with base32hex encoded data.

The function attempts to decode the entire string and returns the result as an Octets value.