@ew-did-registry/did
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

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);

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i @ew-did-registry/did

    Weekly Downloads

    639

    Version

    0.9.0

    License

    GPL-3.0-or-later

    Unpacked Size

    64.5 kB

    Total Files

    19

    Last publish

    Collaborators

    • energywebdev