New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

selfkey-did-resolver

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selfkey-did-resolver

JavaScript DID Resolver for the SelfKey DID Method

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

SelfKey DID Resolver

Library for resolving DIDs in SelfKey method space

Install

npm i --save selfkey-did-resolver

Usage

The following example script shows how we can integrate the did-resolver library:

const 
	selfkeyResolver = require('selfkey-did-resolver')
	did = 'did:key:0x62dfbf9cee9c6eded64d7e0b1e72165f0d26a7c8'

runTest = async () => {
  const doc = await selfkeyResolver(did)
  console.log(JSON.stringify(doc, undefined, 2))
}

runTest()

Alternatively you can run the script via the command line by passing the DID string as an argument:

node index.js did:key:0x62dfbf9cee9c6eded64d7e0b1e72165f0d26a7c8

Tests

npm run test

Keywords

FAQs

Package last updated on 26 Apr 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc