🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@ew-did-registry/did

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ew-did-registry/did

The interface of a Decentralised Identity

0.9.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

DID Package

The DID Package provides a clean interface which allows the client to store and use different DIDs depending on the network. The did will be aware of the different network and method syntax.

We are working on making the did package more useful.

// Instantiate the DID holder
const DID = new IDID();

// Setting the DID; network is inferred from the DID
DID.set(energyDid);

// Setting the DID by explicitly providing the network
DID.set(Networks.EnergyWeb, energyAddress);

// Retrieving current DID for the specified network.
// Returns either the respective DID or undefined
const id = DID.get(Networks.EnergyWeb);

Keywords

Energy

FAQs

Package last updated on 20 Jul 2023

Did you know?

Socket

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.

Install

Related posts