@ledgerhq/hw-app-eth 6.28.2 → 6.29.0
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/.turbo/turbo-build.log +5 -2
- package/CHANGELOG.md +13 -0
- package/README.md +58 -16
- package/jest.config.ts +6 -0
- package/lib/Eth.d.ts +37 -0
- package/lib/Eth.d.ts.map +1 -1
- package/lib/Eth.js +66 -72
- package/lib/Eth.js.map +1 -1
- package/lib/modules/EIP712/EIP712.types.d.ts +44 -0
- package/lib/modules/EIP712/EIP712.types.d.ts.map +1 -0
- package/lib/modules/EIP712/EIP712.types.js +3 -0
- package/lib/modules/EIP712/EIP712.types.js.map +1 -0
- package/lib/modules/EIP712/EIP712.utils.d.ts +65 -0
- package/lib/modules/EIP712/EIP712.utils.d.ts.map +1 -0
- package/lib/modules/EIP712/EIP712.utils.js +217 -0
- package/lib/modules/EIP712/EIP712.utils.js.map +1 -0
- package/lib/modules/EIP712/index.d.ts +60 -0
- package/lib/modules/EIP712/index.d.ts.map +1 -0
- package/lib/modules/EIP712/index.js +554 -0
- package/lib/modules/EIP712/index.js.map +1 -0
- package/lib/utils.d.ts +15 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +43 -3
- package/lib/utils.js.map +1 -1
- package/lib-es/Eth.d.ts +37 -0
- package/lib-es/Eth.d.ts.map +1 -1
- package/lib-es/Eth.js +42 -48
- package/lib-es/Eth.js.map +1 -1
- package/lib-es/modules/EIP712/EIP712.types.d.ts +44 -0
- package/lib-es/modules/EIP712/EIP712.types.d.ts.map +1 -0
- package/lib-es/modules/EIP712/EIP712.types.js +2 -0
- package/lib-es/modules/EIP712/EIP712.types.js.map +1 -0
- package/lib-es/modules/EIP712/EIP712.utils.d.ts +65 -0
- package/lib-es/modules/EIP712/EIP712.utils.d.ts.map +1 -0
- package/lib-es/modules/EIP712/EIP712.utils.js +211 -0
- package/lib-es/modules/EIP712/EIP712.utils.js.map +1 -0
- package/lib-es/modules/EIP712/index.d.ts +60 -0
- package/lib-es/modules/EIP712/index.d.ts.map +1 -0
- package/lib-es/modules/EIP712/index.js +549 -0
- package/lib-es/modules/EIP712/index.js.map +1 -0
- package/lib-es/services/ledger/contracts.d.ts +0 -0
- package/lib-es/services/ledger/contracts.d.ts.map +0 -0
- package/lib-es/services/ledger/contracts.js +0 -0
- package/lib-es/services/ledger/contracts.js.map +0 -0
- package/lib-es/services/ledger/erc20.d.ts +0 -0
- package/lib-es/services/ledger/erc20.d.ts.map +0 -0
- package/lib-es/services/ledger/erc20.js +0 -0
- package/lib-es/services/ledger/erc20.js.map +0 -0
- package/lib-es/services/ledger/index.d.ts +0 -0
- package/lib-es/services/ledger/index.d.ts.map +0 -0
- package/lib-es/services/ledger/index.js +0 -0
- package/lib-es/services/ledger/index.js.map +0 -0
- package/lib-es/services/ledger/loadConfig.d.ts +0 -0
- package/lib-es/services/ledger/loadConfig.d.ts.map +0 -0
- package/lib-es/services/ledger/loadConfig.js +0 -0
- package/lib-es/services/ledger/loadConfig.js.map +0 -0
- package/lib-es/services/ledger/nfts.d.ts +0 -0
- package/lib-es/services/ledger/nfts.d.ts.map +0 -0
- package/lib-es/services/ledger/nfts.js +0 -0
- package/lib-es/services/ledger/nfts.js.map +0 -0
- package/lib-es/services/types.d.ts +0 -0
- package/lib-es/services/types.d.ts.map +0 -0
- package/lib-es/services/types.js +0 -0
- package/lib-es/services/types.js.map +0 -0
- package/lib-es/utils.d.ts +15 -1
- package/lib-es/utils.d.ts.map +1 -1
- package/lib-es/utils.js +38 -2
- package/lib-es/utils.js.map +1 -1
- package/package.json +13 -8
- package/src/Eth.ts +59 -56
- package/src/modules/EIP712/EIP712.types.ts +54 -0
- package/src/modules/EIP712/EIP712.utils.ts +251 -0
- package/src/modules/EIP712/index.ts +409 -0
- package/src/utils.ts +42 -2
- package/tests/EIP712.unit.test.ts +760 -0
- package/tests/sample-messages/0.apdus +58 -0
- package/tests/sample-messages/0.json +44 -0
- package/tests/sample-messages/1.apdus +66 -0
- package/tests/sample-messages/1.json +50 -0
- package/tests/sample-messages/10.apdus +30 -0
- package/tests/sample-messages/10.json +23 -0
- package/tests/sample-messages/2.apdus +126 -0
- package/tests/sample-messages/2.json +153 -0
- package/tests/sample-messages/3.apdus +42 -0
- package/tests/sample-messages/3.json +31 -0
- package/tests/sample-messages/4.apdus +84 -0
- package/tests/sample-messages/4.json +110 -0
- package/tests/sample-messages/5.apdus +112 -0
- package/tests/sample-messages/5.json +92 -0
- package/tests/sample-messages/6.apdus +94 -0
- package/tests/sample-messages/6.json +78 -0
- package/tests/sample-messages/7.apdus +70 -0
- package/tests/sample-messages/7.json +55 -0
- package/tests/sample-messages/8.apdus +68 -0
- package/tests/sample-messages/8.json +50 -0
- package/tests/sample-messages/9.apdus +68 -0
- package/tests/sample-messages/9.json +50 -0
- package/LICENSE +0 -202
- package/lib-es/contracts.d.ts +0 -17
- package/lib-es/contracts.d.ts.map +0 -1
- package/lib-es/contracts.js +0 -103
- package/lib-es/contracts.js.map +0 -1
- package/lib-es/erc20.d.ts +0 -22
- package/lib-es/erc20.d.ts.map +0 -1
- package/lib-es/erc20.js +0 -64
- package/lib-es/erc20.js.map +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
=> e01a0000054173736574
|
|
2
|
+
<= 9000
|
|
3
|
+
=> e01a00ff15000941737365745479706509617373657454797065
|
|
4
|
+
<= 9000
|
|
5
|
+
=> e01a00ff0842200576616c7565
|
|
6
|
+
<= 9000
|
|
7
|
+
=> e01a000009417373657454797065
|
|
8
|
+
<= 9000
|
|
9
|
+
=> e01a00ff0d46040a6173736574436c617373
|
|
10
|
+
<= 9000
|
|
11
|
+
=> e01a00ff06070464617461
|
|
12
|
+
<= 9000
|
|
13
|
+
=> e01a00000c454950373132446f6d61696e
|
|
14
|
+
<= 9000
|
|
15
|
+
=> e01a00ff0605046e616d65
|
|
16
|
+
<= 9000
|
|
17
|
+
=> e01a00ff09050776657273696f6e
|
|
18
|
+
<= 9000
|
|
19
|
+
=> e01a00ff0a422007636861696e4964
|
|
20
|
+
<= 9000
|
|
21
|
+
=> e01a00ff130311766572696679696e67436f6e7472616374
|
|
22
|
+
<= 9000
|
|
23
|
+
=> e01a0000054f72646572
|
|
24
|
+
<= 9000
|
|
25
|
+
=> e01a00ff0703056d616b6572
|
|
26
|
+
<= 9000
|
|
27
|
+
=> e01a00ff1100054173736574096d616b654173736574
|
|
28
|
+
<= 9000
|
|
29
|
+
=> e01a00ff07030574616b6572
|
|
30
|
+
<= 9000
|
|
31
|
+
=> e01a00ff11000541737365740974616b654173736574
|
|
32
|
+
<= 9000
|
|
33
|
+
=> e01a00ff0742200473616c74
|
|
34
|
+
<= 9000
|
|
35
|
+
=> e01a00ff084220057374617274
|
|
36
|
+
<= 9000
|
|
37
|
+
=> e01a00ff06422003656e64
|
|
38
|
+
<= 9000
|
|
39
|
+
=> e01a00ff0b4604086461746154797065
|
|
40
|
+
<= 9000
|
|
41
|
+
=> e01a00ff06070464617461
|
|
42
|
+
<= 9000
|
|
43
|
+
=> e01c00000c454950373132446f6d61696e
|
|
44
|
+
<= 9000
|
|
45
|
+
=> e01c00ff0a000845786368616e6765
|
|
46
|
+
<= 9000
|
|
47
|
+
=> e01c00ff03000132
|
|
48
|
+
<= 9000
|
|
49
|
+
=> e01c00ff03000101
|
|
50
|
+
<= 9000
|
|
51
|
+
=> e01c00ff1600149757f2d2b135150bbeb65308d4a91804107cd8d6
|
|
52
|
+
<= 9000
|
|
53
|
+
=> e01c0000054f72646572
|
|
54
|
+
<= 9000
|
|
55
|
+
=> e01c00ff160014112f0732e59e7600768dfc35ba744b89f2356cd8
|
|
56
|
+
<= 9000
|
|
57
|
+
=> e01c00ff060004973bb640
|
|
58
|
+
<= 9000
|
|
59
|
+
=> e01c00ff420040000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5ebdf2657ffc1fadfd73cf0a8cde95d50b62d3df8c000000000000070000000032
|
|
60
|
+
<= 9000
|
|
61
|
+
=> e01c00ff03000101
|
|
62
|
+
<= 9000
|
|
63
|
+
=> e01c00ff1600140000000000000000000000000000000000000000
|
|
64
|
+
<= 9000
|
|
65
|
+
=> e01c00ff060004aaaebeba
|
|
66
|
+
<= 9000
|
|
67
|
+
=> e01c00ff020000
|
|
68
|
+
<= 9000
|
|
69
|
+
=> e01c00ff0a00081bc16d674ec80000
|
|
70
|
+
<= 9000
|
|
71
|
+
=> e01c00ff220020dbf0f98bc1746711579dcce549a4cc4e866fb71bf2e185bfefbb7d32f325972e
|
|
72
|
+
<= 9000
|
|
73
|
+
=> e01c00ff03000100
|
|
74
|
+
<= 9000
|
|
75
|
+
=> e01c00ff03000100
|
|
76
|
+
<= 9000
|
|
77
|
+
=> e01c00ff06000423d235ef
|
|
78
|
+
<= 9000
|
|
79
|
+
=> e01c01ffff01000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000001cf0df2a5a20cd61d68d4489eebbf85b8d39e18a0000000000000000000000000000000000000000000000000000000000
|
|
80
|
+
<= 9000
|
|
81
|
+
=> e01c00ff030000fa
|
|
82
|
+
<= 9000
|
|
83
|
+
=> e00c000115058000002c8000003c800000000000000000000000
|
|
84
|
+
<= 1bcda73aa5e40061499b7faee1f85d6cefc371bb8f38bf407d6ab747aaaf1b047d702f036a1941e85f124f961e44c55fafe44533abd34aea8a5c4dba0df836925f9000
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain" : {
|
|
3
|
+
"chainId" : 1,
|
|
4
|
+
"name" : "Exchange",
|
|
5
|
+
"verifyingContract" : "0x9757f2d2b135150bbeb65308d4a91804107cd8d6",
|
|
6
|
+
"version" : "2"
|
|
7
|
+
},
|
|
8
|
+
"message" : {
|
|
9
|
+
"data" : "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000001cf0df2a5a20cd61d68d4489eebbf85b8d39e18a00000000000000000000000000000000000000000000000000000000000000fa",
|
|
10
|
+
"dataType" : "0x23d235ef",
|
|
11
|
+
"end" : 0,
|
|
12
|
+
"makeAsset" : {
|
|
13
|
+
"assetType" : {
|
|
14
|
+
"assetClass" : "0x973bb640",
|
|
15
|
+
"data" : "0x000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5ebdf2657ffc1fadfd73cf0a8cde95d50b62d3df8c000000000000070000000032"
|
|
16
|
+
},
|
|
17
|
+
"value" : "1"
|
|
18
|
+
},
|
|
19
|
+
"maker" : "0x112f0732e59e7600768dfc35ba744b89f2356cd8",
|
|
20
|
+
"salt" : "0xdbf0f98bc1746711579dcce549a4cc4e866fb71bf2e185bfefbb7d32f325972e",
|
|
21
|
+
"start" : 0,
|
|
22
|
+
"takeAsset" : {
|
|
23
|
+
"assetType" : {
|
|
24
|
+
"assetClass" : "0xaaaebeba",
|
|
25
|
+
"data" : "0x"
|
|
26
|
+
},
|
|
27
|
+
"value" : "2000000000000000000"
|
|
28
|
+
},
|
|
29
|
+
"taker" : "0x0000000000000000000000000000000000000000"
|
|
30
|
+
},
|
|
31
|
+
"primaryType" : "Order",
|
|
32
|
+
"types" : {
|
|
33
|
+
"Asset" : [
|
|
34
|
+
{
|
|
35
|
+
"name" : "assetType",
|
|
36
|
+
"type" : "AssetType"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name" : "value",
|
|
40
|
+
"type" : "uint256"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"AssetType" : [
|
|
44
|
+
{
|
|
45
|
+
"name" : "assetClass",
|
|
46
|
+
"type" : "bytes4"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name" : "data",
|
|
50
|
+
"type" : "bytes"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"EIP712Domain" : [
|
|
54
|
+
{
|
|
55
|
+
"name" : "name",
|
|
56
|
+
"type" : "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name" : "version",
|
|
60
|
+
"type" : "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name" : "chainId",
|
|
64
|
+
"type" : "uint256"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name" : "verifyingContract",
|
|
68
|
+
"type" : "address"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"Order" : [
|
|
72
|
+
{
|
|
73
|
+
"name" : "maker",
|
|
74
|
+
"type" : "address"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name" : "makeAsset",
|
|
78
|
+
"type" : "Asset"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name" : "taker",
|
|
82
|
+
"type" : "address"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name" : "takeAsset",
|
|
86
|
+
"type" : "Asset"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name" : "salt",
|
|
90
|
+
"type" : "uint256"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name" : "start",
|
|
94
|
+
"type" : "uint256"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name" : "end",
|
|
98
|
+
"type" : "uint256"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name" : "dataType",
|
|
102
|
+
"type" : "bytes4"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name" : "data",
|
|
106
|
+
"type" : "bytes"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
=> e01a00000c454950373132446f6d61696e
|
|
2
|
+
<= 9000
|
|
3
|
+
=> e01a00ff0605046e616d65
|
|
4
|
+
<= 9000
|
|
5
|
+
=> e01a0000114c44505369676e696e6752657175657374
|
|
6
|
+
<= 9000
|
|
7
|
+
=> e01a00ff0e850201030008646f63756d656e74
|
|
8
|
+
<= 9000
|
|
9
|
+
=> e01a00ff0b85020001040570726f6f66
|
|
10
|
+
<= 9000
|
|
11
|
+
=> e01a00ff0ec201040000000006646570746879
|
|
12
|
+
<= 9000
|
|
13
|
+
=> e01c00000c454950373132446f6d61696e
|
|
14
|
+
<= 9000
|
|
15
|
+
=> e01c00ff1200104569703731324d6574686f6432303231
|
|
16
|
+
<= 9000
|
|
17
|
+
=> e01c0000114c44505369676e696e6752657175657374
|
|
18
|
+
<= 9000
|
|
19
|
+
=> e01c000f0105
|
|
20
|
+
<= 9000
|
|
21
|
+
=> e01c000f0103
|
|
22
|
+
<= 9000
|
|
23
|
+
=> e01c00ff3c003a3c6469643a6b65793a7a364d6b67466e6561614d6a4e367a7962714c4e5867743459666d567832585a687a506444796b345a4b38316461485a3e
|
|
24
|
+
<= 9000
|
|
25
|
+
=> e01c00ff2d002b3c68747470733a2f2f7777772e77332e6f72672f54522f6f776c2d7265662f2373616d6541732d6465663e
|
|
26
|
+
<= 9000
|
|
27
|
+
=> e01c00ff370035226469643a657468723a30786637333938626163663631306262346533623536373831313237396663623363343139313966383922
|
|
28
|
+
<= 9000
|
|
29
|
+
=> e01c000f0103
|
|
30
|
+
<= 9000
|
|
31
|
+
=> e01c00ff31002f3c75726e3a757569643a31346162363034372d626632642d346664652d393536342d3531646561643132366666623e
|
|
32
|
+
<= 9000
|
|
33
|
+
=> e01c00ff3900373c68747470733a2f2f7777772e77332e6f72672f323031382f63726564656e7469616c732363726564656e7469616c5375626a6563743e
|
|
34
|
+
<= 9000
|
|
35
|
+
=> e01c00ff3c003a3c6469643a6b65793a7a364d6b67466e6561614d6a4e367a7962714c4e5867743459666d567832585a687a506444796b345a4b38316461485a3e
|
|
36
|
+
<= 9000
|
|
37
|
+
=> e01c000f0103
|
|
38
|
+
<= 9000
|
|
39
|
+
=> e01c00ff31002f3c75726e3a757569643a31346162363034372d626632642d346664652d393536342d3531646561643132366666623e
|
|
40
|
+
<= 9000
|
|
41
|
+
=> e01c00ff3400323c68747470733a2f2f7777772e77332e6f72672f323031382f63726564656e7469616c732369737375616e6365446174653e
|
|
42
|
+
<= 9000
|
|
43
|
+
=> e01c00ff49004722323032312d30332d30345432313a30383a32322e3631355a225e5e3c687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d61236461746554696d653e
|
|
44
|
+
<= 9000
|
|
45
|
+
=> e01c000f0103
|
|
46
|
+
<= 9000
|
|
47
|
+
=> e01c00ff31002f3c75726e3a757569643a31346162363034372d626632642d346664652d393536342d3531646561643132366666623e
|
|
48
|
+
<= 9000
|
|
49
|
+
=> e01c00ff2e002c3c68747470733a2f2f7777772e77332e6f72672f323031382f63726564656e7469616c73236973737565723e
|
|
50
|
+
<= 9000
|
|
51
|
+
=> e01c00ff3700353c6469643a657468723a3078663733393862616366363130626234653362353637383131323739666362336334313931396638393e
|
|
52
|
+
<= 9000
|
|
53
|
+
=> e01c000f0103
|
|
54
|
+
<= 9000
|
|
55
|
+
=> e01c00ff31002f3c75726e3a757569643a31346162363034372d626632642d346664652d393536342d3531646561643132366666623e
|
|
56
|
+
<= 9000
|
|
57
|
+
=> e01c00ff3300313c687474703a2f2f7777772e77332e6f72672f313939392f30322f32322d7264662d73796e7461782d6e7323747970653e
|
|
58
|
+
<= 9000
|
|
59
|
+
=> e01c00ff3c003a3c68747470733a2f2f7777772e77332e6f72672f323031382f63726564656e7469616c732356657269666961626c6543726564656e7469616c3e
|
|
60
|
+
<= 9000
|
|
61
|
+
=> e01c000f0104
|
|
62
|
+
<= 9000
|
|
63
|
+
=> e01c000f0103
|
|
64
|
+
<= 9000
|
|
65
|
+
=> e01c00ff0900075f3a6331346e30
|
|
66
|
+
<= 9000
|
|
67
|
+
=> e01c00ff2400223c687474703a2f2f7075726c2e6f72672f64632f7465726d732f637265617465643e
|
|
68
|
+
<= 9000
|
|
69
|
+
=> e01c00ff49004722323032312d30332d30345432313a30383a32322e3631365a225e5e3c687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d61236461746554696d653e
|
|
70
|
+
<= 9000
|
|
71
|
+
=> e01c000f0103
|
|
72
|
+
<= 9000
|
|
73
|
+
=> e01c00ff0900075f3a6331346e30
|
|
74
|
+
<= 9000
|
|
75
|
+
=> e01c00ff2a00283c68747470733a2f2f773369642e6f72672f73656375726974792370726f6f66507572706f73653e
|
|
76
|
+
<= 9000
|
|
77
|
+
=> e01c00ff2d002b3c68747470733a2f2f773369642e6f72672f736563757269747923617373657274696f6e4d6574686f643e
|
|
78
|
+
<= 9000
|
|
79
|
+
=> e01c000f0103
|
|
80
|
+
<= 9000
|
|
81
|
+
=> e01c00ff0900075f3a6331346e30
|
|
82
|
+
<= 9000
|
|
83
|
+
=> e01c00ff30002e3c68747470733a2f2f773369642e6f72672f736563757269747923766572696669636174696f6e4d6574686f643e
|
|
84
|
+
<= 9000
|
|
85
|
+
=> e01c00ff4800463c6469643a657468723a307866373339386261636636313062623465336235363738313132373966636233633431393139663839234569703731324d6574686f64323032313e
|
|
86
|
+
<= 9000
|
|
87
|
+
=> e01c000f0103
|
|
88
|
+
<= 9000
|
|
89
|
+
=> e01c00ff0900075f3a6331346e30
|
|
90
|
+
<= 9000
|
|
91
|
+
=> e01c00ff3300313c687474703a2f2f7777772e77332e6f72672f313939392f30322f32322d7264662d73796e7461782d6e7323747970653e
|
|
92
|
+
<= 9000
|
|
93
|
+
=> e01c00ff31002f3c68747470733a2f2f773369642e6f72672f7365637572697479234569703731325369676e6174757265323032313e
|
|
94
|
+
<= 9000
|
|
95
|
+
=> e01c000f0101
|
|
96
|
+
<= 9000
|
|
97
|
+
=> e01c000f0101
|
|
98
|
+
<= 9000
|
|
99
|
+
=> e01c000f0102
|
|
100
|
+
<= 9000
|
|
101
|
+
=> e01c000f0102
|
|
102
|
+
<= 9000
|
|
103
|
+
=> e01c00ff03000101
|
|
104
|
+
<= 9000
|
|
105
|
+
=> e01c00ff03000102
|
|
106
|
+
<= 9000
|
|
107
|
+
=> e01c000f0101
|
|
108
|
+
<= 9000
|
|
109
|
+
=> e01c00ff03000103
|
|
110
|
+
<= 9000
|
|
111
|
+
=> e00c000115058000002c8000003c800000000000000000000000
|
|
112
|
+
<= 1b7b6a345381330b91ee63d05c83ecc2fa1bc7cd5871da3f45341827b09fd440367660f31b2cae89bc1826fbe153209b059968264b6387936551f2a5d80931490c9000
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"types": {
|
|
3
|
+
"EIP712Domain": [
|
|
4
|
+
{
|
|
5
|
+
"type": "string",
|
|
6
|
+
"name": "name"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"LDPSigningRequest": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string[3][]",
|
|
12
|
+
"name": "document"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "string[][4]",
|
|
16
|
+
"name": "proof"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "uint8[][][][]",
|
|
20
|
+
"name": "depthy"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"primaryType": "LDPSigningRequest",
|
|
25
|
+
"domain": {
|
|
26
|
+
"name": "Eip712Method2021"
|
|
27
|
+
},
|
|
28
|
+
"message": {
|
|
29
|
+
"depthy": [
|
|
30
|
+
[
|
|
31
|
+
[
|
|
32
|
+
[
|
|
33
|
+
"1",
|
|
34
|
+
"2"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"3"
|
|
38
|
+
]
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
],
|
|
42
|
+
"document": [
|
|
43
|
+
[
|
|
44
|
+
"<did:key:z6MkgFneaaMjN6zybqLNXgt4YfmVx2XZhzPdDyk4ZK81daHZ>",
|
|
45
|
+
"<https://www.w3.org/TR/owl-ref/#sameAs-def>",
|
|
46
|
+
"\"did:ethr:0xf7398bacf610bb4e3b567811279fcb3c41919f89\""
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"<urn:uuid:14ab6047-bf2d-4fde-9564-51dead126ffb>",
|
|
50
|
+
"<https://www.w3.org/2018/credentials#credentialSubject>",
|
|
51
|
+
"<did:key:z6MkgFneaaMjN6zybqLNXgt4YfmVx2XZhzPdDyk4ZK81daHZ>"
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
"<urn:uuid:14ab6047-bf2d-4fde-9564-51dead126ffb>",
|
|
55
|
+
"<https://www.w3.org/2018/credentials#issuanceDate>",
|
|
56
|
+
"\"2021-03-04T21:08:22.615Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime>"
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"<urn:uuid:14ab6047-bf2d-4fde-9564-51dead126ffb>",
|
|
60
|
+
"<https://www.w3.org/2018/credentials#issuer>",
|
|
61
|
+
"<did:ethr:0xf7398bacf610bb4e3b567811279fcb3c41919f89>"
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"<urn:uuid:14ab6047-bf2d-4fde-9564-51dead126ffb>",
|
|
65
|
+
"<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>",
|
|
66
|
+
"<https://www.w3.org/2018/credentials#VerifiableCredential>"
|
|
67
|
+
]
|
|
68
|
+
],
|
|
69
|
+
"proof": [
|
|
70
|
+
[
|
|
71
|
+
"_:c14n0",
|
|
72
|
+
"<http://purl.org/dc/terms/created>",
|
|
73
|
+
"\"2021-03-04T21:08:22.616Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime>"
|
|
74
|
+
],
|
|
75
|
+
[
|
|
76
|
+
"_:c14n0",
|
|
77
|
+
"<https://w3id.org/security#proofPurpose>",
|
|
78
|
+
"<https://w3id.org/security#assertionMethod>"
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
"_:c14n0",
|
|
82
|
+
"<https://w3id.org/security#verificationMethod>",
|
|
83
|
+
"<did:ethr:0xf7398bacf610bb4e3b567811279fcb3c41919f89#Eip712Method2021>"
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
"_:c14n0",
|
|
87
|
+
"<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>",
|
|
88
|
+
"<https://w3id.org/security#Eip712Signature2021>"
|
|
89
|
+
]
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
=> e01a00000c454950373132446f6d61696e
|
|
2
|
+
<= 9000
|
|
3
|
+
=> e01a00ff0605046e616d65
|
|
4
|
+
<= 9000
|
|
5
|
+
=> e01a00ff09050776657273696f6e
|
|
6
|
+
<= 9000
|
|
7
|
+
=> e01a00ff0a422007636861696e4964
|
|
8
|
+
<= 9000
|
|
9
|
+
=> e01a00ff130311766572696679696e67436f6e7472616374
|
|
10
|
+
<= 9000
|
|
11
|
+
=> e01a00000a4174746163686d656e74
|
|
12
|
+
<= 9000
|
|
13
|
+
=> e01a00ff0605046e616d65
|
|
14
|
+
<= 9000
|
|
15
|
+
=> e01a00ff0742020473697a65
|
|
16
|
+
<= 9000
|
|
17
|
+
=> e01a00000b4174746163686d656e7473
|
|
18
|
+
<= 9000
|
|
19
|
+
=> e01a00ff13800a4174746163686d656e740100046c697374
|
|
20
|
+
<= 9000
|
|
21
|
+
=> e01a00000b4d61696c696e674c697374
|
|
22
|
+
<= 9000
|
|
23
|
+
=> e01a00ff0605046e616d65
|
|
24
|
+
<= 9000
|
|
25
|
+
=> e01a00ff128006506572736f6e0100076d656d62657273
|
|
26
|
+
<= 9000
|
|
27
|
+
=> e01a0000044d61696c
|
|
28
|
+
<= 9000
|
|
29
|
+
=> e01a00ff0d0006506572736f6e0466726f6d
|
|
30
|
+
<= 9000
|
|
31
|
+
=> e01a00ff10000b4d61696c696e674c69737402746f
|
|
32
|
+
<= 9000
|
|
33
|
+
=> e01a00ff0a0508636f6e74656e7473
|
|
34
|
+
<= 9000
|
|
35
|
+
=> e01a00ff14000b4174746163686d656e747306617474616368
|
|
36
|
+
<= 9000
|
|
37
|
+
=> e01a000006506572736f6e
|
|
38
|
+
<= 9000
|
|
39
|
+
=> e01a00ff0605046e616d65
|
|
40
|
+
<= 9000
|
|
41
|
+
=> e01a00ff0b8301000777616c6c657473
|
|
42
|
+
<= 9000
|
|
43
|
+
=> e01c00000c454950373132446f6d61696e
|
|
44
|
+
<= 9000
|
|
45
|
+
=> e01c00ff0c000a4574686572204d61696c
|
|
46
|
+
<= 9000
|
|
47
|
+
=> e01c00ff03000131
|
|
48
|
+
<= 9000
|
|
49
|
+
=> e01c00ff03000105
|
|
50
|
+
<= 9000
|
|
51
|
+
=> e01c00ff160014cccccccccccccccccccccccccccccccccccccccc
|
|
52
|
+
<= 9000
|
|
53
|
+
=> e01c0000044d61696c
|
|
54
|
+
<= 9000
|
|
55
|
+
=> e01c00ff050003436f77
|
|
56
|
+
<= 9000
|
|
57
|
+
=> e01c000f0102
|
|
58
|
+
<= 9000
|
|
59
|
+
=> e01c00ff160014cd2a3d9f938e13cd947ec05abc7fe734df8dd826
|
|
60
|
+
<= 9000
|
|
61
|
+
=> e01c00ff160014deadbeefdeadbeefdeadbeefdeadbeefdeadbeef
|
|
62
|
+
<= 9000
|
|
63
|
+
=> e01c00ff0b000974657374206c697374
|
|
64
|
+
<= 9000
|
|
65
|
+
=> e01c000f0102
|
|
66
|
+
<= 9000
|
|
67
|
+
=> e01c00ff050003426f62
|
|
68
|
+
<= 9000
|
|
69
|
+
=> e01c000f0102
|
|
70
|
+
<= 9000
|
|
71
|
+
=> e01c00ff160014bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
|
72
|
+
<= 9000
|
|
73
|
+
=> e01c00ff160014b0b0b0b0b0b0b000000000000000000000000000
|
|
74
|
+
<= 9000
|
|
75
|
+
=> e01c00ff070005416c696365
|
|
76
|
+
<= 9000
|
|
77
|
+
=> e01c000f0101
|
|
78
|
+
<= 9000
|
|
79
|
+
=> e01c00ff160014b0bdabea57b0bdabea57b0bdabea57b0bdabea57
|
|
80
|
+
<= 9000
|
|
81
|
+
=> e01c00ff0d000b48656c6c6f2c20426f6221
|
|
82
|
+
<= 9000
|
|
83
|
+
=> e01c000f0102
|
|
84
|
+
<= 9000
|
|
85
|
+
=> e01c00ff0700056669727374
|
|
86
|
+
<= 9000
|
|
87
|
+
=> e01c00ff03000164
|
|
88
|
+
<= 9000
|
|
89
|
+
=> e01c00ff0800067365636f6e64
|
|
90
|
+
<= 9000
|
|
91
|
+
=> e01c00ff0400020d48
|
|
92
|
+
<= 9000
|
|
93
|
+
=> e00c000115058000002c8000003c800000000000000000000000
|
|
94
|
+
<= 1bab0071346cd7ab388c7b4fa71d9634f5f3e3445acbe900874b7594890404d14c35a8e8d682652915e9afc0c684fc8d5a5b00e87e43a478dc0d9eb639b43d29f59000
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": {
|
|
3
|
+
"chainId": 5,
|
|
4
|
+
"name": "Ether Mail",
|
|
5
|
+
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
|
6
|
+
"version": "1"
|
|
7
|
+
},
|
|
8
|
+
"message": {
|
|
9
|
+
"contents": "Hello, Bob!",
|
|
10
|
+
"from": {
|
|
11
|
+
"name": "Cow",
|
|
12
|
+
"wallets": [
|
|
13
|
+
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
|
14
|
+
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"to": {
|
|
18
|
+
"name": "test list",
|
|
19
|
+
"members": [
|
|
20
|
+
{
|
|
21
|
+
"name": "Bob",
|
|
22
|
+
"wallets": [
|
|
23
|
+
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
|
|
24
|
+
"0xB0B0b0b0b0b0B000000000000000000000000000"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Alice",
|
|
29
|
+
"wallets": [
|
|
30
|
+
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"attach": {
|
|
36
|
+
"list": [
|
|
37
|
+
{
|
|
38
|
+
"name": "first",
|
|
39
|
+
"size": "100"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "second",
|
|
43
|
+
"size": "3400"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"primaryType": "Mail",
|
|
49
|
+
"types": {
|
|
50
|
+
"EIP712Domain": [
|
|
51
|
+
{ "name": "name", "type": "string" },
|
|
52
|
+
{ "name": "version", "type": "string" },
|
|
53
|
+
{ "name": "chainId", "type": "uint256" },
|
|
54
|
+
{ "name": "verifyingContract", "type": "address" }
|
|
55
|
+
],
|
|
56
|
+
"Attachment": [
|
|
57
|
+
{ "name": "name", "type": "string" },
|
|
58
|
+
{ "name": "size", "type": "uint16" }
|
|
59
|
+
],
|
|
60
|
+
"Attachments": [
|
|
61
|
+
{ "name": "list", "type": "Attachment[]" }
|
|
62
|
+
],
|
|
63
|
+
"MailingList": [
|
|
64
|
+
{ "name": "name", "type": "string" },
|
|
65
|
+
{ "name": "members", "type": "Person[]" }
|
|
66
|
+
],
|
|
67
|
+
"Mail": [
|
|
68
|
+
{ "name": "from", "type": "Person" },
|
|
69
|
+
{ "name": "to", "type": "MailingList" },
|
|
70
|
+
{ "name": "contents", "type": "string" },
|
|
71
|
+
{ "name": "attach", "type": "Attachments" }
|
|
72
|
+
],
|
|
73
|
+
"Person": [
|
|
74
|
+
{ "name": "name", "type": "string" },
|
|
75
|
+
{ "name": "wallets", "type": "address[]" }
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
=> e01a00000c454950373132446f6d61696e
|
|
2
|
+
<= 9000
|
|
3
|
+
=> e01a00ff0605046e616d65
|
|
4
|
+
<= 9000
|
|
5
|
+
=> e01a00ff09050776657273696f6e
|
|
6
|
+
<= 9000
|
|
7
|
+
=> e01a00ff0a422007636861696e4964
|
|
8
|
+
<= 9000
|
|
9
|
+
=> e01a00ff130311766572696679696e67436f6e7472616374
|
|
10
|
+
<= 9000
|
|
11
|
+
=> e01a00000547726f7570
|
|
12
|
+
<= 9000
|
|
13
|
+
=> e01a00ff0605046e616d65
|
|
14
|
+
<= 9000
|
|
15
|
+
=> e01a00ff128006506572736f6e0100076d656d62657273
|
|
16
|
+
<= 9000
|
|
17
|
+
=> e01a0000044d61696c
|
|
18
|
+
<= 9000
|
|
19
|
+
=> e01a00ff0d0006506572736f6e0466726f6d
|
|
20
|
+
<= 9000
|
|
21
|
+
=> e01a00ff0d8006506572736f6e010002746f
|
|
22
|
+
<= 9000
|
|
23
|
+
=> e01a00ff0a0508636f6e74656e7473
|
|
24
|
+
<= 9000
|
|
25
|
+
=> e01a000006506572736f6e
|
|
26
|
+
<= 9000
|
|
27
|
+
=> e01a00ff0605046e616d65
|
|
28
|
+
<= 9000
|
|
29
|
+
=> e01a00ff0b8301000777616c6c657473
|
|
30
|
+
<= 9000
|
|
31
|
+
=> e01c00000c454950373132446f6d61696e
|
|
32
|
+
<= 9000
|
|
33
|
+
=> e01c00ff0c000a4574686572204d61696c
|
|
34
|
+
<= 9000
|
|
35
|
+
=> e01c00ff03000131
|
|
36
|
+
<= 9000
|
|
37
|
+
=> e01c00ff03000105
|
|
38
|
+
<= 9000
|
|
39
|
+
=> e01c00ff160014cccccccccccccccccccccccccccccccccccccccc
|
|
40
|
+
<= 9000
|
|
41
|
+
=> e01c0000044d61696c
|
|
42
|
+
<= 9000
|
|
43
|
+
=> e01c00ff050003436f77
|
|
44
|
+
<= 9000
|
|
45
|
+
=> e01c000f0102
|
|
46
|
+
<= 9000
|
|
47
|
+
=> e01c00ff160014cd2a3d9f938e13cd947ec05abc7fe734df8dd826
|
|
48
|
+
<= 9000
|
|
49
|
+
=> e01c00ff160014deadbeefdeadbeefdeadbeefdeadbeefdeadbeef
|
|
50
|
+
<= 9000
|
|
51
|
+
=> e01c000f0102
|
|
52
|
+
<= 9000
|
|
53
|
+
=> e01c00ff070005416c696365
|
|
54
|
+
<= 9000
|
|
55
|
+
=> e01c000f0102
|
|
56
|
+
<= 9000
|
|
57
|
+
=> e01c00ff160014bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
|
58
|
+
<= 9000
|
|
59
|
+
=> e01c00ff160014b0b0b0b0b0b0b000000000000000000000000000
|
|
60
|
+
<= 9000
|
|
61
|
+
=> e01c00ff050003426f62
|
|
62
|
+
<= 9000
|
|
63
|
+
=> e01c000f0101
|
|
64
|
+
<= 9000
|
|
65
|
+
=> e01c00ff160014b0bdabea57b0bdabea57b0bdabea57b0bdabea57
|
|
66
|
+
<= 9000
|
|
67
|
+
=> e01c00ff0d000b48656c6c6f2c20426f6221
|
|
68
|
+
<= 9000
|
|
69
|
+
=> e00c000115058000002c8000003c800000000000000000000000
|
|
70
|
+
<= 1b5059ff4b6e0e4ccc8f7bcf233da23618a1f0be05b88d70b068dbe187d6b3595506d7d716d3b9b351856d656a7d58e47f8d8922411cc3c68aa9a2d32d1f188f269000
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": {
|
|
3
|
+
"chainId": 5,
|
|
4
|
+
"name": "Ether Mail",
|
|
5
|
+
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
|
6
|
+
"version": "1"
|
|
7
|
+
},
|
|
8
|
+
"message": {
|
|
9
|
+
"contents": "Hello, Bob!",
|
|
10
|
+
"from": {
|
|
11
|
+
"name": "Cow",
|
|
12
|
+
"wallets": [
|
|
13
|
+
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
|
14
|
+
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"to": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Alice",
|
|
20
|
+
"wallets": [
|
|
21
|
+
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
|
|
22
|
+
"0xB0B0b0b0b0b0B000000000000000000000000000"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Bob",
|
|
27
|
+
"wallets": [
|
|
28
|
+
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"primaryType": "Mail",
|
|
34
|
+
"types": {
|
|
35
|
+
"EIP712Domain": [
|
|
36
|
+
{ "name": "name", "type": "string" },
|
|
37
|
+
{ "name": "version", "type": "string" },
|
|
38
|
+
{ "name": "chainId", "type": "uint256" },
|
|
39
|
+
{ "name": "verifyingContract", "type": "address" }
|
|
40
|
+
],
|
|
41
|
+
"Group": [
|
|
42
|
+
{ "name": "name", "type": "string" },
|
|
43
|
+
{ "name": "members", "type": "Person[]" }
|
|
44
|
+
],
|
|
45
|
+
"Mail": [
|
|
46
|
+
{ "name": "from", "type": "Person" },
|
|
47
|
+
{ "name": "to", "type": "Person[]" },
|
|
48
|
+
{ "name": "contents", "type": "string" }
|
|
49
|
+
],
|
|
50
|
+
"Person": [
|
|
51
|
+
{ "name": "name", "type": "string" },
|
|
52
|
+
{ "name": "wallets", "type": "address[]" }
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|