Skip to content
Library for resolving DIDs in SelfKey method space
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
test
.eslintignore
.eslintrc.json
.gitignore
CONTRIBUTING.md
README.md
package-lock.json
package.json

README.md

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')
const 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 src/index.js did:key:0x62dfbf9cee9c6eded64d7e0b1e72165f0d26a7c8

Tests

npm run test
You can’t perform that action at this time.