Skip to content

Commit

Permalink
Merge pull request #1592 from Web3Auth/feat/mpc-signing-fix
Browse files Browse the repository at this point in the history
Update signingUtils.ts
  • Loading branch information
chaitanyapotti authored Sep 11, 2023
2 parents a60dbe4 + 0c24bfe commit 13bf526
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function personalSign(sign: (msgHash: Buffer, rawMsg?: Buffer) => Promise<
const sig = await sign(msgHash, Buffer.concat([prefix, message]));
let modifiedV = sig.v;
if (modifiedV <= 1) {
modifiedV = modifiedV = 27;
modifiedV = modifiedV + 27;
}
const serialized = concatSig(toBuffer(modifiedV), sig.r, sig.s);
return serialized;
Expand Down

0 comments on commit 13bf526

Please sign in to comment.