resolve

Resolves a "did:dht" DID into a DidResolutionResult, which contains the DID Document and possible related metadata.

This implementation talks to a DID DHT gateway to retrieve the DID Document, which in turn takes the z-base-32 encoded identifier public key and uses it to retrieve the DID Document from the DHT. Next, the Pkarr response is parsed, and used to reconstruct the DID Document.

Return

A DidResolutionResult instance containing the DID Document and related context, including types as part of the DidDocumentMetadata, if available.

Parameters

did

The "did:dht" DID that needs to be resolved.