Skip to main content
info
IOTA Identity for Rebased is currently in alpha and may still be subject to significant changes

ResolverConfig

@iota/identity-wasm API documentation


Type Alias: ResolverConfig

ResolverConfig: object

Configurations for the Resolver.

Type declaration

client?

optional client: WasmDidResolutionHandler

Client for resolving DIDs of the iota method, usually an IdentityClient or an IdentityClientReadOnly

handlers?

optional handlers: 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.