pub fn hex_to_array<const N: usize>(s: &str) -> Option<[u8; N]>
Decode a hex string to a fixed-size array. Returns None on invalid input or wrong length.