Function bytes_from_hex

Source
pub fn bytes_from_hex<const N: usize>(s: &str) -> Result<[u8; N], FromHexError>
Expand description

Helper to deserialize byte arrays from hex strings

TODO: How does it handle strings that are to short?