Add GnuPG interoperability tests; generate GnuPG-compatible Curve25519 keys, v0.3.1

This commit is contained in:
2026-10-07 16:15:21 +03:00
parent 750665f96b
commit edf7cec93e
6 changed files with 115 additions and 8 deletions
+2 -1
View File
@@ -215,7 +215,8 @@ function createKeyStore(storage) {
if (!/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/.test(cleanEmail)) throw new Error('Enter a valid email address for the key.');
requirePassphrase(passphrase);
const { privateKey, publicKey, revocationCertificate } = await openpgp.generateKey({
type: 'curve25519',
type: 'ecc',
curve: 'curve25519Legacy',
userIDs: [{ name: cleanName || undefined, email: cleanEmail }],
passphrase,
format: 'armored'