UNPKG

jwks-did-resolver

Version:

Resolve did:jwks documents using did-resolver

22 lines (20 loc) 705 B
import { FetchJwksOptions } from "did-jwks"; import { DIDResolver } from "did-resolver"; //#region src/resolver.d.ts /** * Get a `did-resolver` compatible resolver for did:jwks * @see {@link https://www.w3.org/TR/did-resolution/} * * @param opts - Additional options for the resolver * @param opts.fetch - The fetch function to use. * @param opts.allowedHttpHosts - The hosts that are allowed to be used via * `http`. All other hosts will require `https`. This is useful for local * development and testing. * * @returns A `did:jwks` resolver for use with `did-resolver` */ declare function getResolver(opts?: FetchJwksOptions): { jwks: DIDResolver; }; //#endregion export { getResolver };