run402 1.12.1 → 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;
|
|
@@ -112,10 +112,11 @@ export function getAllowanceAuthHeaders(path, allowancePath) {
|
|
|
112
112
|
const payload = {
|
|
113
113
|
domain,
|
|
114
114
|
address: toChecksumAddress(allowance.address),
|
|
115
|
+
statement: "Sign in to Run402",
|
|
115
116
|
uri,
|
|
116
117
|
version: "1",
|
|
117
|
-
chainId: 84532,
|
|
118
|
-
type: "
|
|
118
|
+
chainId: "eip155:84532",
|
|
119
|
+
type: "eip191",
|
|
119
120
|
nonce,
|
|
120
121
|
issuedAt,
|
|
121
122
|
expirationTime,
|
package/package.json
CHANGED