forked from privacy-scaling-explorations/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EndBlock (privacy-scaling-explorations#795)
* Implement EndBlock - Implement EndBlock following updated spec at privacy-scaling-explorations/zkevm-specs#286 - Update BeginTx so that it forbids Transaction.CallerAccount != 0 (in order to support Padding Txs as described in privacy-scaling-explorations/zkevm-specs#273 (comment)) - Update state transition constraints to support empty block. - Extend ConstraintBuilder with: - Constraint location (step_first, step_last, step_any) - Add copy cells and fixed column to store constants to be accessed via copy constraints at fixed offsets. Update from spec update Constraint rw_counter to be 1 in the first step unconditionally when q_step_first is enabled, instead of via BeginTx, so that the constrain also applies on an empty block (where there's no BeginTx) Apply suggestion by @han0110 Apply suggestions by @ChihChengLiang Fix clippy complaints Apply suggestions by @han0110 Do some cleaning * Rename functions to reduce conflicts Co-authored-by: Rohit Narurkar <[email protected]>
- Loading branch information
1 parent
5549e71
commit f0c1cf8
Showing
44 changed files
with
1,279 additions
and
502 deletions.
There are no files selected for viewing
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
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.