Add max input POD check to MainPodBuilder (#440)
This commit is contained in:
parent
42f979c408
commit
32dc85471d
4 changed files with 16 additions and 4 deletions
|
|
@ -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(¶ms, 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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue