You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: barretenberg/cpp/pil/vm2/tx.pil
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -525,7 +525,7 @@ namespace tx;
525
525
note_hash_tree_check.next_root
526
526
};
527
527
528
-
// If reverted, the next state is unconstrained. This is okay since we are going to restore the state at the end of setup or fail proving.
528
+
// If reverted, the next state is unconstrained as `should_note_hash_append = 0`. This is okay since we are going to restore the state at the end of setup or fail proving.
529
529
// Namely, #[RESTORE_STATE_ON_REVERT] restores the tree state to its value at the end of setup.
// Collisions are disallowed, if the nullifier already exists the transaction is unprovable
560
560
#[NULLIFIER_APPEND]
561
561
should_nullifier_append {
562
562
leaf_value,
563
563
prev_nullifier_tree_root,
564
-
reverted,
564
+
precomputed.zero, // Nullifiers emitted in tx trace cannot have existed
565
565
next_nullifier_tree_root,
566
566
prev_nullifier_tree_size,
567
567
discard, // from tx_discard.pil virtual trace
@@ -580,10 +580,10 @@ namespace tx;
580
580
indexed_tree_check.sel_silo
581
581
};
582
582
583
-
// If reverted, the next state is unconstrained. This is okay since we are going to restore the state at the end of setup.
583
+
// If reverted, the next state is unconstrained since `should_nullifier_append = 0`. This is okay since we are going to restore the state at the end of setup.
584
584
// Namely, #[RESTORE_STATE_ON_REVERT] restores the tree state to its value at the end of setup.
0 commit comments