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
Creates a single nullifier account using a ZK proof. The nullifier is derived from `Poseidon(verification_id, secret)` where only the prover knows the secret.
58
+
59
+
**Properties:**
60
+
61
+
- The secret stays private
62
+
- The nullifier is deterministic from the secret and verification_id
63
+
- If the nullifier address already exists, the transaction fails
64
+
65
+
### 2. `create_batch_nullifier`
66
+
67
+
Creates four nullifier accounts with a single ZK proof. Each nullifier is derived from the same `verification_id` but different secrets.
26
68
27
-
| Instruction | Nullifiers | Description |
28
-
|-------------|-----------|-------------|
29
-
|`create_nullifier`| 1 | Single nullifier with ZK proof |
30
-
|`create_batch_nullifier`| 4 | Batch of 4 with single proof |
69
+
**Properties:**
31
70
32
-
## Compute Units
71
+
- All four secrets stay private
72
+
- Single proof verification is ~2.7x more efficient per nullifier than four separate proofs
73
+
- If any nullifier address already exists, the entire transaction fails
0 commit comments