@classmethod
def validate_passcode(cls, callsign: str, passcode: str) ->bool:
    """
        Validate an APRS-IS passcode for a given callsign.

        :param str callsign: a callsign, with or without an SSID
        :param str passcode: a passcode

        This will generate a passcode for the given callsign, and compare it to the provided
        passcode.
        """
    base_call = callsign.split('-')[0].upper()
    generated_passcode = cls.generate_passcode(base_call)
    if passcode == generated_passcode:
        return True
    else:
        return False
