IPID resolver to be used with the generic did-resolver package.
$ npm install did-resolver ipid-did-resolver
This library is written in modern JavaScript and is published in both CommonJS and ES module transpiled variants. If you target older browsers please make sure to transpile accordingly.
import registerResolver from 'ipid-did-resolver';
import resolve from 'did-resolver';
registerResolver(ipfs);
await (async () => {
const didDocument = await resolve('did:ipid:xxxxxxx');
console.log(didDocument);
})();
You must provide a valid ipfs
instance to the registerResolver
function
$ npm test
$ npm test -- --watch # during development
Released under the MIT License.