Class DidDht

  • All Implemented Interfaces:

    
    public final class DidDht
    
                        

    Provides 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 class DidDht.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      DidDht()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ResolutionResult resolve(String uri, String gatewayUrl) Resolves a "did:dht" DID into a ResolutionResult.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DidDht

        DidDht()
    • 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.