-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f668d65
commit 6f2515a
Showing
3 changed files
with
12 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,14 @@ | ||
#!/bin/bash | ||
|
||
git clone https://github.com/baking-bad/stone-prover.git /app | ||
brew install gmp | ||
|
||
cd /app || exit | ||
python3 -m pip install cpplint pytest numpy sympy==1.12.1 cairo-lang==0.12.0 | ||
|
||
./install_deps.sh | ||
git clone https://github.com/baking-bad/stone-prover.git /tmp/stone-prover | ||
|
||
cd /tmp/stone-prover || exit | ||
|
||
bazelisk build //... | ||
|
||
bazelisk test //... | ||
|
||
# Create symbolic links for cpu_air_prover and cpu_air_verifier | ||
ln -s /app/build/bazelbin/src/starkware/main/cpu/cpu_air_prover /bin/cpu_air_prover | ||
ln -s /app/build/bazelbin/src/starkware/main/cpu/cpu_air_verifier /bin/cpu_air_verifier | ||
|
||
cd /app/e2e_test/CairoZero || exit | ||
|
||
cairo-compile fibonacci.cairo --output fibonacci_compiled.json --proof_mode | ||
|
||
cairo-run \ | ||
--program=fibonacci_compiled.json \ | ||
--layout=small \ | ||
--program_input=fibonacci_input.json \ | ||
--air_public_input=fibonacci_public_input.json \ | ||
--air_private_input=fibonacci_private_input.json \ | ||
--trace_file=fibonacci_trace.json \ | ||
--memory_file=fibonacci_memory.json \ | ||
--print_output \ | ||
--proof_mode | ||
|
||
cpu_air_prover \ | ||
--out_file=fibonacci_proof.json \ | ||
--private_input_file=fibonacci_private_input.json \ | ||
--public_input_file=fibonacci_public_input.json \ | ||
--prover_config_file=cpu_air_prover_config.json \ | ||
--parameter_file=cpu_air_params.json | ||
|
||
cpu_air_verifier --in_file=fibonacci_proof.json && echo "Successfully verified example proof." |