We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfab27b commit ff0c84fCopy full SHA for ff0c84f
src/utils/crypto.js
@@ -204,7 +204,7 @@ function getPubKeyFromPriKey(priKeyBytes) {
204
function ECKeySign(hashBytes, priKeyBytes) {
205
let ec = new EC('secp256k1');
206
let key = ec.keyFromPrivate(priKeyBytes, 'bytes');
207
- let signature = key.sign(hashBytes);
+ let signature = key.sign(hashBytes, { canonical: true }); // Enforce Canonical signatures.
208
let r = signature.r;
209
let s = signature.s;
210
let id = signature.recoveryParam;
0 commit comments