From 3a6e2d1661499dfe713f2d0dff0bdd29b9118924 Mon Sep 17 00:00:00 2001 From: Daniel Huigens <d.huigens@protonmail.com> Date: Wed, 15 Feb 2023 18:50:31 +0100 Subject: [PATCH] Fix Notation Data signature subpacket creation --- src/packet/signature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packet/signature.js b/src/packet/signature.js index f07a7310..23c1aa34 100644 --- a/src/packet/signature.js +++ b/src/packet/signature.js @@ -260,7 +260,7 @@ class SignaturePacket { // MUST NOT be included in the signature. arr.push(writeSubPacket(sub.issuer, this.issuerKeyID.write())); } - this.rawNotations.forEach(([{ name, value, humanReadable }]) => { + this.rawNotations.forEach(({ name, value, humanReadable }) => { bytes = [new Uint8Array([humanReadable ? 0x80 : 0, 0, 0, 0])]; // 2 octets of name length bytes.push(util.writeNumber(name.length, 2));