Skip to main content

DIDCommDIDResolver

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview / DIDCommDIDResolver

Class: DIDCommDIDResolver

Defined in: packages/lib/sdk/src/mercury/DIDCommDIDResolver.ts:13

Bridges the SDK's Castor DID resolution to the DIDComm library's DIDResolver interface.

Resolves a DID via Castor and maps the resulting DID Document into the DIDDoc shape expected by the DIDComm WASM layer.

Implements

  • DIDResolver

Constructors

Constructor

new DIDCommDIDResolver(castor: Castor): DIDCommDIDResolver

Defined in: packages/lib/sdk/src/mercury/DIDCommDIDResolver.ts:14

Parameters

ParameterType
castorCastor

Returns

DIDCommDIDResolver

Methods

resolve()

resolve(did: string): Promise<DIDDoc | null>

Defined in: packages/lib/sdk/src/mercury/DIDCommDIDResolver.ts:22

Resolve a DID string to a DIDComm-compatible DID Document.

Parameters

ParameterTypeDescription
didstringthe DID to resolve

Returns

Promise<DIDDoc | null>

a DIDComm DIDDoc, or null if resolution fails

Implementation of

DIDComm.DIDResolver.resolve