CredentialIssuerEIP712 class
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
A Veramo plugin that implements the ICredentialIssuerEIP712 methods.
This API may change without a BREAKING CHANGE notice.
Signature:
export declare class CredentialIssuerEIP712 implements IAgentPlugin
Implements: IAgentPlugin
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)() | (BETA) Constructs a new instance of the CredentialIssuerEIP712 class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
methods | readonly | ICredentialIssuerEIP712 | (BETA) |
schema | readonly | { components: { schemas: { ICreateVerifiableCredentialEIP712Args: { type: string; properties: { resolutionOptions: { type: string; properties: { publicKeyFormat: { type: string; }; accept: { type: string; }; }; description: string; }; credential: { $ref: string; description: string; }; keyRef: { type: string; description: string; }; }; required: string[]; description: string; }; CredentialPayload: { type: string; properties: { issuer: { $ref: string; }; credentialSubject: { $ref: string; }; type: { type: string; items: { type: string; }; }; "@context": { $ref: string; }; issuanceDate: { $ref: string; }; expirationDate: { $ref: string; }; credentialStatus: { $ref: string; }; id: { type: string; }; }; required: string[]; description: string; }; IssuerType: { anyOf: ({ type: string; properties: { id: { type: string; }; }; required: string[]; } | { type: string; properties?: undefined; required?: undefined; })[]; description: string; }; CredentialSubject: { type: string; properties: { id: { type: string; }; }; description: string; }; ContextType: { anyOf: ({ type: string; items?: undefined; } | { type: string; items: { anyOf: { type: string; }[]; }; })[]; description: string; }; DateType: { type: string; description: string; }; CredentialStatusReference: { type: string; properties: { id: { type: string; }; type: { type: string; }; }; required: string[]; description: string; }; VerifiableCredential: { type: string; properties: { proof: { $ref: string; }; issuer: { $ref: string; }; credentialSubject: { $ref: string; }; type: { anyOf: ({ type: string; items: { type: string; }; } | { type: string; items?: undefined; })[]; }; "@context": { $ref: string; }; issuanceDate: { type: string; }; expirationDate: { type: string; }; credentialStatus: { $ref: string; }; id: { type: string; }; }; required: string[]; description: string; }; ProofType: { type: string; properties: { type: { type: string; }; }; description: string; }; ICreateVerifiablePresentationEIP712Args: { type: string; properties: { resolutionOptions: { type: string; properties: { publicKeyFormat: { type: string; }; accept: { type: string; }; }; description: string; }; presentation: { $ref: string; description: string; }; keyRef: { type: string; description: string; }; }; required: string[]; description: string; }; PresentationPayload: { type: string; properties: { holder: { type: string; }; verifiableCredential: { type: string; items: { $ref: string; }; }; type: { type: string; items: { type: string; }; }; "@context": { $ref: string; }; verifier: { type: string; items: { type: string; }; }; issuanceDate: { $ref: string; }; expirationDate: { $ref: string; }; id: { type: string; }; }; required: string[]; description: string; }; W3CVerifiableCredential: { anyOf: { $ref: string; }[]; description: string; }; CompactJWT: { type: string; description: string; }; VerifiablePresentation: { type: string; properties: { proof: { $ref: string; }; holder: { type: string; }; verifiableCredential: { type: string; items: { $ref: string; }; }; type: { anyOf: ({ type: string; items: { type: string; }; } | { type: string; items?: undefined; })[]; }; "@context": { $ref: string; }; verifier: { type: string; items: { type: string; }; }; issuanceDate: { type: string; }; expirationDate: { type: string; }; id: { type: string; }; }; required: string[]; description: string; }; IVerifyCredentialEIP712Args: { type: string; properties: { resolutionOptions: { type: string; properties: { publicKeyFormat: { type: string; }; accept: { type: string; }; }; description: string; }; credential: { $ref: string; description: string; }; }; required: string[]; description: string; }; IVerifyPresentationEIP712Args: { type: string; properties: { resolutionOptions: { type: string; properties: { publicKeyFormat: { type: string; }; accept: { type: string; }; }; description: string; }; presentation: { $ref: string; description: string; }; }; required: string[]; description: string; }; }; methods: { createVerifiableCredentialEIP712: { description: string; arguments: { $ref: string; }; returnType: { $ref: string; }; }; createVerifiablePresentationEIP712: { description: string; arguments: { $ref: string; }; returnType: { $ref: string; }; }; verifyCredentialEIP712: { description: string; arguments: { $ref: string; }; returnType: { type: string; }; }; verifyPresentationEIP712: { description: string; arguments: { $ref: string; }; returnType: { type: string; }; }; }; }; } | (BETA) |
Methods
Method | Modifiers | Description |
---|---|---|
createVerifiableCredentialEIP712(args, context) | (BETA) Creates a Verifiable Credential. The payload, signer and format are chosen based on the args parameter. | |
createVerifiablePresentationEIP712(args, context) | (BETA) Creates a Verifiable Presentation. The payload and signer are chosen based on the args parameter. |