decode_hex

Function decode_hex 

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

Decode hex string (with or without 0x prefix) to bytes.

ยงErrors

Returns an error if the hex string is invalid.