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:
Daniel Huigens
2023-03-15 19:37:55 +01:00
committed by larabr
parent 31c2a2575d
commit 8816bd7541
9 changed files with 61 additions and 42 deletions

View File

@@ -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' });