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
| Parameter | Type |
|---|---|
castor | Castor |
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
| Parameter | Type | Description |
|---|---|---|
did | string | the DID to resolve |
Returns
Promise<DIDDoc | null>
a DIDComm DIDDoc, or null if resolution fails
Implementation of
DIDComm.DIDResolver.resolve