DidMethodResolver

fun interface DidMethodResolver

Single-method resolver contract extracted from DidMethod for ISP compliance.

Components that only need DID resolution (e.g. proof-engine verifiers, presentation validators) can depend on this narrow interface instead of the full DidMethod.

Being a fun interface, it also enables SAM-conversion lambdas:

val resolver: DidMethodResolver = DidMethodResolver { did ->
// custom resolution logic
}

Inheritors

Functions

Link copied to clipboard
abstract suspend fun resolveDid(did: Did): DidResolutionResult

Resolves a DID to its DID Document with empty resolution options.

open suspend fun resolveDid(did: Did, options: ResolutionOptions): DidResolutionResult

Resolves a DID with DID Resolution 1.0 §4.1 resolution options.