Skip to content

Commit d22fbeb

Browse files
author
tilo-14
committed
fix: revert address tree check in zk-id, remove zk-merkle-proof from CI
1 parent 3f6f30a commit d22fbeb

16 files changed

Lines changed: 33 additions & 48 deletions

File tree

.github/workflows/typescript-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ jobs:
7979
example:
8080
- zk/zk-id
8181
- zk/zk-nullifier
82-
- zk/zk-merkle-proof
8382
steps:
8483
- uses: actions/checkout@v4
8584

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ pot
1212
# ZK examples - not ready
1313
zk/mixer/
1414
zk/shielded-pool/
15+
zk/zk-merkle-proof/

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,10 @@ Full compressed account lifecycle (create, increment, decrement, reset, close):
4949

5050
### ZK Programs
5151

52-
**Full Examples:**
5352

5453
- **[zk-id](./zk/zk-id)** - Identity verification using Groth16 proofs. Issuers create credentials; users prove ownership without revealing the credential.
54+
- **[nullifier](./zk/nullifier)** - Simple Program to Create Nullifiers. Requires no custom circuit.
5555

56-
**Basic Examples:**
57-
58-
- **[zk-nullifier](./zk/zk-nullifier)** - Creates one or four nullifiers. Uses Groth16 proofs and compressed accounts.
59-
- **[zk-merkle-proof](./zk/zk-merkle-proof)** - Creates compressed accounts and verifies with Groth16 proofs (without nullifier).
6056

6157

6258
## Light Protocol dependencies

zk/Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
SHELL := /bin/bash
1010

1111
# ZK example directories
12-
ZK_EXAMPLES := zk-nullifier zk-id zk-merkle-proof
12+
ZK_EXAMPLES := zk-nullifier zk-id
1313

1414
.PHONY: all build deploy test-rust test-ts clean setup help $(ZK_EXAMPLES)
1515

@@ -28,7 +28,6 @@ help:
2828
@echo "Individual examples:"
2929
@echo " make zk-nullifier - Build and test zk-nullifier"
3030
@echo " make zk-id - Build and test zk-id"
31-
@echo " make zk-merkle-proof - Build and test zk-merkle-proof"
3231

3332
all: build test-rust test-ts
3433
@echo "All examples built and tested successfully!"
@@ -143,11 +142,3 @@ zk-id:
143142
fi
144143
@echo "zk-id completed!"
145144

146-
zk-merkle-proof:
147-
@echo "Building, deploying, and testing zk-merkle-proof..."
148-
@cd zk-merkle-proof && cargo build-sbf && cargo test-sbf
149-
@solana program deploy zk-merkle-proof/target/deploy/zk_merkle_proof.so
150-
@if [ -f "zk-merkle-proof/package.json" ]; then \
151-
cd zk-merkle-proof && npm run test:ts; \
152-
fi
153-
@echo "zk-merkle-proof completed!"

zk/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ You can use Light to:
1010

1111
## Examples
1212

13-
**Full Examples:**
14-
1513
- **[zk-id](./zk-id)** - Identity verification using Groth16 proofs. Issuers create credentials; users prove ownership without revealing the credential.
16-
17-
**Basic Examples:**
18-
19-
- **[zk-nullifier](./zk-nullifier)** - Creates one or four nullifiers. Uses Groth16 proofs and compressed accounts.
20-
- **[zk-merkle-proof](./zk-merkle-proof)** - Creates compressed accounts and verifies with Groth16 proofs (without nullifier).
14+
- **[nullifier](./nullifier)** - Simple Program to Create Nullifiers. Requires no custom circuit.
2115

2216
## Building and Testing
2317

@@ -42,7 +36,6 @@ make all
4236
# Individual examples
4337
make zk-nullifier
4438
make zk-id
45-
make zk-merkle-proof
4639

4740
# Show all available commands
4841
make help

zk/nullifier/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resolution = true
66
skip-lint = false
77

88
[programs.localnet]
9-
zk_nullifier = "Bw8aty8LJY5Kg2b6djghjWGwt6cBc1tVQUoreUehvVq4"
9+
nullifier = "Bw8aty8LJY5Kg2b6djghjWGwt6cBc1tVQUoreUehvVq4"
1010

1111
[registry]
1212
url = "https://api.apr.dev"

zk/nullifier/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = ["programs/zk-nullifier"]
2+
members = ["programs/nullifier"]
33
resolver = "2"
44

55
[profile.release]

zk/nullifier/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Creates nullifier accounts for provided values.
4545
From the parent `zk/` directory:
4646

4747
```bash
48-
make zk-nullifier # Build, deploy, test
48+
make nullifier # Build, deploy, test
4949
make build # Build all programs
5050
make deploy # Deploy to local validator
5151
make test-ts # Run TypeScript tests
@@ -76,8 +76,8 @@ npm run test:ts
7676
## Structure
7777

7878
```
79-
zk-nullifier/
80-
├── programs/zk-nullifier/
79+
nullifier/
80+
├── programs/nullifier/
8181
│ ├── src/lib.rs # Program with create_nullifiers helper
8282
│ └── tests/test.rs # Rust integration tests
8383
└── ts-tests/

zk/nullifier/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zk/nullifier/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "zk-nullifier",
2+
"name": "nullifier",
33
"version": "1.0.0",
44
"description": "Minimal ZK nullifier example for privacy-preserving applications",
55
"scripts": {

0 commit comments

Comments
 (0)