ResolverConfig
@iota/identity-wasm API documentation
Type Alias: ResolverConfig
ResolverConfig:
object
Configurations for the Resolver.
Type declaration
client?
optionalclient:WasmDidResolutionHandler
Client for resolving DIDs of the iota method, usually an IdentityClient or an IdentityClientReadOnly
handlers?
optionalhandlers:Map<string, (did) =>Promise<CoreDocument|IToCoreDocument>>
Handlers for resolving DIDs from arbitrary DID methods.
The keys to the map are expected to match the method name and the values are asynchronous functions returning DID documents.
Note that if a client is given the key "iota" may NOT be present in this map.