UMIS SDK
    Preparing search index...

    Function parseRequestQr

    • Reads a presentation request from the text of a QR code or from a Frame object, for the holder to decide on. The frame must be a request or the opening of a mutual exchange (mutual_init); any other kind is UNSUPPORTED_FORMAT and a damaged request is MALFORMED.

      With now, a request that has run out (now >= exp + skewSeconds, 10 seconds of skew unless told otherwise) is PRESENTATION_EXPIRED. signatureVerified says whether the signature checks out against a key the wallet can name: one of verifierKeys for a plain request, the holder key that the attached presentation is bound to for a mutual opening. It is false, and the request is still returned, when there are no keys to check against or none fits. A request that is not signed by a known key may come from anyone; whether to answer it is for the holder to decide.

      Parameters

      • input: string | Frame
      • opts: {
            crypto?: CryptoProvider;
            now?: number;
            skewSeconds?: number;
            verifierKeys?: readonly EcPublicJwk[];
        } = {}

      Returns Promise<ParsedRequest>