mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-16 05:15:19 +00:00
Replace config.v5Keys with config.v6Keys flag
Also, don't generate v5 keys flag, which has been removed from the draft specification.
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
||||
(async () => {
|
||||
|
||||
// Generate keys
|
||||
const keyOptions = { userIDs: [{ email: 'user@corp.co' }], config: { v5Keys: true } };
|
||||
const keyOptions = { userIDs: [{ email: 'user@corp.co' }], config: { v6Keys: true } };
|
||||
const { privateKey: privateKeyArmored, publicKey: publicKeyArmored } = await generateKey(keyOptions);
|
||||
const { privateKey: privateKeyBinary } = await generateKey({ ...keyOptions, format: 'binary' });
|
||||
const { privateKey, publicKey, revocationCertificate } = await generateKey({ ...keyOptions, format: 'object' });
|
||||
|
||||
Reference in New Issue
Block a user