Types

Link copied to clipboard

Document creation failed.

Link copied to clipboard
data class InvalidConfiguration(val reason: String, val details: Map<String, Any?> = emptyMap()) : DidCreationResult.Failure

Invalid configuration.

Link copied to clipboard

Key generation failed.

Link copied to clipboard
data class MethodNotRegistered(val method: String, val availableMethods: List<String>) : DidCreationResult.Failure

DID method not registered.

Link copied to clipboard
data class Other(val reason: String, val cause: Throwable? = null) : DidCreationResult.Failure

Other unexpected error during DID creation.

Functions

Link copied to clipboard

Extract the DID and document from a successful DidCreationResult, or throw with detailed error.

Link copied to clipboard

Extract just the DID from a successful DidCreationResult, or throw with detailed error.

Link copied to clipboard

Extract just the document from a successful DidCreationResult, or throw with detailed error.