UMIS SDK
    Preparing search index...

    Function createResponseFrame

    • The answer to a request parsed by parseRequestQr, as a frame: response for a request and mutual_reply for the opening of a mutual exchange. It holds the credential with the disclosures named in disclose and a key-binding JWT {iat: now, aud: request.aud, nonce: request.nonce}, so the answer is good for that request only.

      Nothing beyond the request is ever disclosed: a claim the request does not ask for, or a credential of a type it does not accept, is INVALID_ARGUMENT, and so is a signer that is not the holder key.

      Parameters

      • i: {
            crypto?: CryptoProvider;
            disclose: readonly (
                "org"
                | "org_unit"
                | "role"
                | "authority"
                | "delegation"
                | "display"
            )[];
            now: number;
            request: ParsedRequest;
            sdJwtVc: string;
            signer: Signer;
        }

      Returns Promise<Frame>