viem 2.9.32 → 2.10.1
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.
- package/CHANGELOG.md +23 -0
- package/_cjs/accounts/index.js +4 -3
- package/_cjs/accounts/index.js.map +1 -1
- package/_cjs/accounts/utils/signMessage.js +2 -2
- package/_cjs/accounts/utils/signMessage.js.map +1 -1
- package/_cjs/accounts/utils/signTypedData.js +2 -2
- package/_cjs/accounts/utils/signTypedData.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js +2 -2
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/constants/bytes.js +2 -1
- package/_cjs/constants/bytes.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/experimental/eip3074/invokers/getInvoker.js +2 -2
- package/_cjs/experimental/eip3074/utils/signAuthMessage.js +2 -2
- package/_cjs/experimental/eip3074/utils/signAuthMessage.js.map +1 -1
- package/_cjs/experimental/erc6492/isErc6492Signature.js +10 -0
- package/_cjs/experimental/erc6492/isErc6492Signature.js.map +1 -0
- package/_cjs/experimental/erc6492/parseErc6492Signature.js +13 -0
- package/_cjs/experimental/erc6492/parseErc6492Signature.js.map +1 -0
- package/_cjs/experimental/erc6492/serializeErc6492Signature.js +15 -0
- package/_cjs/experimental/erc6492/serializeErc6492Signature.js.map +1 -0
- package/_cjs/experimental/index.js +7 -1
- package/_cjs/experimental/index.js.map +1 -1
- package/_cjs/index.js +15 -11
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/signature/{hexToCompactSignature.js → parseCompactSignature.js} +5 -5
- package/_cjs/utils/signature/{hexToCompactSignature.js.map → parseCompactSignature.js.map} +1 -1
- package/_cjs/utils/signature/{hexToSignature.js → parseSignature.js} +4 -4
- package/_cjs/utils/signature/{hexToSignature.js.map → parseSignature.js.map} +1 -1
- package/_cjs/utils/signature/{compactSignatureToHex.js → serializeCompactSignature.js} +4 -4
- package/_cjs/utils/signature/serializeCompactSignature.js.map +1 -0
- package/_cjs/utils/signature/{signatureToHex.js → serializeSignature.js} +5 -5
- package/_cjs/utils/signature/serializeSignature.js.map +1 -0
- package/_esm/accounts/index.js +3 -1
- package/_esm/accounts/index.js.map +1 -1
- package/_esm/accounts/utils/signMessage.js +2 -2
- package/_esm/accounts/utils/signMessage.js.map +1 -1
- package/_esm/accounts/utils/signTypedData.js +2 -2
- package/_esm/accounts/utils/signTypedData.js.map +1 -1
- package/_esm/actions/public/verifyHash.js +2 -2
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/constants/bytes.js +1 -0
- package/_esm/constants/bytes.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/experimental/eip3074/invokers/getInvoker.js +2 -2
- package/_esm/experimental/eip3074/utils/signAuthMessage.js +2 -2
- package/_esm/experimental/eip3074/utils/signAuthMessage.js.map +1 -1
- package/_esm/experimental/erc6492/isErc6492Signature.js +7 -0
- package/_esm/experimental/erc6492/isErc6492Signature.js.map +1 -0
- package/_esm/experimental/erc6492/parseErc6492Signature.js +20 -0
- package/_esm/experimental/erc6492/parseErc6492Signature.js.map +1 -0
- package/_esm/experimental/erc6492/serializeErc6492Signature.js +21 -0
- package/_esm/experimental/erc6492/serializeErc6492Signature.js.map +1 -0
- package/_esm/experimental/index.js +3 -0
- package/_esm/experimental/index.js.map +1 -1
- package/_esm/index.js +12 -4
- package/_esm/index.js.map +1 -1
- package/_esm/utils/signature/compactSignatureToSignature.js +1 -1
- package/_esm/utils/signature/{hexToCompactSignature.js → parseCompactSignature.js} +4 -4
- package/_esm/utils/signature/parseCompactSignature.js.map +1 -0
- package/_esm/utils/signature/{hexToSignature.js → parseSignature.js} +3 -3
- package/_esm/utils/signature/{hexToSignature.js.map → parseSignature.js.map} +1 -1
- package/_esm/utils/signature/{compactSignatureToHex.js → serializeCompactSignature.js} +3 -3
- package/_esm/utils/signature/serializeCompactSignature.js.map +1 -0
- package/_esm/utils/signature/{signatureToHex.js → serializeSignature.js} +4 -4
- package/_esm/utils/signature/serializeSignature.js.map +1 -0
- package/_types/accounts/index.d.ts +5 -1
- package/_types/accounts/index.d.ts.map +1 -1
- package/_types/accounts/utils/signMessage.d.ts +2 -2
- package/_types/accounts/utils/signMessage.d.ts.map +1 -1
- package/_types/accounts/utils/signTypedData.d.ts +2 -2
- package/_types/accounts/utils/signTypedData.d.ts.map +1 -1
- package/_types/celo/chainConfig.d.ts +20 -20
- package/_types/celo/formatters.d.ts +10 -10
- package/_types/chains/definitions/ancient8.d.ts +8 -8
- package/_types/chains/definitions/ancient8Sepolia.d.ts +8 -8
- package/_types/chains/definitions/base.d.ts +8 -8
- package/_types/chains/definitions/baseGoerli.d.ts +8 -8
- package/_types/chains/definitions/baseSepolia.d.ts +8 -8
- package/_types/chains/definitions/celo.d.ts +20 -20
- package/_types/chains/definitions/celoAlfajores.d.ts +20 -20
- package/_types/chains/definitions/fraxtal.d.ts +8 -8
- package/_types/chains/definitions/fraxtalTestnet.d.ts +8 -8
- package/_types/chains/definitions/liskSepolia.d.ts +8 -8
- package/_types/chains/definitions/optimism.d.ts +8 -8
- package/_types/chains/definitions/optimismGoerli.d.ts +8 -8
- package/_types/chains/definitions/optimismSepolia.d.ts +8 -8
- package/_types/chains/definitions/pgn.d.ts +8 -8
- package/_types/chains/definitions/pgnTestnet.d.ts +8 -8
- package/_types/chains/definitions/playfiAlbireo.d.ts +3 -3
- package/_types/chains/definitions/rss3.d.ts +8 -8
- package/_types/chains/definitions/rss3Sepolia.d.ts +8 -8
- package/_types/chains/definitions/zkSync.d.ts +3 -3
- package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +3 -3
- package/_types/chains/definitions/zkSyncLocalNode.d.ts +3 -3
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +3 -3
- package/_types/chains/definitions/zkSyncTestnet.d.ts +3 -3
- package/_types/chains/definitions/zora.d.ts +8 -8
- package/_types/chains/definitions/zoraSepolia.d.ts +8 -8
- package/_types/chains/definitions/zoraTestnet.d.ts +8 -8
- package/_types/constants/bytes.d.ts +1 -0
- package/_types/constants/bytes.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/experimental/eip3074/invokers/getInvoker.d.ts +2 -2
- package/_types/experimental/eip3074/utils/signAuthMessage.d.ts +2 -2
- package/_types/experimental/eip3074/utils/signAuthMessage.d.ts.map +1 -1
- package/_types/experimental/erc6492/isErc6492Signature.d.ts +9 -0
- package/_types/experimental/erc6492/isErc6492Signature.d.ts.map +1 -0
- package/_types/experimental/erc6492/parseErc6492Signature.d.ts +38 -0
- package/_types/experimental/erc6492/parseErc6492Signature.d.ts.map +1 -0
- package/_types/experimental/erc6492/serializeErc6492Signature.d.ts +25 -0
- package/_types/experimental/erc6492/serializeErc6492Signature.d.ts.map +1 -0
- package/_types/experimental/index.d.ts +3 -0
- package/_types/experimental/index.d.ts.map +1 -1
- package/_types/index.d.ts +20 -4
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/chainConfig.d.ts +8 -8
- package/_types/op-stack/formatters.d.ts +8 -8
- package/_types/types/eip1193.d.ts +9 -7
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/transaction.d.ts +1 -1
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +4 -4
- package/_types/utils/signature/compactSignatureToSignature.d.ts +1 -1
- package/_types/utils/signature/{hexToCompactSignature.d.ts → parseCompactSignature.d.ts} +5 -5
- package/_types/utils/signature/parseCompactSignature.d.ts.map +1 -0
- package/_types/utils/signature/{hexToSignature.d.ts → parseSignature.d.ts} +4 -4
- package/_types/utils/signature/{hexToSignature.d.ts.map → parseSignature.d.ts.map} +1 -1
- package/_types/utils/signature/recoverTransactionAddress.d.ts +2 -2
- package/_types/utils/signature/recoverTransactionAddress.d.ts.map +1 -1
- package/_types/utils/signature/{compactSignatureToHex.d.ts → serializeCompactSignature.d.ts} +4 -4
- package/_types/utils/signature/serializeCompactSignature.d.ts.map +1 -0
- package/_types/utils/signature/{signatureToHex.d.ts → serializeSignature.d.ts} +6 -6
- package/_types/utils/signature/serializeSignature.d.ts.map +1 -0
- package/_types/zksync/chainConfig.d.ts +3 -3
- package/_types/zksync/formatters.d.ts +3 -3
- package/accounts/index.ts +7 -3
- package/accounts/utils/signMessage.ts +5 -5
- package/accounts/utils/signTypedData.ts +5 -5
- package/actions/public/verifyHash.ts +2 -2
- package/constants/bytes.ts +3 -0
- package/errors/version.ts +1 -1
- package/experimental/eip3074/invokers/getInvoker.ts +5 -5
- package/experimental/eip3074/utils/signAuthMessage.ts +5 -5
- package/experimental/erc6492/isErc6492Signature.ts +15 -0
- package/experimental/erc6492/parseErc6492Signature.ts +65 -0
- package/experimental/erc6492/serializeErc6492Signature.ts +42 -0
- package/experimental/index.ts +19 -0
- package/index.ts +30 -14
- package/package.json +1 -1
- package/types/eip1193.ts +13 -8
- package/types/transaction.ts +1 -1
- package/utils/signature/compactSignatureToSignature.ts +1 -1
- package/utils/signature/{hexToCompactSignature.ts → parseCompactSignature.ts} +4 -7
- package/utils/signature/{hexToSignature.ts → parseSignature.ts} +3 -3
- package/utils/signature/recoverTransactionAddress.ts +2 -2
- package/utils/signature/{compactSignatureToHex.ts → serializeCompactSignature.ts} +5 -3
- package/utils/signature/{signatureToHex.ts → serializeSignature.ts} +5 -8
- package/_cjs/utils/signature/compactSignatureToHex.js.map +0 -1
- package/_cjs/utils/signature/signatureToHex.js.map +0 -1
- package/_esm/utils/signature/compactSignatureToHex.js.map +0 -1
- package/_esm/utils/signature/hexToCompactSignature.js.map +0 -1
- package/_esm/utils/signature/signatureToHex.js.map +0 -1
- package/_types/utils/signature/compactSignatureToHex.d.ts.map +0 -1
- package/_types/utils/signature/hexToCompactSignature.d.ts.map +0 -1
- package/_types/utils/signature/signatureToHex.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# viem
|
2
2
|
|
3
|
+
## 2.10.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [`6e28131a8b9ab53ad1330c61df64d3b7fb799652`](https://github.com/wevm/viem/commit/6e28131a8b9ab53ad1330c61df64d3b7fb799652) Thanks [@jxom](https://github.com/jxom)! - Fixed types for `wallet_sendCalls`.
|
8
|
+
|
9
|
+
## 2.10.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- [#2209](https://github.com/wevm/viem/pull/2209) [`76a92bb97de9adede6d6d60c3aad2961d493045e`](https://github.com/wevm/viem/commit/76a92bb97de9adede6d6d60c3aad2961d493045e) Thanks [@wilsoncusack](https://github.com/wilsoncusack)! - **Experimental:** Added [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature utilities:
|
14
|
+
|
15
|
+
- `isErc6492Signature`
|
16
|
+
- `parseErc6492Signature`
|
17
|
+
- `serializeErc6492Signature`
|
18
|
+
|
19
|
+
- [#2209](https://github.com/wevm/viem/pull/2209) [`76a92bb97de9adede6d6d60c3aad2961d493045e`](https://github.com/wevm/viem/commit/76a92bb97de9adede6d6d60c3aad2961d493045e) Thanks [@wilsoncusack](https://github.com/wilsoncusack)! - Deprecated utilities (will be removed in v3):
|
20
|
+
|
21
|
+
- `hexToSignature` – use `parseSignature` instead.
|
22
|
+
- `hexToCompactSignature` – use `parseCompactSignature` instead.
|
23
|
+
- `compactSignatureToHex` – use `serializeCompactSignature` instead.
|
24
|
+
- `signatureToHex` – use `serializeSignature` instead.
|
25
|
+
|
3
26
|
## 2.9.32
|
4
27
|
|
5
28
|
### Patch Changes
|
package/_cjs/accounts/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.privateKeyToAddress = exports.publicKeyToAddress = exports.parseAccount = exports.signTypedData = exports.signTransaction = exports.signMessage = exports.signatureToHex = exports.sign = exports.toAccount = exports.privateKeyToAccount = exports.mnemonicToAccount = exports.hdKeyToAccount = exports.generatePrivateKey = exports.generateMnemonic = exports.traditionalChinese = exports.spanish = exports.simplifiedChinese = exports.korean = exports.japanese = exports.italian = exports.french = exports.english = exports.czech = exports.HDKey = void 0;
|
3
|
+
exports.privateKeyToAddress = exports.publicKeyToAddress = exports.parseAccount = exports.signTypedData = exports.signTransaction = exports.signMessage = exports.serializeSignature = exports.signatureToHex = exports.sign = exports.toAccount = exports.privateKeyToAccount = exports.mnemonicToAccount = exports.hdKeyToAccount = exports.generatePrivateKey = exports.generateMnemonic = exports.traditionalChinese = exports.spanish = exports.simplifiedChinese = exports.korean = exports.japanese = exports.italian = exports.french = exports.english = exports.czech = exports.HDKey = void 0;
|
4
4
|
var bip32_1 = require("@scure/bip32");
|
5
5
|
Object.defineProperty(exports, "HDKey", { enumerable: true, get: function () { return bip32_1.HDKey; } });
|
6
6
|
var czech_1 = require("@scure/bip39/wordlists/czech");
|
@@ -35,8 +35,9 @@ var toAccount_js_1 = require("./toAccount.js");
|
|
35
35
|
Object.defineProperty(exports, "toAccount", { enumerable: true, get: function () { return toAccount_js_1.toAccount; } });
|
36
36
|
var sign_js_1 = require("./utils/sign.js");
|
37
37
|
Object.defineProperty(exports, "sign", { enumerable: true, get: function () { return sign_js_1.sign; } });
|
38
|
-
var
|
39
|
-
Object.defineProperty(exports, "signatureToHex", { enumerable: true, get: function () { return
|
38
|
+
var serializeSignature_js_1 = require("../utils/signature/serializeSignature.js");
|
39
|
+
Object.defineProperty(exports, "signatureToHex", { enumerable: true, get: function () { return serializeSignature_js_1.serializeSignature; } });
|
40
|
+
Object.defineProperty(exports, "serializeSignature", { enumerable: true, get: function () { return serializeSignature_js_1.serializeSignature; } });
|
40
41
|
var signMessage_js_1 = require("./utils/signMessage.js");
|
41
42
|
Object.defineProperty(exports, "signMessage", { enumerable: true, get: function () { return signMessage_js_1.signMessage; } });
|
42
43
|
var signTransaction_js_1 = require("./utils/signTransaction.js");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"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AAA,QAAQ,OAAsB;AAEvC,6DAG8B;AAD5B,uHAAA,gBAAgB,OAAA;AAElB,iEAGgC;AAD9B,2HAAA,kBAAkB,OAAA;AAEpB,yDAG4B;AAD1B,mHAAA,cAAc,OAAA;AAEhB,+DAG+B;AAD7B,yHAAA,iBAAiB,OAAA;AAEnB,mEAGiC;AAD/B,6HAAA,mBAAmB,OAAA;AAErB,+CAAmE;AAAjC,yGAAA,SAAS,OAAA;AAW3C,2CAKwB;AADtB,+FAAA,IAAI,OAAA;AAEN,kFAOiD;AAH/C,uHAAA,kBAAkB,OAAkB;AAEpC,2HAAA,kBAAkB,OAAA;AAEpB,yDAK+B;AAD7B,6GAAA,WAAW,OAAA;AAEb,iEAKmC;AADjC,qHAAA,eAAe,OAAA;AAEjB,6DAKiC;AAD/B,iHAAA,aAAa,OAAA;AAEf,2DAGgC;AAD9B,+GAAA,YAAY,OAAA;AAEd,uEAGsC;AADpC,2HAAA,kBAAkB,OAAA;AAEpB,yEAGuC;AADrC,6HAAA,mBAAmB,OAAA"}
|
@@ -2,11 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.signMessage = void 0;
|
4
4
|
const hashMessage_js_1 = require("../../utils/signature/hashMessage.js");
|
5
|
-
const
|
5
|
+
const serializeSignature_js_1 = require("../../utils/signature/serializeSignature.js");
|
6
6
|
const sign_js_1 = require("./sign.js");
|
7
7
|
async function signMessage({ message, privateKey, }) {
|
8
8
|
const signature = await (0, sign_js_1.sign)({ hash: (0, hashMessage_js_1.hashMessage)(message), privateKey });
|
9
|
-
return (0,
|
9
|
+
return (0, serializeSignature_js_1.serializeSignature)(signature);
|
10
10
|
}
|
11
11
|
exports.signMessage = signMessage;
|
12
12
|
//# sourceMappingURL=signMessage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../accounts/utils/signMessage.ts"],"names":[],"mappings":";;;AAEA,yEAG6C;AAC7C
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../accounts/utils/signMessage.ts"],"names":[],"mappings":";;;AAEA,yEAG6C;AAC7C,uFAGoD;AAEpD,uCAAoD;AAuB7C,KAAK,UAAU,WAAW,CAAC,EAChC,OAAO,EACP,UAAU,GACY;IACtB,MAAM,SAAS,GAAG,MAAM,IAAA,cAAI,EAAC,EAAE,IAAI,EAAE,IAAA,4BAAW,EAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IACxE,OAAO,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;AACtC,CAAC;AAND,kCAMC"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.signTypedData = void 0;
|
4
4
|
const hashTypedData_js_1 = require("../../utils/signature/hashTypedData.js");
|
5
|
-
const
|
5
|
+
const serializeSignature_js_1 = require("../../utils/signature/serializeSignature.js");
|
6
6
|
const sign_js_1 = require("./sign.js");
|
7
7
|
async function signTypedData(parameters) {
|
8
8
|
const { privateKey, ...typedData } = parameters;
|
@@ -10,7 +10,7 @@ async function signTypedData(parameters) {
|
|
10
10
|
hash: (0, hashTypedData_js_1.hashTypedData)(typedData),
|
11
11
|
privateKey,
|
12
12
|
});
|
13
|
-
return (0,
|
13
|
+
return (0, serializeSignature_js_1.serializeSignature)(signature);
|
14
14
|
}
|
15
15
|
exports.signTypedData = signTypedData;
|
16
16
|
//# sourceMappingURL=signTypedData.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../accounts/utils/signTypedData.ts"],"names":[],"mappings":";;;AAIA,6EAG+C;AAC/C
|
1
|
+
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../accounts/utils/signTypedData.ts"],"names":[],"mappings":";;;AAIA,6EAG+C;AAC/C,uFAGoD;AAGpD,uCAAoD;AAwB7C,KAAK,UAAU,aAAa,CAIjC,UAA2D;IAE3D,MAAM,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,GAChC,UAAgD,CAAA;IAClD,MAAM,SAAS,GAAG,MAAM,IAAA,cAAI,EAAC;QAC3B,IAAI,EAAE,IAAA,gCAAa,EAAC,SAAS,CAAC;QAC9B,UAAU;KACX,CAAC,CAAA;IACF,OAAO,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;AACtC,CAAC;AAbD,sCAaC"}
|
@@ -9,14 +9,14 @@ const isBytesEqual_js_1 = require("../../utils/data/isBytesEqual.js");
|
|
9
9
|
const isHex_js_1 = require("../../utils/data/isHex.js");
|
10
10
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
11
11
|
const getAction_js_1 = require("../../utils/getAction.js");
|
12
|
-
const
|
12
|
+
const serializeSignature_js_1 = require("../../utils/signature/serializeSignature.js");
|
13
13
|
const call_js_1 = require("./call.js");
|
14
14
|
async function verifyHash(client, { address, hash, signature, ...callRequest }) {
|
15
15
|
const signatureHex = (() => {
|
16
16
|
if ((0, isHex_js_1.isHex)(signature))
|
17
17
|
return signature;
|
18
18
|
if (typeof signature === 'object' && 'r' in signature && 's' in signature)
|
19
|
-
return (0,
|
19
|
+
return (0, serializeSignature_js_1.serializeSignature)(signature);
|
20
20
|
return (0, toHex_js_1.bytesToHex)(signature);
|
21
21
|
})();
|
22
22
|
try {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"verifyHash.js","sourceRoot":"","sources":["../../../actions/public/verifyHash.ts"],"names":[],"mappings":";;;AAIA,qDAAwE;AACxE,+DAAkF;AAClF,0DAA6D;AAI7D,6EAG4C;AAC5C,sEAGyC;AACzC,wDAAsE;AACtE,4DAA+E;AAC/E,2DAAoD;AACpD
|
1
|
+
{"version":3,"file":"verifyHash.js","sourceRoot":"","sources":["../../../actions/public/verifyHash.ts"],"names":[],"mappings":";;;AAIA,qDAAwE;AACxE,+DAAkF;AAClF,0DAA6D;AAI7D,6EAG4C;AAC5C,sEAGyC;AACzC,wDAAsE;AACtE,4DAA+E;AAC/E,2DAAoD;AACpD,uFAAgF;AAChF,uCAAyE;AA+BlE,KAAK,UAAU,UAAU,CAC9B,MAAiC,EACjC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,WAAW,EAAwB;IAElE,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;QACzB,IAAI,IAAA,gBAAK,EAAC,SAAS,CAAC;YAAE,OAAO,SAAS,CAAA;QACtC,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,IAAI,SAAS;YACvE,OAAO,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;QACtC,OAAO,IAAA,qBAAU,EAAC,SAAS,CAAC,CAAA;IAC9B,CAAC,CAAC,EAAE,CAAA;IAEJ,IAAI,CAAC;QACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,wBAAS,EAC9B,MAAM,EACN,cAAI,EACJ,MAAM,CACP,CAAC;YACA,IAAI,EAAE,IAAA,sCAAgB,EAAC;gBACrB,GAAG,EAAE,wCAA8B;gBACnC,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,YAAY,CAAC;gBACnC,QAAQ,EAAE,kDAAmC;aAC9C,CAAC;YACF,GAAG,WAAW;SACc,CAAC,CAAA;QAE/B,OAAO,IAAA,8BAAY,EAAC,IAAI,IAAI,KAAK,EAAE,KAAK,CAAC,CAAA;IAC3C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,gCAAkB,EAAE,CAAC;YAIxC,OAAO,KAAK,CAAA;QACd,CAAC;QAED,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC;AApCD,gCAoCC"}
|
package/_cjs/constants/bytes.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.zeroHash = void 0;
|
3
|
+
exports.zeroHash = exports.erc6492MagicBytes = void 0;
|
4
|
+
exports.erc6492MagicBytes = '0x6492649264926492649264926492649264926492649264926492649264926492';
|
4
5
|
exports.zeroHash = '0x0000000000000000000000000000000000000000000000000000000000000000';
|
5
6
|
//# sourceMappingURL=bytes.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bytes.js","sourceRoot":"","sources":["../../constants/bytes.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GACnB,oEAA6E,CAAA"}
|
1
|
+
{"version":3,"file":"bytes.js","sourceRoot":"","sources":["../../constants/bytes.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAC5B,oEAA6E,CAAA;AAElE,QAAA,QAAQ,GACnB,oEAA6E,CAAA"}
|
package/_cjs/errors/version.js
CHANGED
@@ -7,7 +7,7 @@ const accounts_js_1 = require("../../../utils/accounts.js");
|
|
7
7
|
const isAddressEqual_js_1 = require("../../../utils/address/isAddressEqual.js");
|
8
8
|
const getAction_js_1 = require("../../../utils/getAction.js");
|
9
9
|
const keccak256_js_1 = require("../../../utils/hash/keccak256.js");
|
10
|
-
const
|
10
|
+
const parseSignature_js_1 = require("../../../utils/signature/parseSignature.js");
|
11
11
|
const signAuthMessage_js_1 = require("../actions/signAuthMessage.js");
|
12
12
|
const abis_js_1 = require("../constants/abis.js");
|
13
13
|
function getInvoker(parameters) {
|
@@ -23,7 +23,7 @@ function getInvoker(parameters) {
|
|
23
23
|
client,
|
24
24
|
invokerAddress: address,
|
25
25
|
});
|
26
|
-
const { r, s, yParity } = (0,
|
26
|
+
const { r, s, yParity } = (0, parseSignature_js_1.parseSignature)(signature);
|
27
27
|
return (0, getAction_js_1.getAction)(client, writeContract_js_1.writeContract, 'writeContract')({
|
28
28
|
abi: abis_js_1.invokerAbi,
|
29
29
|
address,
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.signAuthMessage = void 0;
|
4
4
|
const sign_js_1 = require("../../../accounts/utils/sign.js");
|
5
5
|
const keccak256_js_1 = require("../../../utils/hash/keccak256.js");
|
6
|
-
const
|
6
|
+
const serializeSignature_js_1 = require("../../../utils/signature/serializeSignature.js");
|
7
7
|
const toAuthMessage_js_1 = require("./toAuthMessage.js");
|
8
8
|
async function signAuthMessage(parameters) {
|
9
9
|
const { privateKey } = parameters;
|
@@ -11,7 +11,7 @@ async function signAuthMessage(parameters) {
|
|
11
11
|
hash: (0, keccak256_js_1.keccak256)((0, toAuthMessage_js_1.toAuthMessage)(parameters)),
|
12
12
|
privateKey,
|
13
13
|
});
|
14
|
-
return (0,
|
14
|
+
return (0, serializeSignature_js_1.serializeSignature)(signature);
|
15
15
|
}
|
16
16
|
exports.signAuthMessage = signAuthMessage;
|
17
17
|
//# sourceMappingURL=signAuthMessage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signAuthMessage.js","sourceRoot":"","sources":["../../../../experimental/eip3074/utils/signAuthMessage.ts"],"names":[],"mappings":";;;AAAA,6DAA0E;AAG1E,mEAA4D;AAC5D,
|
1
|
+
{"version":3,"file":"signAuthMessage.js","sourceRoot":"","sources":["../../../../experimental/eip3074/utils/signAuthMessage.ts"],"names":[],"mappings":";;;AAAA,6DAA0E;AAG1E,mEAA4D;AAC5D,0FAGuD;AACvD,yDAI2B;AAkBpB,KAAK,UAAU,eAAe,CACnC,UAAqC;IAErC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAA;IACjC,MAAM,SAAS,GAAG,MAAM,IAAA,cAAI,EAAC;QAC3B,IAAI,EAAE,IAAA,wBAAS,EAAC,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;QAC1C,UAAU;KACX,CAAC,CAAA;IACF,OAAO,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;AACtC,CAAC;AATD,0CASC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isErc6492Signature = void 0;
|
4
|
+
const bytes_js_1 = require("../../constants/bytes.js");
|
5
|
+
const slice_js_1 = require("../../utils/data/slice.js");
|
6
|
+
function isErc6492Signature(signature) {
|
7
|
+
return (0, slice_js_1.sliceHex)(signature, -32) === bytes_js_1.erc6492MagicBytes;
|
8
|
+
}
|
9
|
+
exports.isErc6492Signature = isErc6492Signature;
|
10
|
+
//# sourceMappingURL=isErc6492Signature.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"isErc6492Signature.js","sourceRoot":"","sources":["../../../experimental/erc6492/isErc6492Signature.ts"],"names":[],"mappings":";;;AAAA,uDAA4D;AAG5D,wDAA4E;AAO5E,SAAgB,kBAAkB,CAChC,SAAuC;IAEvC,OAAO,IAAA,mBAAQ,EAAC,SAAS,EAAE,CAAC,EAAE,CAAC,KAAK,4BAAiB,CAAA;AACvD,CAAC;AAJD,gDAIC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.parseErc6492Signature = void 0;
|
4
|
+
const decodeAbiParameters_js_1 = require("../../utils/abi/decodeAbiParameters.js");
|
5
|
+
const isErc6492Signature_js_1 = require("./isErc6492Signature.js");
|
6
|
+
function parseErc6492Signature(signature) {
|
7
|
+
if (!(0, isErc6492Signature_js_1.isErc6492Signature)(signature))
|
8
|
+
return { signature };
|
9
|
+
const [address, data, signature_] = (0, decodeAbiParameters_js_1.decodeAbiParameters)([{ type: 'address' }, { type: 'bytes' }, { type: 'bytes' }], signature);
|
10
|
+
return { address, data, signature: signature_ };
|
11
|
+
}
|
12
|
+
exports.parseErc6492Signature = parseErc6492Signature;
|
13
|
+
//# sourceMappingURL=parseErc6492Signature.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parseErc6492Signature.js","sourceRoot":"","sources":["../../../experimental/erc6492/parseErc6492Signature.ts"],"names":[],"mappings":";;;AAIA,mFAG+C;AAC/C,mEAGgC;AA2ChC,SAAgB,qBAAqB,CACnC,SAA0C;IAE1C,IAAI,CAAC,IAAA,0CAAkB,EAAC,SAAS,CAAC;QAAE,OAAO,EAAE,SAAS,EAAE,CAAA;IAExD,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,IAAA,4CAAmB,EACrD,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAC3D,SAAS,CACV,CAAA;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA;AACjD,CAAC;AAVD,sDAUC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.serializeErc6492Signature = void 0;
|
4
|
+
const bytes_js_1 = require("../../constants/bytes.js");
|
5
|
+
const encodeAbiParameters_js_1 = require("../../utils/abi/encodeAbiParameters.js");
|
6
|
+
const concat_js_1 = require("../../utils/data/concat.js");
|
7
|
+
function serializeErc6492Signature(parameters) {
|
8
|
+
const { address, data, signature } = parameters;
|
9
|
+
return (0, concat_js_1.concatHex)([
|
10
|
+
(0, encodeAbiParameters_js_1.encodeAbiParameters)([{ type: 'address' }, { type: 'bytes' }, { type: 'bytes' }], [address, data, signature]),
|
11
|
+
bytes_js_1.erc6492MagicBytes,
|
12
|
+
]);
|
13
|
+
}
|
14
|
+
exports.serializeErc6492Signature = serializeErc6492Signature;
|
15
|
+
//# sourceMappingURL=serializeErc6492Signature.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"serializeErc6492Signature.js","sourceRoot":"","sources":["../../../experimental/erc6492/serializeErc6492Signature.ts"],"names":[],"mappings":";;;AACA,uDAA4D;AAG5D,mFAA4E;AAC5E,0DAAsD;AAyBtD,SAAgB,yBAAyB,CACvC,UAA+C;IAE/C,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,UAAU,CAAA;IAC/C,OAAO,IAAA,qBAAS,EAAC;QACf,IAAA,4CAAmB,EACjB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAC3D,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAC3B;QACD,4BAAiB;KAClB,CAAC,CAAA;AACJ,CAAC;AAXD,8DAWC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.walletActionsEip5792 = exports.writeContracts = exports.showCallsStatus = exports.getCallsStatus = exports.sendCalls = exports.getCapabilities = exports.defineInvokerCoder = exports.batchInvokerCoder = exports.getInvoker = exports.walletActionsEip3074 = exports.verifyAuthMessage = exports.recoverAuthMessageAddress = exports.signAuthMessage = void 0;
|
3
|
+
exports.serializeErc6492Signature = exports.isErc6492Signature = exports.parseErc6492Signature = exports.walletActionsEip5792 = exports.writeContracts = exports.showCallsStatus = exports.getCallsStatus = exports.sendCalls = exports.getCapabilities = exports.defineInvokerCoder = exports.batchInvokerCoder = exports.getInvoker = exports.walletActionsEip3074 = exports.verifyAuthMessage = exports.recoverAuthMessageAddress = exports.signAuthMessage = void 0;
|
4
4
|
var signAuthMessage_js_1 = require("./eip3074/actions/signAuthMessage.js");
|
5
5
|
Object.defineProperty(exports, "signAuthMessage", { enumerable: true, get: function () { return signAuthMessage_js_1.signAuthMessage; } });
|
6
6
|
var recoverAuthMessageAddress_js_1 = require("./eip3074/utils/recoverAuthMessageAddress.js");
|
@@ -27,4 +27,10 @@ var writeContracts_js_1 = require("./eip5792/actions/writeContracts.js");
|
|
27
27
|
Object.defineProperty(exports, "writeContracts", { enumerable: true, get: function () { return writeContracts_js_1.writeContracts; } });
|
28
28
|
var eip5792_js_1 = require("./eip5792/decorators/eip5792.js");
|
29
29
|
Object.defineProperty(exports, "walletActionsEip5792", { enumerable: true, get: function () { return eip5792_js_1.walletActionsEip5792; } });
|
30
|
+
var parseErc6492Signature_js_1 = require("./erc6492/parseErc6492Signature.js");
|
31
|
+
Object.defineProperty(exports, "parseErc6492Signature", { enumerable: true, get: function () { return parseErc6492Signature_js_1.parseErc6492Signature; } });
|
32
|
+
var isErc6492Signature_js_1 = require("./erc6492/isErc6492Signature.js");
|
33
|
+
Object.defineProperty(exports, "isErc6492Signature", { enumerable: true, get: function () { return isErc6492Signature_js_1.isErc6492Signature; } });
|
34
|
+
var serializeErc6492Signature_js_1 = require("./erc6492/serializeErc6492Signature.js");
|
35
|
+
Object.defineProperty(exports, "serializeErc6492Signature", { enumerable: true, get: function () { return serializeErc6492Signature_js_1.serializeErc6492Signature; } });
|
30
36
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":";;;AAAA,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,6FAKqD;AADnD,yIAAA,yBAAyB,OAAA;AAE3B,6EAK6C;AAD3C,yHAAA,iBAAiB,OAAA;AAEnB,8DAGwC;AADtC,kHAAA,oBAAoB,OAAA;AAEtB,kEAUyC;AADvC,2GAAA,UAAU,OAAA;AAEZ,uFAGuD;AADrD,yHAAA,iBAAiB,OAAA;AAEnB,yFAKwD;AADtD,2HAAA,kBAAkB,OAAA;AAGpB,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,+DAKuC;AADrC,yGAAA,SAAS,OAAA;AAEX,yEAK4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,yEAK4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,8DAGwC;AADtC,kHAAA,oBAAoB,OAAA"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":";;;AAAA,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,6FAKqD;AADnD,yIAAA,yBAAyB,OAAA;AAE3B,6EAK6C;AAD3C,yHAAA,iBAAiB,OAAA;AAEnB,8DAGwC;AADtC,kHAAA,oBAAoB,OAAA;AAEtB,kEAUyC;AADvC,2GAAA,UAAU,OAAA;AAEZ,uFAGuD;AADrD,yHAAA,iBAAiB,OAAA;AAEnB,yFAKwD;AADtD,2HAAA,kBAAkB,OAAA;AAGpB,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,+DAKuC;AADrC,yGAAA,SAAS,OAAA;AAEX,yEAK4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,2EAK6C;AAD3C,qHAAA,eAAe,OAAA;AAEjB,yEAK4C;AAD1C,mHAAA,cAAc,OAAA;AAEhB,8DAGwC;AADtC,kHAAA,oBAAoB,OAAA;AAGtB,+EAK2C;AADzC,iIAAA,qBAAqB,OAAA;AAEvB,yEAKwC;AADtC,2HAAA,kBAAkB,OAAA;AAEpB,uFAK+C;AAD7C,yIAAA,yBAAyB,OAAA"}
|
package/_cjs/index.js
CHANGED
@@ -5,9 +5,9 @@ exports.maxUint216 = exports.maxUint208 = exports.maxUint200 = exports.maxUint19
|
|
5
5
|
exports.AbiErrorSignatureNotFoundError = exports.AbiErrorNotFoundError = exports.AbiErrorInputsNotFoundError = exports.AbiEncodingBytesSizeMismatchError = exports.AbiEncodingLengthMismatchError = exports.AbiEncodingArrayLengthMismatchError = exports.AbiDecodingZeroDataError = exports.AbiDecodingDataSizeTooSmallError = exports.AbiDecodingDataSizeInvalidError = exports.AbiConstructorParamsNotFoundError = exports.AbiConstructorNotFoundError = exports.presignMessagePrefix = exports.zeroHash = exports.minInt256 = exports.minInt248 = exports.minInt240 = exports.minInt232 = exports.minInt224 = exports.minInt216 = exports.minInt208 = exports.minInt200 = exports.minInt192 = exports.minInt184 = exports.minInt176 = exports.minInt168 = exports.minInt160 = exports.minInt152 = exports.minInt144 = exports.minInt136 = exports.minInt128 = exports.minInt120 = exports.minInt112 = exports.minInt104 = exports.minInt96 = exports.minInt88 = exports.minInt80 = exports.minInt72 = exports.minInt64 = exports.minInt56 = exports.minInt48 = exports.minInt40 = exports.minInt32 = exports.minInt24 = exports.minInt16 = exports.minInt8 = exports.maxUint256 = exports.maxUint248 = exports.maxUint240 = exports.maxUint232 = exports.maxUint224 = void 0;
|
6
6
|
exports.InvalidChainIdError = exports.ClientChainNotConfiguredError = exports.ChainNotFoundError = exports.ChainMismatchError = exports.ChainDoesNotSupportContract = exports.UserRejectedRequestError = exports.UnsupportedProviderMethodError = exports.UnknownRpcError = exports.UnauthorizedProviderError = exports.TransactionRejectedRpcError = exports.SwitchChainError = exports.RpcError = exports.ResourceUnavailableRpcError = exports.ResourceNotFoundRpcError = exports.ProviderRpcError = exports.ProviderDisconnectedError = exports.ParseRpcError = exports.MethodNotSupportedRpcError = exports.MethodNotFoundRpcError = exports.LimitExceededRpcError = exports.JsonRpcVersionUnsupportedError = exports.InvalidRequestRpcError = exports.InvalidParamsRpcError = exports.InvalidInputRpcError = exports.InternalRpcError = exports.ChainDisconnectedError = exports.MaxFeePerGasTooLowError = exports.Eip1559FeesNotSupportedError = exports.BaseFeeScalarError = exports.RawContractError = exports.ContractFunctionZeroDataError = exports.ContractFunctionRevertedError = exports.ContractFunctionExecutionError = exports.CallExecutionError = exports.BlockNotFoundError = exports.BaseError = exports.UnsupportedPackedAbiType = exports.InvalidDefinitionTypeError = exports.InvalidArrayError = exports.InvalidAbiEncodingTypeError = exports.InvalidAbiDecodingTypeError = exports.DecodeLogTopicsMismatch = exports.DecodeLogDataMismatch = exports.BytesSizeMismatchError = exports.AbiFunctionSignatureNotFoundError = exports.AbiFunctionOutputsNotFoundError = exports.AbiFunctionNotFoundError = exports.AbiEventSignatureNotFoundError = exports.AbiEventSignatureEmptyTopicsError = exports.AbiEventNotFoundError = void 0;
|
7
7
|
exports.decodeErrorResult = exports.decodeDeployData = exports.decodeAbiParameters = exports.formatLog = exports.formatBlock = exports.defineBlock = exports.namehash = exports.labelhash = exports.StateAssignmentConflictError = exports.AccountStateConflictError = exports.UrlRequiredError = exports.SliceOffsetOutOfBoundsError = exports.SizeExceedsPaddingSizeError = exports.WaitForTransactionReceiptTimeoutError = exports.TransactionReceiptNotFoundError = exports.TransactionNotFoundError = exports.TransactionExecutionError = exports.InvalidStorageKeySizeError = exports.InvalidSerializedTransactionTypeError = exports.InvalidSerializedTransactionError = exports.InvalidSerializableTransactionError = exports.InvalidLegacyVError = exports.FeeConflictError = exports.InvalidAddressError = exports.WebSocketRequestError = exports.TimeoutError = exports.RpcRequestError = exports.HttpRequestError = exports.FilterTypeNotSupportedError = exports.UnknownNodeError = exports.TransactionTypeNotSupportedError = exports.TipAboveFeeCapError = exports.NonceTooLowError = exports.NonceTooHighError = exports.NonceMaxValueError = exports.IntrinsicGasTooLowError = exports.IntrinsicGasTooHighError = exports.InsufficientFundsError = exports.FeeCapTooLowError = exports.FeeCapTooHighError = exports.ExecutionRevertedError = exports.EstimateGasExecutionError = exports.EnsAvatarUnsupportedNamespaceError = exports.EnsAvatarInvalidNftUriError = exports.EnsAvatarUriResolutionError = exports.SizeOverflowError = exports.InvalidHexValueError = exports.InvalidHexBooleanError = exports.IntegerOutOfRangeError = exports.InvalidBytesBooleanError = void 0;
|
8
|
-
exports.
|
9
|
-
exports.
|
10
|
-
exports.getTypesForEIP712Domain = exports.domainSeparator = exports.validateTypedData = exports.trim = exports.stringify = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = exports.serializeTransaction = exports.serializeAccessList = exports.parseUnits = exports.parseTransaction = exports.parseGwei = exports.parseEther = exports.padHex = exports.padBytes = exports.pad = exports.ripemd160 = exports.sha256 = exports.keccak256 = exports.isHex = exports.isHash = exports.isBytes = exports.isAddressEqual = exports.isAddress = exports.hashMessage = exports.toFunctionHash = exports.toEventHash = exports.getFunctionSignature = exports.toFunctionSignature = exports.getEventSignature = exports.toEventSignature = exports.getFunctionSelector = exports.toFunctionSelector = exports.getEventSelector = void 0;
|
8
|
+
exports.assertTransactionEIP2930 = exports.assertTransactionEIP1559 = exports.assertRequest = exports.verifyTypedData = exports.verifyMessage = exports.toRlp = exports.hexToRlp = exports.bytesToRlp = exports.serializeSignature = exports.signatureToHex = exports.serializeCompactSignature = exports.compactSignatureToHex = exports.signatureToCompactSignature = exports.recoverTypedDataAddress = exports.recoverTransactionAddress = exports.recoverPublicKey = exports.recoverMessageAddress = exports.recoverAddress = exports.parseSignature = exports.hexToSignature = exports.parseCompactSignature = exports.hexToCompactSignature = exports.compactSignatureToSignature = exports.hashTypedData = exports.hashDomain = exports.getTransactionType = exports.getSerializedTransactionType = exports.getCreateAddress = exports.getCreate2Address = exports.getContractAddress = exports.getAbiItem = exports.rpcTransactionType = exports.formatTransactionRequest = exports.defineTransactionRequest = exports.formatTransactionReceipt = exports.defineTransactionReceipt = exports.transactionType = exports.formatTransaction = exports.defineTransaction = exports.parseEventLogs = exports.encodeFunctionResult = exports.prepareEncodeFunctionData = exports.encodeFunctionData = exports.encodeEventTopics = exports.encodeErrorResult = exports.encodeDeployData = exports.encodeAbiParameters = exports.decodeFunctionResult = exports.decodeFunctionData = exports.decodeEventLog = void 0;
|
9
|
+
exports.fromRlp = exports.hexToString = exports.hexToNumber = exports.hexToBool = exports.hexToBigInt = exports.fromHex = exports.formatUnits = exports.formatGwei = exports.formatEther = exports.withTimeout = exports.withRetry = exports.encodePacked = exports.getChainContractAddress = exports.extractChain = exports.defineChain = exports.assertCurrentChain = exports.concatHex = exports.concatBytes = exports.concat = exports.setupKzg = exports.defineKzg = exports.toBlobs = exports.toBlobSidecars = exports.fromBlobs = exports.blobsToProofs = exports.sidecarsToVersionedHashes = exports.commitmentsToVersionedHashes = exports.commitmentToVersionedHash = exports.blobsToCommitments = exports.offchainLookupSignature = exports.offchainLookupAbiItem = exports.offchainLookup = exports.ccipFetch = exports.ccipRequest = exports.fromBytes = exports.bytesToString = exports.bytesToNumber = exports.bytesToBool = exports.bytesToBigInt = exports.toHex = exports.stringToHex = exports.numberToHex = exports.bytesToHex = exports.boolToHex = exports.toBytes = exports.stringToBytes = exports.numberToBytes = exports.hexToBytes = exports.boolToBytes = exports.assertTransactionLegacy = void 0;
|
10
|
+
exports.getTypesForEIP712Domain = exports.domainSeparator = exports.validateTypedData = exports.trim = exports.stringify = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = exports.serializeTransaction = exports.serializeAccessList = exports.parseUnits = exports.parseTransaction = exports.parseGwei = exports.parseEther = exports.padHex = exports.padBytes = exports.pad = exports.ripemd160 = exports.sha256 = exports.keccak256 = exports.isHex = exports.isHash = exports.isBytes = exports.isAddressEqual = exports.isAddress = exports.hashMessage = exports.toFunctionHash = exports.toEventHash = exports.getFunctionSignature = exports.toFunctionSignature = exports.getEventSignature = exports.toEventSignature = exports.getFunctionSelector = exports.toFunctionSelector = exports.getEventSelector = exports.toEventSelector = exports.getContractError = exports.getAddress = exports.checksumAddress = void 0;
|
11
11
|
var abitype_1 = require("abitype");
|
12
12
|
Object.defineProperty(exports, "CircularReferenceError", { enumerable: true, get: function () { return abitype_1.CircularReferenceError; } });
|
13
13
|
Object.defineProperty(exports, "InvalidAbiParameterError", { enumerable: true, get: function () { return abitype_1.InvalidAbiParameterError; } });
|
@@ -351,10 +351,12 @@ Object.defineProperty(exports, "hashDomain", { enumerable: true, get: function (
|
|
351
351
|
Object.defineProperty(exports, "hashTypedData", { enumerable: true, get: function () { return hashTypedData_js_1.hashTypedData; } });
|
352
352
|
var compactSignatureToSignature_js_1 = require("./utils/signature/compactSignatureToSignature.js");
|
353
353
|
Object.defineProperty(exports, "compactSignatureToSignature", { enumerable: true, get: function () { return compactSignatureToSignature_js_1.compactSignatureToSignature; } });
|
354
|
-
var
|
355
|
-
Object.defineProperty(exports, "hexToCompactSignature", { enumerable: true, get: function () { return
|
356
|
-
|
357
|
-
|
354
|
+
var parseCompactSignature_js_1 = require("./utils/signature/parseCompactSignature.js");
|
355
|
+
Object.defineProperty(exports, "hexToCompactSignature", { enumerable: true, get: function () { return parseCompactSignature_js_1.parseCompactSignature; } });
|
356
|
+
Object.defineProperty(exports, "parseCompactSignature", { enumerable: true, get: function () { return parseCompactSignature_js_1.parseCompactSignature; } });
|
357
|
+
var parseSignature_js_1 = require("./utils/signature/parseSignature.js");
|
358
|
+
Object.defineProperty(exports, "hexToSignature", { enumerable: true, get: function () { return parseSignature_js_1.parseSignature; } });
|
359
|
+
Object.defineProperty(exports, "parseSignature", { enumerable: true, get: function () { return parseSignature_js_1.parseSignature; } });
|
358
360
|
var recoverAddress_js_1 = require("./utils/signature/recoverAddress.js");
|
359
361
|
Object.defineProperty(exports, "recoverAddress", { enumerable: true, get: function () { return recoverAddress_js_1.recoverAddress; } });
|
360
362
|
var recoverMessageAddress_js_1 = require("./utils/signature/recoverMessageAddress.js");
|
@@ -367,10 +369,12 @@ var recoverTypedDataAddress_js_1 = require("./utils/signature/recoverTypedDataAd
|
|
367
369
|
Object.defineProperty(exports, "recoverTypedDataAddress", { enumerable: true, get: function () { return recoverTypedDataAddress_js_1.recoverTypedDataAddress; } });
|
368
370
|
var signatureToCompactSignature_js_1 = require("./utils/signature/signatureToCompactSignature.js");
|
369
371
|
Object.defineProperty(exports, "signatureToCompactSignature", { enumerable: true, get: function () { return signatureToCompactSignature_js_1.signatureToCompactSignature; } });
|
370
|
-
var
|
371
|
-
Object.defineProperty(exports, "compactSignatureToHex", { enumerable: true, get: function () { return
|
372
|
-
|
373
|
-
|
372
|
+
var serializeCompactSignature_js_1 = require("./utils/signature/serializeCompactSignature.js");
|
373
|
+
Object.defineProperty(exports, "compactSignatureToHex", { enumerable: true, get: function () { return serializeCompactSignature_js_1.serializeCompactSignature; } });
|
374
|
+
Object.defineProperty(exports, "serializeCompactSignature", { enumerable: true, get: function () { return serializeCompactSignature_js_1.serializeCompactSignature; } });
|
375
|
+
var serializeSignature_js_1 = require("./utils/signature/serializeSignature.js");
|
376
|
+
Object.defineProperty(exports, "signatureToHex", { enumerable: true, get: function () { return serializeSignature_js_1.serializeSignature; } });
|
377
|
+
Object.defineProperty(exports, "serializeSignature", { enumerable: true, get: function () { return serializeSignature_js_1.serializeSignature; } });
|
374
378
|
var toRlp_js_1 = require("./utils/encoding/toRlp.js");
|
375
379
|
Object.defineProperty(exports, "bytesToRlp", { enumerable: true, get: function () { return toRlp_js_1.bytesToRlp; } });
|
376
380
|
Object.defineProperty(exports, "hexToRlp", { enumerable: true, get: function () { return toRlp_js_1.hexToRlp; } });
|
package/_cjs/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,mCAoCgB;AAlBd,iHAAA,sBAAsB,OAAA;AACtB,mHAAA,wBAAwB,OAAA;AACxB,oHAAA,yBAAyB,OAAA;AACzB,8GAAA,mBAAmB,OAAA;AACnB,uHAAA,4BAA4B,OAAA;AAC5B,uHAAA,4BAA4B,OAAA;AAC5B,+GAAA,oBAAoB,OAAA;AACpB,gHAAA,qBAAqB,OAAA;AACrB,kHAAA,uBAAuB,OAAA;AACvB,gHAAA,qBAAqB,OAAA;AACrB,sHAAA,2BAA2B,OAAA;AAC3B,wHAAA,6BAA6B,OAAA;AAC7B,2GAAA,gBAAgB,OAAA;AAChB,gHAAA,qBAAqB,OAAA;AACrB,mGAAA,QAAQ,OAAA;AACR,uGAAA,YAAY,OAAA;AACZ,4GAAA,iBAAiB,OAAA;AACjB,6GAAA,kBAAkB,OAAA;AAGpB,2DAKiC;AAJ/B,6GAAA,WAAW,OAAA;AAgbb,6DAOkC;AAFhC,+GAAA,YAAY,OAAA;AACZ,4GAAA,SAAS,OAAA;AAEX,4DAKuC;AADrC,mGAAA,MAAM,OAAA;AAER,gEAKyC;AADvC,uGAAA,QAAQ,OAAA;AAEV,wDAKqC;AADnC,+FAAA,IAAI,OAAA;AAEN,y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A,SAAS,OAAA;AAC3C,8CAQ4B;AAH1B,6FAAA,GAAG,OAAA;AACH,kGAAA,QAAQ,OAAA;AACR,gGAAA,MAAM,OAAA;AAER,4DAGmC;AADjC,2GAAA,UAAU,OAAA;AAEZ,0DAA8E;AAA5C,yGAAA,SAAS,OAAA;AAC3C,+EAIgD;AAD9C,uHAAA,gBAAgB,OAAA;AAElB,4DAGmC;AADjC,2GAAA,UAAU,OAAA;AAEZ,qFAGmD;AADjD,6HAAA,mBAAmB,OAAA;AAErB,uFAKoD;AAJlD,+HAAA,oBAAoB,OAAA;AAKtB,gDAA+D;AAAlC,+FAAA,IAAI,OAAA;AACjC,kDAO8B;AAH5B,iGAAA,KAAK,OAAA;AACL,sGAAA,UAAU,OAAA;AACV,oGAAA,QAAQ,OAAA;AAEV,qDAAyE;AAAvC,yGAAA,SAAS,OAAA;AAC3C,gDAI6B;AAD3B,+FAAA,IAAI,OAAA;AAEN,qDAO6B;AAH3B,iHAAA,iBAAiB,OAAA;AACjB,+GAAA,eAAe,OAAA;AACf,uHAAA,uBAAuB,OAAA"}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.parseCompactSignature = void 0;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
|
-
const toHex_js_1 = require("
|
6
|
-
function
|
5
|
+
const toHex_js_1 = require("../encoding/toHex.js");
|
6
|
+
function parseCompactSignature(signatureHex) {
|
7
7
|
const { r, s } = secp256k1_1.secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
|
8
8
|
return {
|
9
9
|
r: (0, toHex_js_1.numberToHex)(r, { size: 32 }),
|
10
10
|
yParityAndS: (0, toHex_js_1.numberToHex)(s, { size: 32 }),
|
11
11
|
};
|
12
12
|
}
|
13
|
-
exports.
|
14
|
-
//# sourceMappingURL=
|
13
|
+
exports.parseCompactSignature = parseCompactSignature;
|
14
|
+
//# sourceMappingURL=parseCompactSignature.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"parseCompactSignature.js","sourceRoot":"","sources":["../../../utils/signature/parseCompactSignature.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAInD,mDAA6E;AAc7E,SAAgB,qBAAqB,CAAC,YAAiB;IACrD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,qBAAS,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAA;IAC5E,OAAO;QACL,CAAC,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QAC/B,WAAW,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;KAC1C,CAAA;AACH,CAAC;AAND,sDAMC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.parseSignature = void 0;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
5
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
6
|
-
function
|
6
|
+
function parseSignature(signatureHex) {
|
7
7
|
const { r, s } = secp256k1_1.secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
|
8
8
|
const yParityOrV = Number(`0x${signatureHex.slice(130)}`);
|
9
9
|
const [v, yParity] = (() => {
|
@@ -28,5 +28,5 @@ function hexToSignature(signatureHex) {
|
|
28
28
|
yParity,
|
29
29
|
};
|
30
30
|
}
|
31
|
-
exports.
|
32
|
-
//# sourceMappingURL=
|
31
|
+
exports.parseSignature = parseSignature;
|
32
|
+
//# sourceMappingURL=parseSignature.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"parseSignature.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AAE,CAAC;QAC/B,OAAO;KACY,CAAA;AACvB,CAAC;AAtBD,wCAsBC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.serializeCompactSignature = void 0;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
5
|
const fromHex_js_1 = require("../encoding/fromHex.js");
|
6
|
-
function
|
6
|
+
function serializeCompactSignature({ r, yParityAndS, }) {
|
7
7
|
return `0x${new secp256k1_1.secp256k1.Signature((0, fromHex_js_1.hexToBigInt)(r), (0, fromHex_js_1.hexToBigInt)(yParityAndS)).toCompactHex()}`;
|
8
8
|
}
|
9
|
-
exports.
|
10
|
-
//# sourceMappingURL=
|
9
|
+
exports.serializeCompactSignature = serializeCompactSignature;
|
10
|
+
//# sourceMappingURL=serializeCompactSignature.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"serializeCompactSignature.js","sourceRoot":"","sources":["../../../utils/signature/serializeCompactSignature.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAGnD,uDAA+E;AAmB/E,SAAgB,yBAAyB,CAAC,EACxC,CAAC,EACD,WAAW,GACM;IACjB,OAAO,KAAK,IAAI,qBAAS,CAAC,SAAS,CACjC,IAAA,wBAAW,EAAC,CAAC,CAAC,EACd,IAAA,wBAAW,EAAC,WAAW,CAAC,CACzB,CAAC,YAAY,EAAE,EAAE,CAAA;AACpB,CAAC;AARD,8DAQC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.serializeSignature = void 0;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
|
-
const fromHex_js_1 = require("
|
6
|
-
function
|
5
|
+
const fromHex_js_1 = require("../encoding/fromHex.js");
|
6
|
+
function serializeSignature({ r, s, v, yParity }) {
|
7
7
|
const yParity_ = (() => {
|
8
8
|
if (yParity === 0 || yParity === 1)
|
9
9
|
return yParity;
|
@@ -13,5 +13,5 @@ function signatureToHex({ r, s, v, yParity }) {
|
|
13
13
|
})();
|
14
14
|
return `0x${new secp256k1_1.secp256k1.Signature((0, fromHex_js_1.hexToBigInt)(r), (0, fromHex_js_1.hexToBigInt)(s)).toCompactHex()}${yParity_ === 0 ? '1b' : '1c'}`;
|
15
15
|
}
|
16
|
-
exports.
|
17
|
-
//# sourceMappingURL=
|
16
|
+
exports.serializeSignature = serializeSignature;
|
17
|
+
//# sourceMappingURL=serializeSignature.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"serializeSignature.js","sourceRoot":"","sources":["../../../utils/signature/serializeSignature.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAInD,uDAA+E;AAsB/E,SAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAa;IAChE,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;QACrB,IAAI,OAAO,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC;YAAE,OAAO,OAAO,CAAA;QAClD,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,GAAG,CAAC;YAAE,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC3E,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;IACnD,CAAC,CAAC,EAAE,CAAA;IACJ,OAAO,KAAK,IAAI,qBAAS,CAAC,SAAS,CACjC,IAAA,wBAAW,EAAC,CAAC,CAAC,EACd,IAAA,wBAAW,EAAC,CAAC,CAAC,CACf,CAAC,YAAY,EAAE,GAAG,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;AACnD,CAAC;AAVD,gDAUC"}
|
package/_esm/accounts/index.js
CHANGED
@@ -15,7 +15,9 @@ export { mnemonicToAccount, } from './mnemonicToAccount.js';
|
|
15
15
|
export { privateKeyToAccount, } from './privateKeyToAccount.js';
|
16
16
|
export { toAccount } from './toAccount.js';
|
17
17
|
export { sign, } from './utils/sign.js';
|
18
|
-
export {
|
18
|
+
export {
|
19
|
+
/** @deprecated Use `serializeSignature` instead. */
|
20
|
+
serializeSignature as signatureToHex, serializeSignature, } from '../utils/signature/serializeSignature.js';
|
19
21
|
export { signMessage, } from './utils/signMessage.js';
|
20
22
|
export { signTransaction, } from './utils/signTransaction.js';
|
21
23
|
export { signTypedData, } from './utils/signTypedData.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,QAAQ,IAAI,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,QAAQ,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,EAAE,QAAQ,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AACzF,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAE3F,OAAO,EAEL,gBAAgB,GACjB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAEL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AEL,mBAAmB,GACpB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAA2B,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAWnE,OAAO,EAIL,IAAI,GACL,MAAM,iBAAiB,CAAA;AACxB,OAAO;AAGL,oDAAoD;AACpD,kBAAkB,IAAI,cAAc,EAEpC,kBAAkB,GACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAIL,WAAW,GACZ,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAIL,eAAe,GAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAIL,aAAa,GACd,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAEL,YAAY,GACb,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,kBAAkB,GACnB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAEL,mBAAmB,GACpB,MAAM,gCAAgC,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { hashMessage, } from '../../utils/signature/hashMessage.js';
|
2
|
-
import {
|
2
|
+
import { serializeSignature, } from '../../utils/signature/serializeSignature.js';
|
3
3
|
import { sign } from './sign.js';
|
4
4
|
/**
|
5
5
|
* @description Calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191):
|
@@ -9,6 +9,6 @@ import { sign } from './sign.js';
|
|
9
9
|
*/
|
10
10
|
export async function signMessage({ message, privateKey, }) {
|
11
11
|
const signature = await sign({ hash: hashMessage(message), privateKey });
|
12
|
-
return
|
12
|
+
return serializeSignature(signature);
|
13
13
|
}
|
14
14
|
//# sourceMappingURL=signMessage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../accounts/utils/signMessage.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,WAAW,GACZ,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../accounts/utils/signMessage.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,WAAW,GACZ,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,kBAAkB,GACnB,MAAM,6CAA6C,CAAA;AAEpD,OAAO,EAAsB,IAAI,EAAE,MAAM,WAAW,CAAA;AAiBpD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,EAChC,OAAO,EACP,UAAU,GACY;IACtB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IACxE,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAA;AACtC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { hashTypedData, } from '../../utils/signature/hashTypedData.js';
|
2
|
-
import {
|
2
|
+
import { serializeSignature, } from '../../utils/signature/serializeSignature.js';
|
3
3
|
import { sign } from './sign.js';
|
4
4
|
/**
|
5
5
|
* @description Signs typed data and calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191):
|
@@ -13,6 +13,6 @@ export async function signTypedData(parameters) {
|
|
13
13
|
hash: hashTypedData(typedData),
|
14
14
|
privateKey,
|
15
15
|
});
|
16
|
-
return
|
16
|
+
return serializeSignature(signature);
|
17
17
|
}
|
18
18
|
//# sourceMappingURL=signTypedData.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../accounts/utils/signTypedData.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,aAAa,GACd,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAEL,
|
1
|
+
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../accounts/utils/signTypedData.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,aAAa,GACd,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAEL,kBAAkB,GACnB,MAAM,6CAA6C,CAAA;AAGpD,OAAO,EAAsB,IAAI,EAAE,MAAM,WAAW,CAAA;AAkBpD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAIjC,UAA2D;IAE3D,MAAM,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,GAChC,UAAgD,CAAA;IAClD,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC;QAC3B,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC;QAC9B,UAAU;KACX,CAAC,CAAA;IACF,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAA;AACtC,CAAC"}
|