rotate

suspend fun rotate(): DidDocument

Rotate the key.

This operation performs I/O-bound work (key generation, DID document updates) and uses the configured dispatcher. It is non-blocking and can be cancelled.

Return

Updated DID document