UMIS SDK
    Preparing search index...

    Function createVpRequest

    • An OpenID4VP 1.0 authorization request for a presentation, to be answered by direct_post to responseUri. The verifier is identified by client_id = "redirect_uri:" + responseUri (section 5.9.3), so the request is not signed and carries its metadata, the formats it can read, in client_metadata. requestObject holds the parameters; walletUri is the same request by value as an openid4vp:// link (sections 5.1 and 5.2), with the query and the metadata as JSON, for a QR code or a deep link. The caller supplies nonce (at least 22 base64url characters, 16 random bytes) and state, keeps them for verifyVpResponse, and uses each nonce once. responseUri must be https (or http on the local machine); anything the request cannot carry is INVALID_ARGUMENT.

      Parameters

      • i: {
            clientName?: string;
            dcql: DcqlQuery;
            nonce: string;
            responseUri: string;
            state: string;
        }

      Returns Promise<{ requestObject: VpRequestObject; walletUri: string }>