Companion

object Companion

Properties

Link copied to clipboard
const val methodName: String

Functions

Link copied to clipboard
fun create(keyManager: KeyManager, options: CreateDidKeyOptions? = null): BearerDid

Creates a new "did:key" 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 KEY method from a given PortableDid.

Link copied to clipboard

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