
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
did-eth-typed-data
Advanced tools
This template repository provides a bare-bones structure for writing an agent plugin for Veramo and/or for providing your own implementations for key management and storage, or for DID storage.
This template repository provides a bare-bones structure for writing an agent plugin for Veramo and/or for providing your own implementations for key management and storage, or for DID storage.
package.json
yarn
yarn build
or yarn watch
yarn generate-plugin-schema
yarn start
or VSCode Debugger (CMD + Shift + D) > Run OpenAPI server
An agent plugin for Veramo is a class that provides some methods to be called on the agent object, and also emit and listen to agent events triggered by other plugins.
This repository has an example of such a class in ./src/agent/my-plugin.ts
that provides
the myPluginFoo()
method and listens to validatedMessage
events and emits my-event
and my-other-event
.
The types associated with this plugin are declared in ./src/types/IMyAgentPlugin.ts
Adding a declaration for this in package.json
makes it easier to programmatically generate a schema for your plugin:
{
//...
"veramo": {
"pluginInterfaces": {
"IMyAgentPlugin": "./src/types/IMyAgentPlugin.ts"
}
}
}
This template contains some skeleton code for some customizations to the ways keys are managed by Veramo. You can
change how and where keys are stored and
how they are encrypted by the default Veramo plugins, and/or create your own
AbstractKeyManagementSystem
implementation from scratch.
You can change how DIDs are stored by Veramo. You can implement support for other DID methods by overriding MyIdentifierProvider
See ./agent.yml for an example Veramo CLI configuration that uses the plugin and customizations from this template alongside other Veramo plugins to create a fully functioning agent.
There are a number of ways to test your plugin.
This repository contains 2 sample test setups that run the same tests in different contexts.
@veramo/remote-client
to expose the methods
of the remote agent locally, and runs the tests using the local agent.You can also run yarn veramo server
in your terminal and then go to http://localhost:3335/api-docs to see all the
available plugin methods. You can call them after you click Authorize and provide the API key defined
in agent.yml. By default, it is test123
.
This repository includes some Visual Studio Code launch configurations that can be used for step by step debugging.
FAQs
This template repository provides a bare-bones structure for writing an agent plugin for Veramo and/or for providing your own implementations for key management and storage, or for DID storage.
We found that did-eth-typed-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.