Commit acfa977
refactor(coprocessor): remove tenants notion from DB and related code (#1856)
Replace with:
* keys table - containing FHE keys
* crs table - containing the CRS
* host_chains table - containing host chain info
Rationale is:
* the fact that we now have only one FHE keychain (that can have
multiple FHE keys)
* CRS and keys can be changed independently via events from the GW
* we want to support multiple host chains
* we want to remove remains of previous design with tenants, IDs,
tenant API keys, etc.
We also simplify code where it no longer needs tenants, chain IDs, etc.
Co-authored-by: Oba <obatirou@gmail.com>1 parent ca9e6eb commit acfa977
File tree
181 files changed
+3267
-3933
lines changed- .devcontainer
- .github/workflows
- charts/coprocessor
- templates
- coprocessor
- docs/getting_started/fhevm/coprocessor
- fhevm-engine
- .sqlx
- db-migration
- migrations
- fhevm-engine-common/src
- gw-listener
- src
- bin
- tests
- host-listener
- src
- bin
- cmd
- database
- poller
- tests
- scheduler/src
- dfg
- sns-worker
- src
- bin
- utils
- tests
- stress-test-generator
- src
- bin
- test-harness/src
- tfhe-worker
- benches
- scripts
- src
- bin
- tests
- transaction-sender
- src/ops
- tests
- zkproof-worker/src
- tests
- test-suite/fhevm
- docker-compose
- env/staging
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
181 files changed
+3267
-3933
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
244 | 250 | | |
245 | 251 | | |
246 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 15 | | |
24 | 16 | | |
25 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 33 | | |
40 | 34 | | |
41 | 35 | | |
| |||
82 | 76 | | |
83 | 77 | | |
84 | 78 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 79 | | |
91 | 80 | | |
92 | 81 | | |
| |||
130 | 119 | | |
131 | 120 | | |
132 | 121 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 122 | | |
139 | 123 | | |
140 | 124 | | |
141 | 125 | | |
142 | | - | |
143 | 126 | | |
144 | 127 | | |
145 | 128 | | |
| |||
235 | 218 | | |
236 | 219 | | |
237 | 220 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | 221 | | |
244 | 222 | | |
245 | 223 | | |
246 | 224 | | |
247 | 225 | | |
248 | | - | |
249 | 226 | | |
250 | 227 | | |
251 | 228 | | |
| |||
340 | 317 | | |
341 | 318 | | |
342 | 319 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | 320 | | |
349 | 321 | | |
350 | 322 | | |
351 | 323 | | |
352 | 324 | | |
353 | | - | |
354 | 325 | | |
355 | 326 | | |
356 | 327 | | |
| |||
535 | 506 | | |
536 | 507 | | |
537 | 508 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | 509 | | |
544 | 510 | | |
545 | | - | |
546 | | - | |
547 | 511 | | |
548 | 512 | | |
549 | 513 | | |
| |||
552 | 516 | | |
553 | 517 | | |
554 | 518 | | |
555 | | - | |
| 519 | + | |
556 | 520 | | |
557 | 521 | | |
558 | 522 | | |
| |||
794 | 758 | | |
795 | 759 | | |
796 | 760 | | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 761 | | |
803 | 762 | | |
804 | 763 | | |
805 | 764 | | |
806 | | - | |
807 | 765 | | |
808 | 766 | | |
809 | 767 | | |
| |||
Lines changed: 0 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 5 | | |
27 | 6 | | |
28 | 7 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments