mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-26 15:35:52 +00:00
Update src/key/key.js
This commit is contained in:
parent
f1201ad607
commit
91a5ad91fd
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user