decode

Function decode 

Source
pub fn decode(hex: &str) -> Result<Vec<u8>, FromHexError>
Expand description

Decode a hex string.

Accepts lowercase, uppercase, and mixedcase hex digits a-f. Strips leading 0x prefix if present.