- Install rust and circom2
- Clone or fork this template repository.
git clone https://github.com/ekrembal/zk-workshop
- Install packages
yarn
- Build: this compiles the circuits and exports artifacts. Then compiles the contracts and generate typescript clients.
yarn build
- Enter your private key in
contracts/.env
file.GOERLI_URL=https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161 PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1
- Deploy the contracts
yarn workspace contracts hardhat run --network goerli scripts/deploy.ts
- Interact with the frontend from https://zk.ekrembal.com
-
Test contracts
yarn workspace contracts test
-
Test your circuits
yarn workspace circuits test
-
Test your app
yarn workspace app test