createDidWithKey

suspend fun createDidWithKey(method: String? = null, timeout: Duration = 10.seconds, block: DidBuilder.() -> Unit = {}): DidCreationWithKeyResult

Create a DID and return both the DID and extracted key ID.

Return

org.trustweave.trust.types.DidCreationWithKeyResult with DID and key id, or structured failure

Parameters

method

DID method to use (default: from config or "key")

timeout

Maximum time to wait (default: 10 seconds)

block

Optional DSL configuration block