publish

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

Publishes a DidDocument to the DHT.

Parameters

manager

The KeyManager instance to use for signing the message.

didDocument

The DidDocument to publish.

types

A list of types to include in the packet.

Throws

if the provided DID does not conform to the "did:dht" method.

if the message is not successfully put to the DHT.