-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make prover work without docker dependency (#8)
* CairoZero docker remove * cairo0 paths changes * Cairo1 docker removed * changed comments * Dockerfile changes * Podman Crate deleted * cairo1-compile * Removing files * Docker file updates * cairo-lang dependencies * fibonacci examples changes * gitignore update * updates * corelib installation script * fmt * wait for prover and curl * wait for prover * test fix * test workflow trigger * check error * automated tests in ci * fmt, clippy * verifier in docker * script update, check corectness of build and run * fix docker image * fix clippy * publish ci * run on 32 core * remove docker * test all * test serially * script update, check corectness of build and run * fix docker image * fix clippy * publish ci * run on 32 core * remove docker * test all * test serially * proof verification on tests, using cpu_air_verifier * Port in tests as env, container_engine variable --------- Co-authored-by: Piotr Stec <[email protected]> Co-authored-by: Mateusz Chudkowski <[email protected]> Co-authored-by: Mateusz Chudkowski <[email protected]>
- Loading branch information
1 parent
c6e501a
commit dea6182
Showing
34 changed files
with
1,912 additions
and
406 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
**/debug/ | ||
**/target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
**/Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
|
||
# Scarb | ||
**/Scarb.lock | ||
|
||
# vscode | ||
**/.vscode/ | ||
|
||
# Git | ||
**/.git | ||
|
||
# Docker | ||
**/Dockerfile | ||
|
||
# Ignores | ||
**/.gitignore | ||
**/.dockerignore | ||
|
||
# Envs | ||
**/*.cargo | ||
|
||
# Venvs | ||
**/.venv | ||
|
||
|
||
/resources | ||
output.json | ||
examples/Cairo/prover_input.json | ||
examples/CairoZero/prover_input.json | ||
/corelib | ||
|
||
.idea/ | ||
.git/ | ||
target/ |
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
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
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,10 +1,13 @@ | ||
[package] | ||
name = "podman" | ||
name = "cairo1-compile" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
thiserror.workspace = true | ||
tokio.workspace = true | ||
cairo-lang-compiler.workspace = true | ||
cairo-lang-sierra.workspace = true | ||
clap.workspace = true | ||
serde.workspace = true | ||
serde_json.workspace = true |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Installation Guide | ||
|
||
Follow the steps below to install `cairo1-compile` and `cairo1-run`. | ||
|
||
## Install `cairo1-compile` | ||
|
||
To install `cairo1-compile`, run the following command: | ||
|
||
```sh | ||
cargo install --path cairo1-compile | ||
``` | ||
|
||
## Install `cairo1-run` | ||
|
||
To install `cairo1-run` from the repository, run the following command: | ||
|
||
```sh | ||
cargo install --git https://github.com/lambdaclass/cairo-vm cairo1-run | ||
``` | ||
|
||
|
||
`cairo1-compile compile --output resources/fibonacci_compiled.sierra.json e2e_test/Cairo/fibonacci.cairo` | ||
`cairo1-compile merge -o resources/fibonacci_prover_input.json resources/fibonacci_compiled.sierra.json e2e_test/Cairo/input.json` | ||
`podman build -t stone5-cairo1:recursive -f Dockerfile .` | ||
`podman run -i --rm stone5-cairo1:recursive < resources/fibonacci_prover_input.json > resources/proof.json` |
Oops, something went wrong.