iya-sts
    Preparing search index...
    signDocument: (unsecured: any, options: any) => Promise<any> = ...

    Type Declaration

      • (unsecured: any, options: any): Promise<any>
      • Signs any document with the create-proof algorithm of the suite named or implied by the key.

        options.proofMembers are put on the proof and signed; they may not override type, cryptosuite, proofValue or @context.

        Parameters

        • unsecured: any

          the unsecured document

        • options: any

          publicJwk, privateKey, cryptosuite, verificationMethod, proofPurpose, challenge, domain, proofMembers and the other proof options

        Returns Promise<any>

        the secured document