UMIS SDK
    Preparing search index...

    Function presentCredential

    • Builds a presentation from a stored credential: the issuer JWT, the disclosures of the claims named in disclose (in that order) and a key-binding JWT {iat, aud, nonce, sd_hash} signed by kb.signer (RFC 9901 section 4.3). Naming a claim that the credential holds no disclosure for is INVALID_ARGUMENT. Whether kb.signer is the credential's holder key is not checked here: the verifier does.

      Parameters

      • i: {
            credential: string;
            crypto?: CryptoProvider;
            disclose: readonly (
                "org"
                | "org_unit"
                | "role"
                | "authority"
                | "delegation"
                | "display"
            )[];
            kb: { aud: string; iat: number; nonce: string; signer: Signer };
        }

      Returns Promise<string>