pub fn parse_inventory(hex: &str) -> Result<Vec<u8>, HandlerError>
Parse a hex-encoded inventory string into bytes.
Returns an error if the hex string has odd length or contains non-hex characters.