Static
fromConverts a DNS packet to a DID document according to the DID DHT specification.
The parameters to use when converting a DNS packet to a DID document.
The DID URI of the DID document.
The DNS packet to convert to a DID document.
A Promise resolving to a DidResolutionResult object containing the DID document and its metadata.
Static
getRetrieves a DID document and its metadata from the DHT network.
The parameters for the get operation.
The DID URI containing the Identity Key.
The DID DHT Gateway or Pkarr Relay URI.
A Promise resolving to a DidResolutionResult object containing the DID document and its metadata.
Private
Static
getPrivate
Static
pkarrRetrieves a signed BEP44 message from a DID DHT Gateway or Pkarr Relay server.
The DID DHT Gateway or Pkarr Relay URI.
The public key bytes of the Identity Key, z-base-32 encoded.
A promise resolving to a BEP44 message containing the signed DNS packet.
Private
Static
pkarrPublishes a signed BEP44 message to a DID DHT Gateway or Pkarr Relay server.
The parameters to use when publishing a signed BEP44 message to a Pkarr relay server.
The BEP44 message to be published, containing the signed DNS packet.
The DID DHT Gateway or Pkarr Relay URI.
A promise resolving to true
if the message was successfully published, otherwise false
.
Static
putPublishes a DID document to the DHT network.
A promise that resolves to a DidRegistrationResult object that contains the result of registering the DID with a DID DHT Gateway or Pkarr relay.
Static
toConverts a DID document to a DNS packet according to the DID DHT specification.
The parameters to use when converting a DID document to a DNS packet.
Optional
authoritativeThe URIs of the Authoritative Gateways to generate NS records from.
The DID document to convert to a DNS packet.
The DID metadata to include in the DNS packet.
Optional
previousThe signature proof that this DID is linked to the given previous DID.
A promise that resolves to a DNS packet.
The
DidDhtDocument
class provides functionality for interacting with the DID document stored in Mainline DHT in support of DID DHT method create, resolve, update, and deactivate operations.This class includes methods for retrieving and publishing DID documents to and from the DHT, using DNS packet encoding and DID DHT Gateway or Pkarr Relay servers.