UMIS SDK
    Preparing search index...

    Function issueCredential

    • Issues an SD-JWT VC: <issuer-jwt>~<disclosure>~…~ (RFC 9901 section 4). Each claim named in sd becomes one object-property disclosure with a 16-byte random salt; every other claim stays a plain claim of the payload. sd defaults to all claims present; names that claims lacks are skipped. The header is {"typ":"dc+sd-jwt","kid":<signer.kid>,"alg":"ES256"}. There are no decoys, nested or array-element disclosures. The holder key in cnf.jwk is written as kty, crv, x and y only.

      Parameters

      • i: {
            claims: Partial<UmisClaimSet>;
            crypto?: CryptoProvider;
            payload: CredentialPayload;
            sd?: readonly (
                "org"
                | "org_unit"
                | "role"
                | "authority"
                | "delegation"
                | "display"
            )[];
            signer: Signer;
        }

      Returns Promise<string>