def rev_reg_id2cred_def_id(rr_id: str) -> str:
    """
    Given a revocation registry identifier, return its corresponding credential definition identifier.

    :param rr_id: revocation registry identifier
    :return: credential definition identifier
    """

    return ':'.join(rr_id.split(':')[2:-2])