iya-sts
    Preparing search index...
    secureCose: (document: any, kind: "vc" | "vp", signer: any) => Promise<Buffer> = ...

    Type Declaration

      • (document: any, kind: "vc" | "vp", signer: any): Promise<Buffer>
      • Secures a document as a COSE_Sign1 (section 3.3, RFC 9052).

        Parameters

        • document: any

          the credential or presentation

        • kind: "vc" | "vp"

          vc or vp

        • signer: any

          { privateKey, publicJwk, kid }

        Returns Promise<Buffer>

        the COSE_Sign1 bytes