pub fn bytes_from_hex(hex: &str) -> Result<Vec<u8>, PacketError>
Converts a hexadecimal string into a byte array
Will return Err if string is not valid hexadecimal.
Err