DidKey

class DidKey(val uri: String, val keyManager: KeyManager)

Provides a specific implementation for creating and resolving "did:key" method Decentralized Identifiers (DIDs).

A "did:key" DID is a special type of DID that is formulated directly from a single public key. It's utilized in scenarios where it's beneficial for verifiable credentials, capabilities, or other assertions about a subject to be self-verifiable by third parties. This eradicates the necessity for a separate blockchain or ledger. Further specifics and technical details are outlined in the DID Key Spec.

Constructors

Link copied to clipboard
constructor(uri: String, keyManager: KeyManager)

Initializes a new instance of DidKey with the provided uri and keyManager.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A KeyManager instance utilized to manage the cryptographic keys associated with the DID.

Link copied to clipboard
val uri: String

The URI of the "did:key" which conforms to the DID standard.

Functions

Link copied to clipboard

Resolves the current instance's uri to a DidResolutionResult, which contains the DID Document and possible related metadata.