UMIS SDK
    Preparing search index...

    Function createOneWayQr

    • The text of a QR code with a one-way token: a short proof, signed by the holder key, that this credential is held right now. The header is {"alg":"ES256","typ":"umis-ow+jwt"} and the payload {cred_ref, aud, iat, exp, ctr}: cred_ref is the jti of the credential, aud the issuer of the credential unless audience says otherwise, exp is ttlSeconds (30, the most there is) after now, and ctr counts up from a random start so that two tokens made in the same second differ. A verifier accepts the token only for a credential it already holds in its member cache. The signer must hold the key the credential is bound to, and ttlSeconds must be more than 0 and at most 30; either mistake is INVALID_ARGUMENT.

      Parameters

      • i: {
            audience?: string;
            ctr?: number;
            now: number;
            sdJwtVc: string;
            signer: Signer;
            ttlSeconds?: number;
        }

      Returns Promise<string>