3.3.0 • Published 3 years ago

@silentcastle/remote-did-resolver v3.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

Remote DID Resolver

Resolve DID by fetching DID Document from Uniresolver-like HTTP endpoint.

Install

npm add @silentcastle/remote-did-resolver

Use

Configure endpoint and resolve the document, like you would do with DIF did-resolver package

import { RemoteDidResolver } from "@silentcastle/remote-did-resolver";
const resolver = new RemoteDidResolver("https://dev.uniresolver.io");
const didDocument = await resolver.resolve(
  "did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6"
);
// Alternatively, to get full resolution, instead of just DID document.
const didResolution = await resolver.resolution("did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6")
didDocument == didResolution.didDocument //=> true

License

Apache-2.0

3.3.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago