Skip to content

getDidUriFromKey

getDidUriFromKey(key): DidUri

Builds the URI of a DID if it is created with the authentication key provided.

Parameters

key: Pick<DidVerificationKey, "type" | "publicKey">

The key that will be used as DID authentication key.

Returns

DidUri

The expected DID URI.

Source

did/src/Did.utils.ts:160