Skip to content

Commit 73410a9

Browse files
committed
update README.md in favor of SDK
1 parent 83bc97d commit 73410a9

File tree

1 file changed

+3
-47
lines changed

1 file changed

+3
-47
lines changed

README.md

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -28,54 +28,10 @@ The implementation uses zero-knowledge proofs to ensure that withdrawals cannot
2828
- npm or yarn
2929
- Circom v2.2.2 https://docs.circom.io/getting-started/installation/#installing-dependencies
3030

31-
## Installation
31+
## SDK
32+
If you want to integrate Privacy Cash into your project, use the [Privacy Cash SDK](https://github.com/Privacy-Cash/privacy-cash-sdk) here.
3233

33-
### ZK Circuits
34-
1. Navigate to the script directory:
35-
```bash
36-
cd scripts
37-
```
38-
2. Install dependencies:
39-
```bash
40-
npm install
41-
```
42-
3. Generate circuits:
43-
```bash
44-
./buildCircuit_prod_solana.sh 2
45-
```
46-
47-
### Trusted Setup Ceremony (PRODUCTION REQUIRED)
48-
```bash
49-
# Coordinator starts
50-
./trusted_setup_ceremony.sh 2 setup
51-
52-
# Each participant contributes (on separate machines)
53-
./trusted_setup_ceremony.sh 2 contribute 1
54-
./trusted_setup_ceremony.sh 2 contribute 2
55-
./trusted_setup_ceremony.sh 2 contribute 3
56-
./trusted_setup_ceremony.sh 2 contribute 4
57-
58-
# Coordinator finalizes
59-
./trusted_setup_ceremony.sh 2 finalize
60-
```
61-
62-
The ceremony ensures that as long as one participant deletes their secrets, the system remains secure.
63-
4. Generate verifying keys
64-
```bash
65-
cd artifacts/circuits
66-
npx snarkjs zkey export verificationkey transaction2.zkey verifyingkey2.json
67-
```
68-
### ZK Proofs
69-
1. Navigate to the script directory:
70-
```bash
71-
cd scripts
72-
```
73-
2. Generate a sample proof (with a first deposit proof, and another withdrawal proof):
74-
```bash
75-
ts-node sample_proof_generator.ts
76-
```
77-
78-
### Anchor Program
34+
## Anchor Program
7935
1. Navigate to the program directory:
8036
```bash
8137
cd anchor

0 commit comments

Comments
 (0)