UMIS SDK
    Preparing search index...

    Function verifyCounterparty

    • Decides on the presentation that the asker of a mutual exchange shows with its request (a mutual_init frame, read by the wallet into request). The counterparty is held to this verifier's own policy: the issuer must be trusted, the status current, and the claims the policy asks for disclosed.

      Nothing the wallet derived from the frame is believed: the request is read again from its signed text, and that text must verify with the key the presentation is bound to. The presentation's key-binding JWT must name the mutual audience and this request's nonce and be at most 30 seconds old; the request must be open; and the exchange is accepted once. The channel is qr_reverse unless opts.channel says otherwise. It never throws.

      Parameters

      • request: ParsedRequest
      • ctx: Omit<VerifierContext, "memberCache">
      • Optionalopts: { channel?: "qr_oneway" | "qr_full" | "qr_reverse" | "ble" | "oid4vp" }

      Returns Promise<VerificationResult>