DidJwk

object DidJwk

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

A "did:jwk" 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 Jwk Spec.

Properties

Link copied to clipboard
const val methodName: String

Functions

Link copied to clipboard
fun create(keyManager: KeyManager = InMemoryKeyManager(), algorithmId: AlgorithmId = AlgorithmId.Ed25519): BearerDid

Creates a new "did:jwk" DID, derived from a public key, and stores the associated private key in the provided keyManager.

Link copied to clipboard
fun import(portableDid: PortableDid, keyManager: KeyManager = InMemoryKeyManager()): BearerDid

Instantiates a BearerDid object for the DID JWK method from a given PortableDid.

Link copied to clipboard

Resolves a "did:jwk" DID into a DidResolutionResult, which contains the DID Document and possible related metadata.