update

abstract suspend fun update(did: Did, updater: (DidDocument) -> DidDocument): DidDocument

Updates an existing DID document.

Uses an updater function to ensure atomic updates.

Return

The updated DID document

Parameters

did

The DID identifier (type-safe)

updater

Function that transforms the current document to the new document

Throws