CredentialPlugin.createVerifiableCredential() method
Creates a Verifiable Credential. The payload, signer and format are chosen based on the args
parameter.
Signature:
createVerifiableCredential(args: ICreateVerifiableCredentialArgs, context: IssuerAgentContext): Promise<VerifiableCredential>;
Parameters
Parameter | Type | Description |
---|---|---|
args | ICreateVerifiableCredentialArgs | Arguments necessary to create the Presentation. |
context | IssuerAgentContext | This reserved param is automatically added and handled by the framework, *do not override* |
Returns:
Promise<VerifiableCredential>
- a promise that resolves to the VerifiableCredential that was requested or rejects with an error if there was a problem with the input or while getting the key to sign
Remarks
Please see Verifiable Credential data model