CredentialPlugin class

A Veramo plugin that implements the ICredentialPlugin methods.

Signature:
export declare class CredentialPlugin implements IAgentPlugin
Implements: [IAgentPlugin](/docs/api/core.iagentplugin)

Constructors

ConstructorModifiersDescription
(constructor)()Constructs a new instance of the CredentialPlugin class

Properties

PropertyModifiersTypeDescription
methodsICredentialPlugin
schema{ components: { schemas: any; methods: any; }; }

Methods

MethodModifiersDescription
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.
verifyCredential(args, context)Verifies a Verifiable Credential JWT, LDS Format or EIP712.
verifyPresentation(args, context)Verifies a Verifiable Presentation JWT or LDS Format.