pod2/src/backends/plonky2
Eduard S. 0fca00cc93
Use predicate hash in statements instead of the literal predicate
Resolve #448 

Previously a predicate was 6 elements.  Now it grows to 8 elements; and the hash is 4 elements.

Some parts of the circuit require only require equality checks with the predicate: that works with the predicate hash.  Other parts require inspecting or working with particular elements in the predicate, those need the preimage of the predicate hash.
Both `StatementTarget` and `StatementTmplTarget` have been updated to include the predicate hash and optionally the predicate.  When the predicate is included, constraints are automatically generated for `pred_hash = hash(pred)`.  We only include the predicate when needed.
2026-01-19 11:02:11 +01:00
..
circuits Use predicate hash in statements instead of the literal predicate 2026-01-19 11:02:11 +01:00
mainpod Use predicate hash in statements instead of the literal predicate 2026-01-19 11:02:11 +01:00
mock Remove max_depth in native MerkleTree (#442) 2025-12-16 13:18:49 +01:00
primitives Remove max_depth in native MerkleTree (#442) 2025-12-16 13:18:49 +01:00
recursion Adjust default parameters (#406) 2025-09-08 10:14:12 +02:00
basetypes.rs Remove max_depth in native MerkleTree (#442) 2025-12-16 13:18:49 +01:00
emptypod.rs Remove max_depth in native MerkleTree (#442) 2025-12-16 13:18:49 +01:00
error.rs No Pod IDs (#394) 2025-08-27 13:19:40 +02:00
mod.rs No Pod IDs (#394) 2025-08-27 13:19:40 +02:00
serialization.rs allow downstream crates to instantiate *CircuitDataSerializer (#405) 2025-09-03 10:13:54 -07:00
signer.rs No Pod IDs (#394) 2025-08-27 13:19:40 +02:00