Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Public input circuit optimization (privacy-scaling-explorations#730)
* add constraints on calldata's tx_id and index columns so as to reduce length of rpi col * add constraints on gas_cost col * add lookup constraint to make sure the call_data_gas_cost assigned equals gas_cost that is calculated * assert the first row of call_data * fix: gas_cost_next = gas_cost + gas_next * refine: assert call_data_gas_cost = 0 when call_data_length = 0 * refactor: use IsZeroChip * refactor: assign names to hardcoded-constants * add equality constraint between calldata value between rpi * clippy and fmt * tx_id' - tx_id can be larger than one * remove leftover comments * fix: tag is fixed col * fmt * add comment on using u16 fixed table * fix comment Co-authored-by: kunxian xia <[email protected]> Co-authored-by: Zhang Zhuo <[email protected]>
- Loading branch information