Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ZELLIC-ZK1-4 Missing range checks in MulAdd chip (scroll-tech#685)
* 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 scroll-tech#694 * add type alias * use type alias * fix import * merge scroll-tech#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 <[email protected]> * rename conflicted names Co-authored-by: Aurélien Nicolas <[email protected]> * remove incorrect comment Co-authored-by: Aurélien Nicolas <[email protected]> * explain why OFFSET_INCREMENT is 8usize * use u16 for carry_lo/hi * fix gadget test * remove unused cell constrain --------- Co-authored-by: DreamWuGit <[email protected]> Co-authored-by: Aurélien Nicolas <[email protected]>
- Loading branch information