rotateKey

suspend fun rotateKey(timeout: Duration = 30.seconds, block: KeyRotationBuilder.() -> Unit): DidResult

Rotate a key in a DID document.

Return

Sealed result type with the updated DID document (rotated key) or failure details

Parameters

timeout

Maximum time to wait (default: 30 seconds)

block

DSL block for specifying the key rotation