This repository was archived by the owner on Apr 18, 2025. It is now read-only.
forked from privacy-scaling-explorations/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 390
Feat: Support EIP1559 #1030
Merged
Merged
Feat: Support EIP1559 #1030
Conversation
This file contains hidden or 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
kunxian-xia
reviewed
Jan 4, 2024
This reverts commit aecd544.
kunxian-xia
approved these changes
Jan 8, 2024
comments addressed. Will merge |
Velaciela
pushed a commit
that referenced
this pull request
Jan 16, 2024
* setup multiple test bytes * add debug bytes * retrace debug: add ad sk idx * retrace debug: add access list idx wit * add additional witness columns * add additional witness columns * add constraints * add constraints * add constraints * add constraints * generate correct stack states * correct stack witness generation * add stack accumulator * fmt * fmt * remove debug flag * correct tx circuit lookup : * decoding table * correct degree * add decoding table * add decoding table assignment * reduce degree * unnecessary import * fmt * fix constraints * fix constraints * add stack ptr increase * fix constraints * fmt * add stack op witness * add stack op witness * add stack constraints * fmt * add stack constraints * add stack end condition * fmt * fmt * rename beginlist and endlist * adjust test case * change address naming to depth * add instrument booleans * add consistency constraints for access list * add consistency constraints for access list * adjust test * remove debug flag * fmt * refactor accumulating coeff * add stack op enum * refactor decoding table witness * refactor access list indicator columns * remove auto code * refactor syntax * remove comment * add comment * add missing constraints * refactor syntax * debug commit * remove debug line * refactor constructor * refactor push constructor * refactor pop constructor * refactor update * fmt * remove import * debug commit * restore test. fix lookup conditional * restore column in tx table * restore access list idx columns: * add access list dynamic assignment * restore dynamic access list assignment * resolve merge conflict * add section denoter for access list * add access list rlc helper * adjust column and new section init * add boolean instruments, degree fix * add constraints * add constraints * add rlp lookup * add section_rlc starting for access list * add section_rlc accumulation * recover section constraint * look up access list address * lookup access list storage key len * fmt * fmt clippy * remove debug tags * correct lookup of address and storage keys * remove debug flag * add extra gas fields for 1559 * comment * fmt * fmt * add option guard * fmt * unwrap guard * correct witness rows * fmt * add comment * add instrument to fix degree * fix rlp lookup * remove debug tag * remove debug tag * style fmt * adjust section transition * cargo * clip cargo lock * correct merge * debug commit * uncomment test * correct fn name * remove output * refactor assignment * add lookup * fmt * fmt * restore test * remove duplicate * add comments * add comments' * fmt * remove engagement of stack acc * remove stack_acc and add new witness * add lookup from rlp_table * comment correction * add depth constraint decoding table * add cross-depth lookup in decoding table * fmt * clippy * rm comments * stack op order correction * add more strict constraints * remove debug flags * remove debug output * fmt * adjust stack table columns * add stack op id check * adjust access list idx position * revert "adjust access list idx position" This reverts commit aecd544. * remove debug flags * recover init * recover push and pop lookups * add op constraints * fmt * degree reduction boolean constraints * add constraints * fmt * clippy --------- Co-authored-by: xkx <xiakunxian130@gmail.com>
Velaciela
pushed a commit
that referenced
this pull request
Feb 20, 2024
* setup multiple test bytes * add debug bytes * retrace debug: add ad sk idx * retrace debug: add access list idx wit * add additional witness columns * add additional witness columns * add constraints * add constraints * add constraints * add constraints * generate correct stack states * correct stack witness generation * add stack accumulator * fmt * fmt * remove debug flag * correct tx circuit lookup : * decoding table * correct degree * add decoding table * add decoding table assignment * reduce degree * unnecessary import * fmt * fix constraints * fix constraints * add stack ptr increase * fix constraints * fmt * add stack op witness * add stack op witness * add stack constraints * fmt * add stack constraints * add stack end condition * fmt * fmt * rename beginlist and endlist * adjust test case * change address naming to depth * add instrument booleans * add consistency constraints for access list * add consistency constraints for access list * adjust test * remove debug flag * fmt * refactor accumulating coeff * add stack op enum * refactor decoding table witness * refactor access list indicator columns * remove auto code * refactor syntax * remove comment * add comment * add missing constraints * refactor syntax * debug commit * remove debug line * refactor constructor * refactor push constructor * refactor pop constructor * refactor update * fmt * remove import * debug commit * restore test. fix lookup conditional * restore column in tx table * restore access list idx columns: * add access list dynamic assignment * restore dynamic access list assignment * resolve merge conflict * add section denoter for access list * add access list rlc helper * adjust column and new section init * add boolean instruments, degree fix * add constraints * add constraints * add rlp lookup * add section_rlc starting for access list * add section_rlc accumulation * recover section constraint * look up access list address * lookup access list storage key len * fmt * fmt clippy * remove debug tags * correct lookup of address and storage keys * remove debug flag * add extra gas fields for 1559 * comment * fmt * fmt * add option guard * fmt * unwrap guard * correct witness rows * fmt * add comment * add instrument to fix degree * fix rlp lookup * remove debug tag * remove debug tag * style fmt * adjust section transition * cargo * clip cargo lock * correct merge * debug commit * uncomment test * correct fn name * remove output * refactor assignment * add lookup * fmt * fmt * restore test * remove duplicate * add comments * add comments' * fmt * remove engagement of stack acc * remove stack_acc and add new witness * add lookup from rlp_table * comment correction * add depth constraint decoding table * add cross-depth lookup in decoding table * fmt * clippy * rm comments * stack op order correction * add more strict constraints * remove debug flags * remove debug output * fmt * adjust stack table columns * add stack op id check * adjust access list idx position * revert "adjust access list idx position" This reverts commit aecd544. * remove debug flags * recover init * recover push and pop lookups * add op constraints * fmt * degree reduction boolean constraints * add constraints * fmt * clippy --------- Co-authored-by: xkx <xiakunxian130@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Support RLP decoding of EIP2930/EIP1559 nested
access_list
structure. This PR introduces necessary changes to RLP FSM circuit in preparation for lookup from the transaction circuit for EIP1559 specs. (edited+) This PR further implements changes on the tx circuit and table for correct access into RLP-decoded data on eip1559 data fields. Additional constraints and accumulators are added for ensuring no omission of access list fields.Issue Link
???
Type of change
Contents
access_list_idx
andstorage_key_idx
for lookups into values within access list.remaining_bytes
.