Socket
Socket
Sign inDemoInstall

selfkey-did-resolver

Package Overview
Dependencies
321
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    selfkey-did-resolver

JavaScript DID Resolver for the SelfKey DID Method


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 26 Apr 2018

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