mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-08 00:33:06 +00:00
This adds padding rows which satisfy the ordering checks. To ensure that they also satisfy the value consistency checks, I just copied the address and value from the last operation. I think this method of padding feels more natural, though it is a bit more code since we need to calculate the max range check in a different way. But on the plus side, the constraints are a bit smaller and simpler. Also added a few constraints that I think we need for soundness: - Each `is_channel` flag is bool. - Sum of `is_channel` flags is bool. - Dummy operations must be reads (otherwise the prover could put writes in the memory table which aren't in the CPU table).