Welcome to the zk Debit project! This guide will help you set up and test the application. Below, you'll find the structure of the project and detailed steps for running commands.
ETH GLOBAL https://ethglobal.com/showcase/zkdebit-ypjir
The project involves 3 main folders in the Testing Poc flow:
-
Shop
Contains the smart contracts for zk Debit. -
Bank
The user interface for interacting with zk Debit. -
Verifier Contract
Handles API requests and facilitates off-chain computations.
Before running any commands, ensure the following:
- Env: Adding env config following the env.example
git clone https://github.com/your-repo/zkdebit.git
cd zkdebit
cd Bank
npm i --legacy-depedency
node index.js
Changing some details in app/creating-tx to change hashed payload cause some tx hashed might already exist onchain. Check transaction hashed at this linked function read function check transaction is valid
open another terminal
cd shop
npm i --legacy-depedency
npm run dev
cd scripts
node verifyProof.ts