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: zk/nullifier/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Can be added to your custom program without requiring a custom circuit.
15
15
| Compressed PDA |~0.000015 SOL |
16
16
17
17
In detail, a nullifier is a hash derived from your secret and the leaf the transaction is using.
18
-
When you use private state (stored in a Merkle tree leaf), you publish the nullifier. The program stores it in a set.
18
+
When you use private state (stored in a Merkle tree leaf), you publish the nullifier to invalidate the state to prevent double spending. The program stores all nullifiers in a set.
19
19
If anyone tries to spend the same leaf again, the nullifier would match one already stored, so the transaction fails.
20
20
The nullifier reveals nothing about which leaf was spent.
21
21
Different state produces different nullifiers, so observers can't link a nullifier back to its source leaf.
0 commit comments