Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uport-project/uport-did-resolver
DID resolver for uPort identities DEPRECATED
https://github.com/uport-project/uport-did-resolver
decentralized-identifiers ethereum ipfs mnid resolver uport w3c-api
Last synced: 28 days ago
JSON representation
DID resolver for uPort identities DEPRECATED
- Host: GitHub
- URL: https://github.com/uport-project/uport-did-resolver
- Owner: uport-project
- License: mit
- Archived: true
- Created: 2018-02-21T02:10:10.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2020-07-16T16:07:49.000Z (over 4 years ago)
- Last Synced: 2024-11-14T14:52:01.412Z (about 1 month ago)
- Topics: decentralized-identifiers, ethereum, ipfs, mnid, resolver, uport, w3c-api
- Language: TypeScript
- Homepage:
- Size: 422 KB
- Stars: 8
- Watchers: 19
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# uPort DID Resolver
This library is intended to resolve uPort DID documents.
It supports the proposed [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/) spec from the [W3C Credentials Community Group](https://w3c-ccg.github.io).
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.
```js
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')
```