DidDhtApi

sealed class DidDhtApi(configuration: DidDhtConfiguration)

Base class for managing DID DHT operations. Uses the given DidDhtConfiguration.

Inheritors

Constructors

Link copied to clipboard
protected constructor(configuration: DidDhtConfiguration)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun create(keyManager: KeyManager, options: CreateDidDhtOptions? = null): BearerDid

Creates a new "did:dht" DID, derived from an initial identity key, and stores the associated private key in the provided KeyManager.

Link copied to clipboard
fun import(portableDid: PortableDid, keyManager: KeyManager = InMemoryKeyManager()): BearerDid

Instantiates a BearerDid object for the DID DHT method from a given PortableDid.

Link copied to clipboard
fun publish(manager: KeyManager, didDocument: DidDocument, types: List<DidDhtTypeIndexing>? = null)

Publishes a DidDocument to the DHT.

Link copied to clipboard

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

Link copied to clipboard
fun suffix(didUrl: String): String

Returns the suffix of the DID, which is the last part of the DID's method-specific identifier.