Generates a new cryptographic key pair using the specified algorithm.
The keys are generated in an extractable format to allow export and import.
The algorithm to use for key generation.
A promise that resolves to an object containing the generated key pair.
const keyPair = await JWK.generateKeyPair(JWK.Algoritm.ES256);console.log(keyPair); Copy
const keyPair = await JWK.generateKeyPair(JWK.Algoritm.ES256);console.log(keyPair);
Generates a new cryptographic key pair using the specified algorithm.
The keys are generated in an extractable format to allow export and import.