Commit 1a297be
feat: FFLONK support for compressor (#3359)
## What ❔
Enables support of FFLONK compression
* Compressor now can be run with `--flonk=true` flag to run compressor
in FFLONK mode(or by running `zkstack prover run --component compressor
--mode=fflonk`), default mode is still PLONK
* Final proof is now an enum: it can be either
`L1BatchProofForL1::Fflonk` or `L1BatchProofForL1::Plonk` containing the
proof inside
* We are now making use out of `compression_mode` environment variable -
FFLONK compressor can be run in 5 modes - 5th one is the most effective,
so default value is 5.
* VK setup data generator is updated to generate setup and verification
keys for FFLONK as well.
## Why ❔
<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->
## 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 `zk fmt` and `zk lint`.
---------
Co-authored-by: Daniyar Itegulov <[email protected]>
Co-authored-by: Igor Aleksanov <[email protected]>
Co-authored-by: zksync-admin-bot2 <[email protected]>1 parent d8b5d29 commit 1a297be
File tree
128 files changed
+5463
-642
lines changed- .github/workflows
- core
- lib
- basic_types/src
- config/src
- configs
- contracts/src
- dal
- .sqlx
- migrations
- src
- models
- env_config/src
- eth_client/src
- l1_contract_interface
- src/i_executor/methods
- protobuf_config/src
- proto/config
- prover_interface
- src
- tests
- types/src
- vm_executor/src/oneshot
- node
- api_server/src/web3/namespaces
- eth_sender/src
- eth_watch/src
- event_processors
- tests
- external_proof_integration_api/src
- genesis/src
- proof_data_handler/src
- docker
- circuit-prover-gpu
- prover-gpu-fri
- etc/env
- base
- file_based
- prover
- crates
- bin
- circuit_prover
- proof_fri_compressor
- src
- prover_cli/src/commands
- status
- prover_fri
- src
- tests
- vk_setup_data_generator_server_fri
- src
- witness_generator/src
- rounds/basic_circuits
- witness_vector_generator/tests
- lib
- circuit_prover_service/src
- gpu_circuit_prover
- witness_vector_generator
- keystore
- src
- prover_dal
- .sqlx
- migrations
- src
- prover_fri_types/src
- prover_fri_utils/src
- data/keys
- zkstack_cli/crates/zkstack
- completion
- src
- commands
- chain
- args
- init
- init
- dev/commands
- prover
- args
- ecosystem
- args
- prover
- args
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
128 files changed
+5463
-642
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
34 | 49 | | |
35 | 50 | | |
36 | 51 | | |
37 | | - | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
| |||
51 | 65 | | |
52 | 66 | | |
53 | 67 | | |
54 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
55 | 72 | | |
56 | | - | |
57 | 73 | | |
58 | | - | |
59 | 74 | | |
60 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
61 | 79 | | |
62 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
63 | 83 | | |
64 | 84 | | |
65 | 85 | | |
66 | 86 | | |
| 87 | + | |
67 | 88 | | |
68 | 89 | | |
69 | | - | |
| 90 | + | |
70 | 91 | | |
71 | 92 | | |
72 | | - | |
| 93 | + | |
73 | 94 | | |
74 | 95 | | |
75 | | - | |
| 96 | + | |
76 | 97 | | |
77 | 98 | | |
78 | 99 | | |
79 | 100 | | |
80 | 101 | | |
81 | | - | |
| 102 | + | |
82 | 103 | | |
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
86 | 107 | | |
87 | | - | |
| 108 | + | |
88 | 109 | | |
89 | 110 | | |
90 | | - | |
| 111 | + | |
91 | 112 | | |
92 | 113 | | |
93 | 114 | | |
94 | 115 | | |
95 | 116 | | |
96 | | - | |
| 117 | + | |
97 | 118 | | |
98 | 119 | | |
99 | 120 | | |
100 | 121 | | |
101 | 122 | | |
102 | 123 | | |
103 | 124 | | |
| 125 | + | |
104 | 126 | | |
105 | | - | |
106 | 127 | | |
107 | 128 | | |
108 | 129 | | |
109 | 130 | | |
110 | 131 | | |
111 | | - | |
| 132 | + | |
112 | 133 | | |
113 | 134 | | |
114 | 135 | | |
| |||
117 | 138 | | |
118 | 139 | | |
119 | 140 | | |
120 | | - | |
121 | | - | |
| 141 | + | |
| 142 | + | |
122 | 143 | | |
123 | 144 | | |
124 | 145 | | |
| |||
0 commit comments