Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Conversation

lightsing
Copy link
Member

No description provided.

@lightsing lightsing changed the title fix LtChip range check [WIP] fix LtChip range check Jul 31, 2023
lightsing added a commit that referenced this pull request Aug 1, 2023
# Conflicts:
#	zkevm-circuits/src/rlp_circuit_fsm.rs
#	zkevm-circuits/src/rlp_circuit_fsm/dev.rs
#	zkevm-circuits/src/super_circuit.rs
@lightsing lightsing changed the title [WIP] fix LtChip range check fix LtChip range check Aug 2, 2023
@lightsing
Copy link
Member Author

\b run testool

@zkevm-circuits-bots
Copy link

Copy link

@silathdiir silathdiir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lispc
Copy link

lispc commented Aug 3, 2023

don't merge now. Wait for my review..

@lightsing lightsing requested a review from naure August 4, 2023 06:59
Copy link

@naure naure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should revert to the smallest size of test circuits.

@lispc lispc merged commit d0e7a07 into develop Aug 7, 2023
@lispc lispc deleted the fix/lt-chip-range-check branch August 7, 2023 07:42
lispc pushed a commit that referenced this pull request Aug 16, 2023
* add range check

* fix unconstrained

* sort fields

* merge import

* unnecessary clone

* add range check

* add range table

* replace Range256Table of rlp_circuit_fsm

* replace u16_table of tx_circuit

* use TableColumn

* merge #694

* add type alias

* use type alias

* fix import

* merge #690 and reduce LtChip use

* missing q_enable

* annotate lookup column

* fix dev table load

* add RangeCheck

* minimal bug reproduce

* fix test

* clippy

* clippy

* remove print

* fix exp_circuit

* fix offset

* add u128 and cleanup

* revert to u8 table lookup

* use u8 table lookup for u8 cell

* fix dev_load

* constrain unused cell == 0

* add explain for padding

* update unusable_rows

* performance fix

* use Rotation::cur()

* fix incorrect constraint for unused_cells

* add comments describe row used

* add comments to clarify the ranges

Co-authored-by: Aurélien Nicolas <info@nau.re>

* rename conflicted names

Co-authored-by: Aurélien Nicolas <info@nau.re>

* remove incorrect comment

Co-authored-by: Aurélien Nicolas <info@nau.re>

* explain why OFFSET_INCREMENT is 8usize

* use u16 for carry_lo/hi

* fix gadget test

* remove unused cell constrain

---------

Co-authored-by: DreamWuGit <wwuwwei@126.com>
Co-authored-by: Aurélien Nicolas <info@nau.re>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants