-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
85 lines (62 loc) · 2.18 KB
/
Makefile
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
SHELL := $(shell echo $$SHELL)
# Find the profile directory based on the shell
ifeq ($(findstring bash,$(SHELL)),bash)
PROFILE := ~/.bashrc
else ifeq ($(findstring zsh,$(SHELL)),zsh)
PROFILE := ~/.zshenv
else ifeq ($(findstring fish,$(SHELL)),fish)
PROFILE := ~/.config/fish/config.fish
else ifeq ($(findstring sh,$(SHELL)),sh)
PROFILE := ~/.profile
else
echo "zkrust: could not detect shell, manually add ${ZKRUST_BIN_DIR} to your PATH."
exit 1
endif
install: install_zkRust
install_zkRust:
@curl -L https://raw.githubusercontent.com/yetanotherco/zkRust/main/install_zkrust.sh | bash
install_sp1:
@curl -L https://sp1.succinct.xyz | bash
@source $(PROFILE)
@sp1up
@cargo prove --version
install_risc0:
@curl -L https://risczero.com/install | bash
@rzup install
@cargo risczero --version
all: install
__EXAMPLES__:
# RISC0
prove_risc0_fibonacci:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/fibonacci
prove_risc0_rsa:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/rsa
prove_risc0_ecdsa:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/ecdsa
prove_risc0_json:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/json
prove_risc0_regex:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/regex
prove_risc0_sha:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/sha
prove_risc0_tendermint:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/tendermint
prove_risc0_zkquiz:
@RUST_LOG=info cargo run --release -- prove-risc0 examples/zkquiz
# SP1
prove_sp1_fibonacci:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/fibonacci
prove_sp1_rsa:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/rsa
prove_sp1_ecdsa:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/ecdsa
prove_sp1_json:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/json
prove_sp1_regex:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/regex
prove_sp1_sha:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/sha
prove_sp1_tendermint:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/tendermint
prove_sp1_zkquiz:
@RUST_LOG=info cargo run --release -- prove-sp1 examples/zkquiz