npm.io
2.0.0 • Published 3 years ago

@zcloak/did-resolver

Licence
Apache-2.0
Version
2.0.0
Deps
1
Size
26 kB
Vulns
0
Weekly
0
Stars
12

@zcloak/did-resolver

The repo define DidDocument and DidResolver

Resolve the DID synctax liked string and then fetching the DID Document from the registry, the registry might be a centralized database or a blockchain.

Each resolver should extend the class DIDResolver and implement the resolve method that accepts a DID and returns the DidDocument.

Usage

Installation -

yarn add @zcloak/did-resolver

Functions can be imported as follows:

import { ArweaveDidResolver } from '@zcloak/did-resolver';