From ba678744aa85b2c3471cb82e2536490a5bf1e796 Mon Sep 17 00:00:00 2001 From: Manaf941 Date: Tue, 23 Jul 2024 20:03:30 +0200 Subject: [PATCH] fix: second private key serialize --- src/utils/PrivateKey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/PrivateKey.ts b/src/utils/PrivateKey.ts index 27ac2b5..904bff5 100644 --- a/src/utils/PrivateKey.ts +++ b/src/utils/PrivateKey.ts @@ -57,7 +57,7 @@ export default class PrivateKey { prv.push(rnd, rnd) prv.push(serializeBuffer(Buffer.from(this.data.alg, "utf8"))) prv.push(this.data.algorithm.serialize()) - prv.push(Buffer.from(this.data.comment ?? "", "utf8")) + prv.push(serializeBuffer(Buffer.from(this.data.comment ?? "", "utf8"))) let prvPayload = Buffer.concat(prv) if (prvPayload.length % 8 !== 0) {