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
-`data: NullifierInstructionData` - validity proof, tree info, indices
34
-
-`nullifiers: Vec<[u8; 32]>` - nullifier values to register
35
-
36
-
**Behavior:**
37
-
- Derives address from `[b"nullifier", nullifier_value]`
38
-
- Creates compressed account at derived address
39
-
- Fails if address already exists (prevents replay)
24
+
1. Client computes nullifier values (typically `hash(secret, context)`) and fetches validity proof from RPC for the derived addresses to prove it does not exist.
25
+
3. Client calls `create_nullifier` with data, nullifiers and validity proof
26
+
4. Program derives addresses, creates compressed accounts via CPI to Light system program
27
+
5. If any address exists, Light system program rejects the CPI
0 commit comments