Interface DidMethodResolver

Defines the interface for resolving a DID using a specific DID method.

A DID resolver takes a DID URI as input and returns a DidResolutionResult object.

Method

resolve - Asynchronous method to resolve a DID URI. Takes the DID URI and optional resolution options.

interface DidMethodResolver {
    new DidMethodResolvernew (): DidMethod;
    methodName: string;
    resolve(didUri, options?): Promise<DidResolutionResult>;
}

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

methodName: string

The name of the DID method.

Methods

  • Resolves a DID URI.

    This function should resolve the DID URI in accordance with the DID method specification being implemented, using the provided options.

    Parameters

    • didUri: string

      The DID URI to be resolved.

    • Optional options: DidResolutionOptions

      Optional. The options used for resolving the DID.

    Returns Promise<DidResolutionResult>

    A DidResolutionResult object containing the DID document and metadata or an error.