pod2/src/backends/plonky2/mainpod
Eduard S. d3fef8392e
calculate MainPod id in a dynamic-friendly way (#241)
* calculate MainPod id in a dynamic-friendly way

The MainPod id is now calculated with front padding and a fixed size
independent of max_public_statements so that introduction gadgets can be
verified by a MainPod while paying only for the number of statements
they use.  This is because with front padding of none-statements we can
precompute the poseidon state corresponding to absorbing all the padding
statements and only pay constraints for the non-padding statements.

The id is calculated as follows:
`id = hash(serialize(reverse(statements || none-statements)))`

* fix test
2025-05-23 10:12:28 +02:00
..
mod.rs calculate MainPod id in a dynamic-friendly way (#241) 2025-05-23 10:12:28 +02:00
operation.rs Constraints for custom predicates (#227) 2025-05-13 11:00:45 +02:00
statement.rs chore: implement Gt and GtEq as syntactic sugar (#216) 2025-05-06 06:59:59 +10:00