def METHOD_NAME(self, digest: bytes) -> None:
    # It is up to the caller to ensure that the digest is appropriate for
    # the hash type used by the signatures. If a signature is using a
    # different hash type than expected, then verification will fail. To
    # return the proper error message, the caller can optionally check the
    # hash type by using ensure_hash_type() before calling verify.
    if self.is_taproot:
        self.verify_bip340(digest)
    else:
        self.verify_ecdsa(digest)