-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prover)!: Add EIP4844 support for provers subsystem (#1200)
This PR adds support for EIP4844 as part of 1.4.2 release. To support EIP4844, the prover needs to: - prove EIP4844 blobs - inject the result into scheduler proof EIP4844 is special cased for 1.4.2. Later (1.5.0) it will behave like any other circuit. How EIP4844 works? Blob proofs are generated at basic/ aggregation_round 0 stage and are marked as final nodes to be inserted into scheduler. If there is a single blob, the [witness for the second blob needs to be zeroed out](https://github.com/matter-labs/era-zkevm_circuits/blob/v1.4.1/src/scheduler/mod.rs#L1149) whilst the [proof still needs to be injected](https://github.com/matter-labs/era-zkevm_circuits/blob/v1.4.1/src/scheduler/mod.rs#L1165) (any proof will work). Blobs are stored in `witness_inputs_fri` and `scheduler_dependency_tracker` is aware of the proofs as `circuit_255_final_prover_job_id_0` for the first blob and `circuit_255_final_prover_job_id_1` for the second blob. (circuit id 255 is blob, until the code-base migrates to 1.5.0, when it will become a regular circuit). --------- Co-authored-by: mm-zk <mm@matterlabs.dev> Co-authored-by: Roman Brodetski <rb@matterlabs.dev> Co-authored-by: zksync-admin-bot2 <temp-bot@matterlabs.dev>
- Loading branch information
1 parent
13b82a0
commit 6953e89
Showing
34 changed files
with
605 additions
and
193 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c212918b31dabebf08a84efdfe1feee85765.json → ...b38e8f1c76a95c934b8532b1fb56be3de721.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...lib/dal/.sqlx/query-510bfea2346a8c63e74222e1159de366f88c20d00a8d928b6cf4caae0702b333.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...lib/dal/.sqlx/query-75f6eaa518e7840374c4e44b0788bf92c7f2c55386c8208e3a82b30456abd5b4.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...lib/dal/.sqlx/query-9b90f7a7ffee3cd8439f90a6f79693831e2ab6d6d3c1805df5aa51d76994ec19.json
This file was deleted.
Oops, something went wrong.
14 changes: 13 additions & 1 deletion
14
...lib/dal/.sqlx/query-e3479d12d9dc97001cf03dc42d9b957e92cd375ec33fe16f855f319ffc0b208e.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
core/lib/dal/migrations/20240226120530_add_support_for_eip4844.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE scheduler_dependency_tracker_fri DROP COLUMN IF EXISTS eip_4844_final_prover_job_id_1; | ||
ALTER TABLE scheduler_dependency_tracker_fri DROP COLUMN IF EXISTS eip_4844_final_prover_job_id_0; | ||
|
||
ALTER TABLE witness_inputs_fri DROP COLUMN IF EXISTS eip_4844_blobs; |
4 changes: 4 additions & 0 deletions
4
core/lib/dal/migrations/20240226120530_add_support_for_eip4844.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE witness_inputs_fri ADD COLUMN IF NOT EXISTS eip_4844_blobs BYTEA; | ||
|
||
ALTER TABLE scheduler_dependency_tracker_fri ADD COLUMN IF NOT EXISTS eip_4844_final_prover_job_id_0 BIGINT; | ||
ALTER TABLE scheduler_dependency_tracker_fri ADD COLUMN IF NOT EXISTS eip_4844_final_prover_job_id_1 BIGINT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.