Retrieves the available encryption keys from the provided file storage. If no valid encryption keys exist, a new key pair is generated and stored.
The file storage system to retrieve keys from.
A promise that resolves to an array of encryption key pairs.
const keys = await JWK.encryptionKeys(storage);console.log(keys); Copy
const keys = await JWK.encryptionKeys(storage);console.log(keys);
Retrieves the available encryption keys from the provided file storage. If no valid encryption keys exist, a new key pair is generated and stored.