DidMethod

Interface for DID method implementations. Each DID method (e.g., "web", "key", "ion") should implement this interface.

Extends DidMethodResolver so any DidMethod can be used wherever a resolver is needed without wrapping.

Inheritors

Properties

Link copied to clipboard

Capabilities advertised by this DID method implementation.

Link copied to clipboard
abstract val method: String

The DID method name (e.g., "web", "key", "ion").

Functions

Link copied to clipboard
abstract suspend fun createDid(options: DidCreationOptions = DidCreationOptions()): DidDocument

Creates a new DID and returns its initial DID Document.

Link copied to clipboard

Convenience extension for creating a DID using a builder DSL.

Link copied to clipboard

Extension functions for DidMethod to provide fluent DSL.

Link copied to clipboard
abstract suspend fun deactivateDid(did: Did): Boolean

Deactivates a DID.

Link copied to clipboard
abstract suspend override fun resolveDid(did: Did): DidResolutionResult

Implementation Note: Implementations should validate the DID format before processing. The DID must start with "did:{method}:" where {method} matches this method's name. Use DidValidator.validateFormat for validation.

open suspend fun resolveDid(did: Did, options: ResolutionOptions): DidResolutionResult

Resolves a DID with DID Resolution 1.0 §4.1 resolution options.

Link copied to clipboard
abstract suspend fun updateDid(did: Did, updater: (DidDocument) -> DidDocument): DidDocument

Updates a DID Document.

Link copied to clipboard

Wraps this method so its creations, updates and deactivations are reported to Telemetry.