DidState

@Serializable
data class DidState(val state: OperationState, val did: String? = null, val secret: Secret? = null, val didDocument: DidDocument? = null, val action: Action? = null, val reason: String? = null)

Represents the current state of a DID operation according to DID Registration specification.

The didState object contains:

  • state: The operation's status (finished, failed, action, wait)

  • did: The DID resulting from the operation (when available)

  • secret: Sensitive information like controller keys (only in Internal Secret Mode with returnSecrets=true)

  • didDocument: The DID Document post-operation

  • action: Additional steps required (when state is "action")

See also

https

://identity.foundation/did-registration/

Constructors

Link copied to clipboard
constructor(state: OperationState, did: String? = null, secret: Secret? = null, didDocument: DidDocument? = null, action: Action? = null, reason: String? = null)

Properties

Link copied to clipboard

Additional steps required to complete the operation.

Link copied to clipboard
val did: String?

The DID resulting from the operation. Present when the DID has been created or when referencing an existing DID.

Link copied to clipboard

The DID Document resulting from the operation. Present when the operation successfully creates, updates, or resolves a DID Document.

Link copied to clipboard

Error reason or message when the operation has failed.

Link copied to clipboard

Contains sensitive information like controller keys.

Link copied to clipboard

Indicates the operation's status.