iya-sts
    Preparing search index...
    secureSdJwt: (
        document: any,
        kind: "vc" | "vp",
        signer: any,
        paths: string[],
    ) => Promise<string> = ...

    Type Declaration

      • (
            document: any,
            kind: "vc" | "vp",
            signer: any,
            paths: string[],
        ): Promise<string>
      • Secures a document as an SD-JWT (RFC 9901 section 4), each given path made selectively disclosable, deeper paths first.

        Parameters

        • document: any

          the credential or presentation

        • kind: "vc" | "vp"

          vc or vp

        • signer: any

          { privateKey, publicJwk, kid }

        • paths: string[]

          the disclosure paths

        Returns Promise<string>

        the SD-JWT

        Error for a path that names nothing or a member that must be disclosed