Package web5.sdk.dids.methods.dht
Class DidDht
-
- All Implemented Interfaces:
public final class DidDhtProvides functionality for creating, publishing, and resolving "did:dht" method Decentralized Identifiers (DIDs).
The "did:dht" method derives a DID from an identity key and stores it on a Distributed Hash Table (DHT). The method-specific identifier for "did:dht" is a z-base-32 encoded public key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDidDht.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static DidDht.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description DidDht()
-
Method Summary
Modifier and Type Method Description final static ResolutionResultresolve(String uri, String gatewayUrl)Resolves a "did:dht" DID into a ResolutionResult. -
-
Method Detail
-
resolve
final static ResolutionResult resolve(String uri, String gatewayUrl)
Resolves a "did:dht" DID into a ResolutionResult.
This method resolves a DID URI by contacting a DHT gateway, retrieving the associated DID document, and verifying its authenticity.
- Parameters:
uri- The DID URI to resolve.gatewayUrl- The optional gateway URL to use for resolution.- Returns:
A ResolutionResult containing the DID document and related metadata.
-
-
-
-