Default

Default companion object for creating a DidDhtApi with a default configuration.

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.