def iter_briefs(briefs: Union[dict, Sequence[dict]]) -> tuple:
    """
    Given a cred-brief/cred-info, an sequence thereof, or cred-brief-dict
    (as HolderProver.get_cred_briefs_by_proof_req_q() returns), return tuple with
    all contained cred-briefs.

    :param briefs: cred-brief/cred-info, sequence thereof, or cred-brief-dict
    :return: tuple of cred-briefs
    """

    if isinstance(briefs, dict):
        if all(ok_wallet_reft(k) for k in briefs):
            return tuple(briefs.values())
        return (briefs,)
    return tuple(briefs)