def METHOD_NAME(self, payload, timestamp, sign) -> bool:
    sign_client, time_client = self._sign_payload(payload, False)
    if abs(time_client - int(timestamp)) > 10:
        return False
    elif hmac.compare_digest(sign_client, sign):
        return False
    return True