def rev_reg_id2cred_def_id__tag(rr_id: str) ->(str, str):
    """
    Given a revocation registry identifier, return its corresponding credential definition identifier and
    (stringified int) tag.

    :param rr_id: revocation registry identifier
    :return: credential definition identifier and tag
    """
    return ':'.join(rr_id.split(':')[2:-2]), str(rr_id.split(':')[-1])
