-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
19 lines (14 loc) · 881 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
init:
mkdir -p output
git submodule update --init --recursive
cd batcher && cargo build
cd contracts && forge build
anvil
deploy_contracts:
cd contracts && forge script script/MerkleRootStorage.s.sol:MerkleRootStorageScript --fork-url http://127.0.0.1:8545 --broadcast --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
generate_proofs:
cd batcher && cargo run -- generate-proof --bills-path ../data/electricity_bills.json --certificate-key GC-2024-4356
verify_bill:
cd batcher && cargo run -- verify-proof --bill-path ../data/electricity_bill_2.json --proof-path ../output/merkle_proof_2.json --index 2 --certificate-key GC-2024-4356
verify_bill_corrupted:
cd batcher && cargo run -- verify-proof --bill-path ../data/electricity_bill_2_corrupted.json --proof-path ../output/merkle_proof_2.json --index 2 --certificate-key GC-2024-4356