pub fn str2hex(s: &str) -> Option<HashBinary>
Expand description
Decode the hex str into HashBinary.
Return None
when the decode fails or the input is not exact 32 (to decode to 16 bytes).
pub fn str2hex(s: &str) -> Option<HashBinary>
Decode the hex str into HashBinary.
Return None
when the decode fails or the input is not exact 32 (to decode to 16 bytes).