Skip to main content

ICredentialIssuer interface

The interface definition for a plugin that can generate Verifiable Credentials and Presentations

Signature:

export interface ICredentialIssuer extends IPluginMethodMap

Extends: IPluginMethodMap

Remarks

Please see W3C Verifiable Credentials data model

Methods

Method

Description

createVerifiableCredential(args, context)

Creates a Verifiable Credential. The payload, signer, and format are chosen based on the args parameter.

createVerifiablePresentation(args, context)

Creates a Verifiable Presentation. The payload, signer and format are chosen based on the args parameter.

listUsableProofFormats(identifier, context)

(BETA) Returns a list of supported proof formats for verifiable data that this plugin can generate based on the specified issuer.