Commit 65f7d4e
authored
feat(prover): Witness generator service (#4219)
## What ❔
The Witness generator Service is a lib for running Witness generator.
The primitive exported by this lib is witness_generator_runner which is
based on
`ProverJobProcessor`.
<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->
## Why ❔
The lib makes it easier for external teams to implement their own
Artifacts Manager, Keystore and DB to run Witness Generator.
<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- The `Why` has to be clear to non-Matter Labs entities running their
own ZK Chain -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->
## Is this a breaking change?
- [ ] Yes
- [ ] No
## Operational changes
<!-- Any config changes? Any new flags? Any changes to any scripts? -->
<!-- Please add anything that non-Matter Labs entities running their own
ZK Chain may need to know -->
## Checklist
<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->
- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev
lint`.1 parent 0d150de commit 65f7d4e
File tree
50 files changed
+906
-503
lines changed- prover
- crates
- bin
- circuit_prover/src
- gpu_checker/src
- witness_generator
- src
- rounds
- lib
- circuit_prover_service
- src
- gpu_circuit_prover
- types
- keystore
- src
- prover_job_processor/src
- witness_generator_service
- src
- rounds
- basic_circuits
- leaf_aggregation
- node_aggregation
- recursion_tip
- scheduler
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+906
-503
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 | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 37 | + | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | | - | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
98 | 136 | | |
99 | 137 | | |
100 | 138 | | |
| |||
109 | 147 | | |
110 | 148 | | |
111 | 149 | | |
| 150 | + | |
112 | 151 | | |
113 | 152 | | |
114 | 153 | | |
| |||
129 | 168 | | |
130 | 169 | | |
131 | 170 | | |
132 | | - | |
133 | 171 | | |
134 | 172 | | |
135 | 173 | | |
| |||
159 | 197 | | |
160 | 198 | | |
161 | 199 | | |
162 | | - | |
| 200 | + | |
163 | 201 | | |
164 | 202 | | |
| 203 | + | |
| 204 | + | |
165 | 205 | | |
166 | 206 | | |
167 | 207 | | |
| |||
170 | 210 | | |
171 | 211 | | |
172 | 212 | | |
173 | | - | |
| 213 | + | |
174 | 214 | | |
175 | | - | |
176 | | - | |
| 215 | + | |
| 216 | + | |
177 | 217 | | |
178 | 218 | | |
179 | 219 | | |
180 | 220 | | |
| 221 | + | |
181 | 222 | | |
182 | | - | |
| 223 | + | |
183 | 224 | | |
184 | 225 | | |
185 | | - | |
186 | | - | |
| 226 | + | |
| 227 | + | |
187 | 228 | | |
188 | 229 | | |
189 | 230 | | |
190 | 231 | | |
| 232 | + | |
191 | 233 | | |
192 | | - | |
| 234 | + | |
193 | 235 | | |
194 | 236 | | |
195 | | - | |
196 | | - | |
| 237 | + | |
| 238 | + | |
197 | 239 | | |
198 | 240 | | |
199 | 241 | | |
200 | 242 | | |
| 243 | + | |
201 | 244 | | |
202 | | - | |
| 245 | + | |
203 | 246 | | |
204 | 247 | | |
205 | | - | |
206 | | - | |
| 248 | + | |
| 249 | + | |
207 | 250 | | |
208 | 251 | | |
209 | 252 | | |
210 | 253 | | |
| 254 | + | |
211 | 255 | | |
212 | | - | |
| 256 | + | |
213 | 257 | | |
214 | 258 | | |
215 | | - | |
216 | | - | |
| 259 | + | |
| 260 | + | |
217 | 261 | | |
218 | 262 | | |
219 | 263 | | |
220 | 264 | | |
| 265 | + | |
221 | 266 | | |
222 | | - | |
| 267 | + | |
223 | 268 | | |
224 | 269 | | |
225 | 270 | | |
226 | | - | |
| 271 | + | |
227 | 272 | | |
228 | 273 | | |
229 | 274 | | |
| |||
233 | 278 | | |
234 | 279 | | |
235 | 280 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 281 | + | |
| 282 | + | |
252 | 283 | | |
253 | 284 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 6 | | |
24 | 7 | | |
25 | 8 | | |
| |||
0 commit comments