Skip to content

Commit

Permalink
Setting lowS flag to be false by default for verification of secp256k…
Browse files Browse the repository at this point in the history
…1 signatures
  • Loading branch information
aniketh-varma committed Oct 2, 2024
1 parent 8b6eb13 commit b28da60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/secp256k1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Secp256k1 {

const publicKeyBytes = Secp256k1.publicJwkToBytes(publicJwk);
const hashedContent = await sha256.encode(content);
return secp256k1.verify(signature, hashedContent, publicKeyBytes);
return secp256k1.verify(signature, hashedContent, publicKeyBytes, { lowS: false });
}

/**
Expand Down

0 comments on commit b28da60

Please sign in to comment.