• Retrieves the available encryption keys from the provided file storage. If no valid encryption keys exist, a new key pair is generated and stored.

    Parameters

    • storage: FileStorage

      The file storage system to retrieve keys from.

    Returns Promise<KeyPair[]>

    A promise that resolves to an array of encryption key pairs.

    const keys = await JWK.encryptionKeys(storage);
    console.log(keys);