Skip to content

Commit 0358ccc

Browse files
author
tilo-14
committed
Replace create-nullifier example with nullifier-program submodule
Remove basic-operations/anchor/create-nullifier, add Lightprotocol/nullifier-program as root-level submodule, update README with SDK and client usage links, remove from CI matrix.
1 parent e2ea201 commit 0358ccc

15 files changed

Lines changed: 8 additions & 11515 deletions

File tree

.github/workflows/typescript-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
- create-and-update
3131
- basic-operations/anchor/burn
3232
- basic-operations/anchor/create
33-
- basic-operations/anchor/create-nullifier
3433
- basic-operations/anchor/update
3534
- basic-operations/anchor/close
3635
- basic-operations/anchor/reinit

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "airdrop-implementations/distributor"]
22
path = airdrop-implementations/distributor
33
url = https://github.com/Lightprotocol/distributor.git
4+
[submodule "nullifier-program"]
5+
path = nullifier-program
6+
url = https://github.com/Lightprotocol/nullifier-program.git

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ For simple client side distribution visit [this example](https://github.com/Ligh
1313

1414
### Basic Operations
1515

16-
- **[create-nullifier](./basic-operations/anchor/create-nullifier)** - Basic Anchor example to create nullifiers for payments.
1716
- **create** - Initialize a new compressed account
1817
- [Anchor](./basic-operations/anchor/create) | [Native](./basic-operations/native/programs/create)
1918
- **update** - Modify data in an existing compressed account
@@ -25,6 +24,10 @@ For simple client side distribution visit [this example](https://github.com/Ligh
2524
- **burn** - Permanently delete a compressed account
2625
- [Anchor](./basic-operations/anchor/burn) | [Native](./basic-operations/native/programs/burn)
2726

27+
### Nullifier Program
28+
29+
* [**nullifier-program**](https://github.com/Lightprotocol/nullifier-program) - For some use cases, such as sending payments, you might want to prevent your onchain instruction from being executed more than once. Creates a rent-free PDA derived from an id. If the id has been used before, the PDA already exists, causing the instruction to fail. SDK: [`light-nullifier-program`](https://docs.rs/light-nullifier-program) | [Example client usage](https://github.com/Lightprotocol/examples-light-token/blob/main/rust-client/actions/create_nullifier.rs)
30+
2831
### Counter Program
2932

3033
Full compressed account lifecycle (create, increment, decrement, reset, close):

basic-operations/anchor/create-nullifier/Anchor.toml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)