Update src/key/key.js

This commit is contained in:
Daniel Huigens 2024-04-09 16:40:53 +02:00 committed by GitHub
parent f1201ad607
commit 91a5ad91fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -613,8 +613,8 @@ class Key {
const packetlist = new PacketList();
packetlist.push(revocationSignature);
// An ASCII-armored Transferable Public Key packet sequence of a v6 key MUST NOT contain a CRC24 footer.
const v6Key = this.keyPacket.version === 6;
return armor(enums.armor.publicKey, packetlist.write(), null, null, 'This is a revocation certificate', !v6Key);
const emitChecksum = this.keyPacket.version !== 6;
return armor(enums.armor.publicKey, packetlist.write(), null, null, 'This is a revocation certificate', emitChecksum);
}
/**