update
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
if DID not found