from_hex_formatted

Function from_hex_formatted 

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

Converts a hexadecimal string to bytes, stripping whitespace and/or a 0x prefix. Commonly used in testing to encode external test vectors without modification.