reth::revm::revm::interpreter::primitives::alloy_primitives::hex::serde

Function deserialize

pub fn deserialize<'de, D, T>(
    deserializer: D,
) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>, T: FromHex, <T as FromHex>::Error: Display,
Expand description

Deserializes a hex string into raw bytes.

Both, upper and lower case characters are valid in the input string and can even be mixed (e.g. f9b4ca, F9B4CA and f9B4Ca are all valid strings).