Socket
Socket
Sign inDemoInstall

@ew-did-registry/did

Package Overview
Dependencies
0
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ew-did-registry/did

The interface of a Decentralised Identity


Version published
Weekly downloads
892
increased by45.04%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.8.0 (2022-09-29)

Code Refactoring

  • @ew-did-registry/did-ipfs-store: change infura ipfs on hosted cluster (4d5c031)

Features

  • expiration: add exp prop to ipublicclaim (f4ed866)
  • expiration: add exp to public claim before signing (3df553e)

BREAKING CHANGES

  • @ew-did-registry/did-ipfs-store: initializer of did store changed from ipfs node url to ipfs cluster root

Readme

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

FAQs

Last updated on 29 Sep 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc