Skip to content

keyToResolvedKey

keyToResolvedKey(key, did): ResolvedDidKey

Converts the DID key in the format returned by resolveKey(), useful for own implementations of resolveKey.

Parameters

key: DidKey

The DID key in the SDK format.

did: did:cord:3${string}

The DID the key belongs to.

Returns

ResolvedDidKey

The key in the resolveKey-format.

Source

did/src/DidResolver/DidResolver.ts:141