Add max input POD check to MainPodBuilder (#440)

This commit is contained in:
Ahmad Afuni 2025-12-08 23:23:51 +10:00 committed by GitHub
parent 42f979c408
commit 32dc85471d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 4 deletions

View file

@ -148,8 +148,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Build a pod to prove the statement `over_9000("Alice")`
let mut builder = MainPodBuilder::new(&params, vd_set);
builder.add_pod(pod_alice_lvl_1_points);
builder.add_pod(pod_alice_lvl_2_points);
builder.add_pod(pod_alice_lvl_1_points)?;
builder.add_pod(pod_alice_lvl_2_points)?;
let st_points_total = builder.priv_op(Operation::sum_of(3512 + 5771, 3512, 5771))?;
let st_gt_9000 = builder.priv_op(Operation::gt(3512 + 5771, 9000))?;
let _st_over_9000 = builder.pub_op(Operation::custom(