uport-did-resolver
Resolve uPort DID documents
Last updated 7 years ago by pelleb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install uport-did-resolver 
SYNC missed versions from official npm registry.

uPort DID Resolver

This library is intended to resolve uPort DID documents.

It supports the proposed Decentralized Identifiers spec from the W3C Credentials Community Group.

It requires the did-resolver library, which is the primary interface for resolving DIDs.

Resolving a DID document

The resolver presents a simple resolver() function that returns a ES6 Promise returning the DID document.

import resolve from 'did-resolver'
import registerResolver from 'uport-did-resolver'

registerResolver()

resolve('did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX/some/path#fragment=123').then(doc => console.log)

// You can also use ES7 async/await syntax
const doc = await resolve('did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX/some/path#fragment=123')

Current Tags

  • 0.0.4-alpha2                                ...           alpha (6 years ago)
  • 0.0.7                                ...           latest (6 years ago)

10 Versions

  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.5-alpha.1                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.4-alpha2                                ...           6 years ago
  • 0.0.4-alpha1                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (10)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE