pub fn decode(hex: &str) -> Result<Vec<u8>, FromHexError>
Decode a hex string.
Accepts lowercase, uppercase, and mixedcase hex digits a-f. Strips leading 0x prefix if present.
0x