This plugin allows for the signing of EIP712 Credentials, via a passed ethers Signer
- Copy this repo
yarn
yarn build
oryarn watch
yarn generate-plugin-schema
yarn start
or VSCode Debugger (CMD + Shift + D) > RunOpenAPI server
- Add this plugin to your Veramo agent, with an
ethers.js Signer
object:
import { createAgent, IResolver } from "@veramo/core";
import { CredentialIssuerEIP712, ICredentialIssuerEIP712 } from "credential-eip712";
....
const agent = createAgent<IResolver & ICredentialIssuerEIP712 & ...>({
new CredentialIssuerEIP712(signer)
});
const credential = await agent.createVerifiableCredentialEIP712({ credential, ethereumAccountId });
- This project was created by following the instructions on this repo:
https://github.com/uport-project/veramo-plugin