run402 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,7 +34,7 @@ function personalSign(privateKeyHex, address, message) {
|
|
|
34
34
|
? privateKeyHex.slice(2)
|
|
35
35
|
: privateKeyHex;
|
|
36
36
|
const pkBytes = Uint8Array.from(Buffer.from(pkHex, "hex"));
|
|
37
|
-
const rawSig = secp256k1.sign(hash, pkBytes);
|
|
37
|
+
const rawSig = secp256k1.sign(hash, pkBytes, { prehash: false });
|
|
38
38
|
const sig = secp256k1.Signature.fromBytes(rawSig);
|
|
39
39
|
// Determine recovery bit by trying both and matching the address
|
|
40
40
|
let recovery = 0;
|
package/package.json
CHANGED