Function signVC

  • A function to sign a Verifiable Credential (VC).

    Type Parameters

    • VCT extends VC

    Parameters

    • params: {
          addSuiteContext?: boolean;
          documentLoader: DocumentLoader;
          proofPurposeOptions?: Record<string, unknown>;
          suite: any;
          unsigned: UnsignedVC<VCT>;
      }

      The parameters for signing the VC

      • Optional addSuiteContext?: boolean

        Whether to add suite context

      • documentLoader: DocumentLoader

        The document loader

      • Optional proofPurposeOptions?: Record<string, unknown>

        Optional proof purpose options

      • suite: any

        The cryptographic suite

      • unsigned: UnsignedVC<VCT>

        The unsigned VC

    Returns Promise<VCT>

    A promise that resolves to the signed VC