-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (44 loc) · 2.16 KB
/
Makefile
File metadata and controls
62 lines (44 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
install-bun:
curl -fsSL https://bun.sh/install | bash
install-noir:
curl -L https://raw.githubusercontent.com/noir-lang/noirup/refs/heads/main/install | bash
noirup --version 1.0.0-beta.6
install-barretenberg:
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/barretenberg/bbup/install | bash
bbup --version 0.86.0-starknet.1
install-starknet:
curl --proto '=https' --tlsv1.2 -sSf https://sh.starkup.dev | sh
install-devnet:
asdf plugin add starknet-devnet
asdf install starknet-devnet 0.4.2
install-garaga:
pip install garaga==0.18.1
install-app-deps:
cd app && bun install
devnet:
starknet-devnet --accounts=2 --seed=0 --initial-balance=100000000000000000000000
accounts-file:
curl -s http://localhost:5050/predeployed_accounts | jq '{"alpha-sepolia": {"devnet0": {address: .[0].address, private_key: .[0].private_key, public_key: .[0].public_key, class_hash: "0xe2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6", deployed: true, legacy: false, salt: "0x14", type: "open_zeppelin"}}}' > ./contracts/accounts.json
build-circuit:
cd circuit && nargo build
exec-circuit:
cd circuit && nargo execute witness
prove-circuit:
bb prove --scheme ultra_honk --oracle_hash starknet -b ./circuit/target/circuit.json -w ./circuit/target/witness.gz -o ./circuit/target
gen-vk:
bb write_vk --scheme ultra_honk --oracle_hash starknet -b ./circuit/target/circuit.json -o ./circuit/target
gen-verifier:
cd contracts && garaga gen --system ultra_starknet_honk --vk ../circuit/target/vk --project-name verifier
build-verifier:
cd contracts/verifier && scarb build
declare-verifier:
cd contracts && sncast declare --contract-name UltraStarknetHonkVerifier
deploy-verifier:
# TODO: use class hash from the result of the `make declare-verifier` step
cd contracts && sncast deploy --salt 0x00 --class-hash 0x004d13e14caa3b225b07595e7edcade77ce849e30ee7908bf4b2e4446d652ebf
artifacts:
cp ./circuit/target/circuit.json ./app/src/assets/circuit.json
cp ./circuit/target/vk ./app/src/assets/vk.bin
cp ./contracts/target/release/verifier_UltraStarknetHonkVerifier.contract_class.json ./app/src/assets/verifier.json
run-app:
cd app && bun run dev