Skip to main content

convertIdentifierEncryptionKeys() 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.

Converts any Ed25519 keys of an IIdentifier to X25519 to be usable for encryption.

Signature:

export declare function convertIdentifierEncryptionKeys(identifier: IIdentifier): IKey[]

Parameters

ParameterTypeDescription
identifierIIdentifierthe identifier with keys

Returns:

IKey[]

the array of converted keys filtered to contain only those usable for encryption.

This API may change without a BREAKING CHANGE notice.