CredentialPlugin class
A Veramo plugin that implements the ICredentialPlugin methods.
Signature:export declare class CredentialPlugin implements IAgentPlugin
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)() | Constructs a new instance of the CredentialPlugin class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
methods | readonly | ICredentialPlugin | |
schema | readonly | { components: { schemas: any; methods: any; }; } |
Methods
Method | Modifiers | 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. | |
verifyCredential(args, context) | Verifies a Verifiable Credential JWT, LDS Format or EIP712. | |
verifyPresentation(args, context) | Verifies a Verifiable Presentation JWT or LDS Format. |