asDidResolver
Adapts a UniversalResolver (string-based, exception-throwing HTTP client interface) to the DidResolver contract (typed, always returns a DidResolutionResult).
DidExceptions and unexpected exceptions thrown by the universal resolver are converted to DidResolutionResult.Failure.ResolutionError so composites such as FallbackDidResolver and CachingDidResolver can treat the adapter like any other resolver. kotlinx.coroutines.CancellationException is rethrown to preserve structured-concurrency cancellation.
Example Usage:
val universal = DefaultUniversalResolver("https://dev.uniresolver.io").asDidResolver()
val resolver = CachingDidResolver(FallbackDidResolver(registry.asResolver(), universal))Content copied to clipboard