bdk_chain::bitcoin::consensus::encode

Function deserialize_hex

pub fn deserialize_hex<T>(hex: &str) -> Result<T, FromHexError>
where T: Decodable,
Expand description

Deserialize any decodable type from a hex string, will error if said deserialization doesn’t consume the entire vector.