dereferenceDidKeys() function
This API is provided as a beta 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
Parameter | Type | Description |
---|---|---|
didDocument | DIDDocument | |
section | DIDDocumentSection | undefined | |
context | IAgentContext<IResolver> |
Returns:
Promise<_NormalizedVerificationMethod[]>
a Promise that resolves to the list of dereferenced keys.
This API may change without a BREAKING CHANGE notice.