Skip to content

Commit eb5448a

Browse files
CopilotSteake
andcommitted
Improve constraint descriptions for accuracy
Co-authored-by: Steake <530040+Steake@users.noreply.github.com>
1 parent 531888c commit eb5448a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/issue-45.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ The circuits enforce the following constraints:
5555

5656
**StateCircuit Constraints:**
5757
1. `computed_old_root == old_root` - Verifies the old Merkle tree state
58-
2. `H(leaf) == nullifier` - Ensures proper nullifier derivation
59-
3. `H(new_leaf) == commitment` - Validates new commitment
58+
2. `H(leaf) == nullifier` - Validates that the nullifier is correctly derived from the leaf value
59+
3. `H(new_leaf) == commitment` - Validates that the commitment is correctly derived from the new leaf value
6060
4. `computed_new_root == new_root` - Verifies the new Merkle tree state
6161

6262
**NullifierCircuit Constraints:**
63-
1. `computed_root.is_eq(set_root) == is_member` - Verifies that the Merkle root equality check result matches the membership flag
63+
1. The circuit enforces that `roots_equal == is_member`, where `roots_equal` is the boolean result of checking if the computed Merkle root matches the set root. This ensures that membership verification is correct: if `is_member` is true, the roots must match, and if false, they must differ.
6464

6565
### API Methods
6666

0 commit comments

Comments
 (0)