Commit b4660eb
authored
feat: ssz infrastructure (#580)
This pulls out the ssz infrastructure in #493 into its own PR. Functionally, this should change nothing but it enables hashing for the checks required in the spec tests
This uses new functions `to_variable_list` and `to_variable_list_with_error` which both take the length as a generic to check the upper bound of the data being validated. Allows us to use `From` while also ensuring that we reject invalid length data.
This is the base PR for all of the spec test as we must hash the messages for output comparison against go-ssv
Co-Authored-By: Zacholme7 <zacholme@gmail.com>
Co-Authored-By: Zac Holme <79027434+Zacholme7@users.noreply.github.com>1 parent 21ae966 commit b4660eb
File tree
27 files changed
+974
-376
lines changed- anchor
- common
- qbft
- src
- ssv_types
- src
- message_sender
- src
- message_validator
- src
- network
- signature_collector/src
- validator_store/src
27 files changed
+974
-376
lines changedSome 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 | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
99 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
100 | 111 | | |
0 commit comments