DidResolver

class DidResolver(http: OkHttpClient = OkHttpClient()) : IResolveDid

A drop-in DID resolver that supports:

  • did:web — fetched from https://<domain>/<path>/.well-known/did.json (path derived from the DID).

  • did:key — parsed locally from the multibase/multicodec identifier into a minimal DID Document exposing a JsonWebKey2020 verification method.

This class does no verification of signatures or controller assertions; it only resolves.

Thread-safety: stateless across calls; safe to reuse across coroutines.

Since

1.0.0

Parameters

http

OkHttp client used for did:web HTTP GET requests (default new instance).

Constructors

Link copied to clipboard
constructor(http: OkHttpClient = OkHttpClient())

Functions

Link copied to clipboard
open suspend override fun send(options: IResolveDid.Options): IResolveDid.Response

Resolve the given DID.