simple-did-resolver

1.0.5 • Public • Published

DID Resolver

A simple Decentralized Identity (DID) resolver package for JavaScript.

Installation

Install the package using npm:

npm install simple-did-resolver

Usage

const DIDResolver = require('simple-did-resolver');

const resolver = new DIDResolver();

const didToResolve = 'did:example:123456789';
resolver.resolve(didToResolve)
  .then((resolvedDocument) => {
    console.log('Resolved DID Document:', resolvedDocument);
  })
  .catch((error) => {
    console.error('Error resolving DID:', error);
  });

API

resolve(did)

Resolves the given DID and returns the corresponding DID document.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i simple-did-resolver

Weekly Downloads

3

Version

1.0.5

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • garizs