• Issues a Verifiable Credential from on the input document by attaching a proof. Edits to the document may be made depending on the proof type.

    Parameters

    • params: {
          credential: UnsignedVc;
          issuer: IssuerOptions;
          proofOptions?: {
              proofType?: string;
          };
      }

      Holds all named parameters.

      • credential: UnsignedVc

        A credential document as returned by createCredential.

      • issuer: IssuerOptions

        Interfaces for interacting with the issuer identity for the purpose of generating a proof.

      • Optional proofOptions?: {
            proofType?: string;
        }

        Options that control proof generation.

        • Optional proofType?: string

    Returns Promise<VerifiableCredential>