1.1.0 • Published 3 years ago
@monid/did-resolver v1.1.0
@monid/did-resolver
This module encapsulates the logic required to resolve MONiD Identities using an instance of the MONiD registry smart contract and an IPFS gateway. The exported interface is compatible with the DIF DID-Resolver module.
Usage examples
In combination with the DIF DID-Resolver:
import { getResolver } from "@monid/did-resolver";
import { Resolver } from "did-resolver";
const resolver = new Resolver(getResolver());
const didDocument = await resolver.resolve(did);
// didDocument now contains the corresponding Did Document in JSON form.