Skip to content

Commit

Permalink
fix: second private key serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Manaf941 committed Jul 23, 2024
1 parent 6b6eeb4 commit ba67874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/PrivateKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ba67874

Please sign in to comment.