Add GnuPG interoperability tests; generate GnuPG-compatible Curve25519 keys, v0.3.1
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user