Interface ResolveDid<Accept>

The resolve function returns the DID document in its abstract form (a map).

Type Parameters

  • Accept extends string = string

Hierarchy

Properties

resolve: ((did, resolutionOptions?) => Promise<ResolutionResult>)

Type declaration

    • (did, resolutionOptions?): Promise<ResolutionResult>
    • Parameters

      • did: Did

        This is the DID to resolve. This input is REQUIRED and the value MUST be a conformant DID as defined in 3.1 DID Syntax.

      • Optional resolutionOptions: ResolutionOptions

        A metadata structure containing properties defined in 7.1.1 DID Resolution Options. This input is REQUIRED, but the structure MAY be empty.

      Returns Promise<ResolutionResult>

resolveRepresentation: ((did, resolutionOptions?) => Promise<RepresentationResolutionResult<Accept>>)

Type declaration

    • (did, resolutionOptions?): Promise<RepresentationResolutionResult<Accept>>
    • Parameters

      • did: Did

        This is the DID to resolve. This input is REQUIRED and the value MUST be a conformant DID as defined in 3.1 DID Syntax.

      • Optional resolutionOptions: RepresentationResolutionOptions<Accept>

        A metadata structure containing properties defined in 7.1.1 DID Resolution Options. This input is REQUIRED, but the structure MAY be empty.

      Returns Promise<RepresentationResolutionResult<Accept>>