Function signVP

  • A function to sign a Verifiable Presentation (VP).

    Type Parameters

    • VPType extends VP

    Parameters

    • params: {
          addSuiteContext?: boolean;
          documentLoader: DocumentLoader;
          proofPurposeOptions: {
              challenge: string;
              domain: string;
          } & Record<string, unknown>;
          suite: any;
          unsigned: Omit<VPType, "proof">;
      }

      The parameters for signing the VP

      • Optional addSuiteContext?: boolean

        Whether to add suite context

      • documentLoader: DocumentLoader

        The document loader

      • proofPurposeOptions: {
            challenge: string;
            domain: string;
        } & Record<string, unknown>

        The proof purpose options

      • suite: any

        The cryptographic suite

      • unsigned: Omit<VPType, "proof">

        The unsigned VP

    Returns Promise<VPType>

    A promise that resolves to the signed VP