assertKeyGenerationIsAvailable

function assertKeyGenerationIsAvailable(): Promise<void>;

Throws an exception unless `crypto.subtle.generateKey()` is available in the current JavaScript environment and has support for the Ed25519 curve.

Returns

Promise<void>

On this page