Skip to main content

dereferenceDidKeys() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Dereferences keys from DID document and normalizes them for easy comparison.

When dereferencing keyAgreement keys, only Ed25519 and X25519 curves are supported. Other key types are omitted from the result and Ed25519 keys are converted to X25519

Signature:

export declare function dereferenceDidKeys(
didDocument: DIDDocument,
section: DIDDocumentSection | undefined,
context: IAgentContext<IResolver>,
): Promise<_NormalizedVerificationMethod[]>

Parameters

ParameterTypeDescription
didDocumentDIDDocument
sectionDIDDocumentSection | undefined
contextIAgentContext<IResolver>

Returns:

Promise<_NormalizedVerificationMethod[]>

a Promise that resolves to the list of dereferenced keys.

This API may change without a BREAKING CHANGE notice.