Commit 97a4e03
feat: add system support for EIP-191, contracts support for EIP-(712,1271,6492) (#294)
* feat: move erc7824 documentation to nitrolite (#272)
* feat: move erc7824 documentation to nitrolite
* feat: move GH actions to common scope
* fix: comment GITHUB_TOKEN
* feat(custody): add EIP-191, EIP-712 signature support (#257)
* feat(custody): add EIP-191, EIP-712 support
* feat(custody): correct EIP-712 sig impl
* feat(utils): add POLA principle comment
* feat(contract): add EIP712AdjudicatorBase
* feat(contract): integrate EIP712AdjudicatorBase to supported adjs
* fix(contract): tests with updated adjs
* test(contract): EIP712AdjudicatorBase
* test(contract): SimpleConsensus EIP191, EIP712 sigs
* test(contract): Utils signatures
* test(contract): Custody, SimpleConsensus integration tests for sigs
* refactor(contract): migrate sig to bytes (#279)
* refactor(Types): replace Signature{v,r,s} with bytes
* style(contract): add empty lines at the end
* refactor(clearnode): replace Signature{r,s,v} with []byte (#283)
* refactor(sdk): migrate `Signature{r,s,v}` to `Hex` (#284)
* refactor(sdk): replace Signature{r,s,v} with Hex
* fix(NitroliteService): perform convertStateFromContract correctly
* fix(rpc): expect updated signature type from rpc
* style(sdk/rpc): remove ServerSignatureSchema var
* feat(sdk/rpc): add empty signatures array by default
* feat(sdk): add build:force command
* feat(sdk): remove npm build:force
* refactor(clearnode): define `Signature []byte` type (#287)
* refactor(clearnode): define `Signature []byte` type
* refactor(clearnode::RPCEntry): replace sig `[]string` with `[]Signature`
* feat(clearnode/nitrolite): add Sigs2Strings, Strings2Sigs helpers
* fix(integration): tests sig migration (#289)
* feat(docker-compose): add ability to pass logger visibility to clearnode
* fix(clearnode): raw ECDSA sign and verify
* fix(clearnode): try to extract req id on ummarshal error
* fix(integration): update sig to new type
* feat(sdk): change type of sig array to contain only Hex
* refactor(clearnode): remove check on nil Req, zero-init instead
* fix(clearnode:nitrolite): remove unintended side-effect of sig param modif
* feat(custody): add note about ephemeral final state
* style(contract): run forge fmt
* fix(clearnode/docs): remove legacy signature format
* feat(custody): eip-1271, eip-6492 sigs support (#293)
* feat(contract): add ERC-1271,6492 support
* test(contract/Utils.sol): add ERC-1271, 6492 tests
* refactor(contract:Utils.t.sol): separate tests into contracts
* refactor(UtilsHarness): do NOT expose constants
* fix(contracts/adjudicators): use verifyStateSignature instead of just EOA sig
* test(contract/Custody): add ERC-1271, 6492 sig to integration test
* test(contract/Custody): add challenge with EIP-712, EIP-1271 tests
* refactor(contract/Utils): reorder recoverStateEIP712Signer params for consistency
* test(contract): remove console.logs
* feat(contract): clarify Utils comments
* refactor(contract): optimize Custody and Utils sig verification functions
* style(contract): run forge fmt
* feat: replace `stateHash` with `packedState` in message signing (#295)
* feat(contract): replace stateHash with packedState in signing
* test(contract): migrate to getPackedState
* feat(contract): remove getStateHash
* feat(clearnode): remove state_hash, rename EncodeState to Pack
* feat(sdk): remove state_hash, add getPackedState
* refactor(sdk): supply channelId and state to signState
* docs(website): migrate Sig to Hex, add supported signature formats
---------
Co-authored-by: MaxMoskalenko <mx.msklnk@gmail.com>1 parent 608d92e commit 97a4e03
71 files changed
Lines changed: 4428 additions & 2899 deletions
File tree
- clearnode
- docs
- nitrolite
- testing
- contract
- script
- src
- adjudicators
- interfaces
- test
- adjudicators
- mocks
- erc7824-docs/docs
- nitrolite_client
- advanced
- quick_start
- examples
- cerebro/clearnet
- snake/client/src/services
- integration
- common
- tests
- sdk
- src
- abis
- client
- services
- rpc
- parse
- types
- utils
- test/unit
- client
- rpc
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
117 | | - | |
| 116 | + | |
118 | 117 | | |
119 | | - | |
120 | | - | |
| 118 | + | |
| 119 | + | |
121 | 120 | | |
122 | | - | |
123 | | - | |
| 121 | + | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
| |||
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 132 | + | |
140 | 133 | | |
141 | 134 | | |
142 | 135 | | |
| |||
217 | 210 | | |
218 | 211 | | |
219 | 212 | | |
220 | | - | |
| 213 | + | |
221 | 214 | | |
222 | | - | |
223 | | - | |
| 215 | + | |
| 216 | + | |
224 | 217 | | |
225 | | - | |
226 | | - | |
| 218 | + | |
227 | 219 | | |
228 | 220 | | |
229 | 221 | | |
| |||
234 | 226 | | |
235 | 227 | | |
236 | 228 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 229 | + | |
243 | 230 | | |
244 | 231 | | |
245 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
| 833 | + | |
834 | 834 | | |
835 | | - | |
| 835 | + | |
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
| 848 | + | |
854 | 849 | | |
855 | 850 | | |
856 | 851 | | |
| |||
890 | 885 | | |
891 | 886 | | |
892 | 887 | | |
893 | | - | |
| 888 | + | |
894 | 889 | | |
895 | 890 | | |
896 | 891 | | |
| |||
905 | 900 | | |
906 | 901 | | |
907 | 902 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
| 903 | + | |
914 | 904 | | |
915 | 905 | | |
916 | 906 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
11 | 56 | | |
12 | 57 | | |
13 | 58 | | |
14 | | - | |
| 59 | + | |
15 | 60 | | |
16 | 61 | | |
17 | 62 | | |
18 | 63 | | |
19 | 64 | | |
20 | | - | |
| 65 | + | |
21 | 66 | | |
22 | 67 | | |
23 | 68 | | |
24 | | - | |
| 69 | + | |
25 | 70 | | |
26 | 71 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
31 | 76 | | |
32 | | - | |
| 77 | + | |
33 | 78 | | |
34 | 79 | | |
35 | 80 | | |
36 | 81 | | |
37 | 82 | | |
38 | 83 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
42 | 87 | | |
43 | | - | |
44 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
45 | 91 | | |
46 | 92 | | |
47 | | - | |
| 93 | + | |
48 | 94 | | |
49 | 95 | | |
50 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
171 | | - | |
| 170 | + | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
358 | | - | |
| 357 | + | |
359 | 358 | | |
360 | 359 | | |
361 | 360 | | |
| |||
0 commit comments