ResolutionFallbackStrategy

Resolution Fallback Strategy.

Tries multiple resolvers in order until one succeeds. Useful for redundancy and high availability.

Example Usage:

val fallbackStrategy = ResolutionFallbackStrategy(
resolvers = listOf(
primaryResolver,
secondaryResolver,
universalResolver
)
)

Constructors

Link copied to clipboard
constructor(resolvers: List<DidResolver>)

Functions

Link copied to clipboard
open suspend override fun resolve(did: Did): DidResolutionResult

Resolves a DID to a DID resolution result.

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

Resolves with DID Resolution 1.0 §4.1 options, forwarded unchanged to every resolver this strategy tries in turn — same try-until-success/deactivated precedence as the single-argument resolve.

Link copied to clipboard

Resolves a DID and returns the document, or null if it could not be resolved.

Link copied to clipboard

Resolves a DID and returns the document, or throws if not found.