pub fn from_hex(hex: &str) -> Option<Vec<u8>>
Convert a hex string to bytes. Returns None on invalid hex.