This document provides steps to build and run the Cairo Verifier.
To build the latest version of the verifier and create a Sierra file, follow these steps:
- Navigate to the project root directory:
cd .- Build the project:
scarb buildTo obtain the parsed proof, follow these steps:
- Access the source code at Cairo1 Parser Repository.
- Execute the command:
pipenv install.
- Activate the virtual environment with:
pipenv shell.
- Use the parser by running:
python src/main.py -l starknet_with_keccak < src/starkware/cairo/stark_verifier/air/example_proof.json > out.txt
- The output will be available in the
out.txtfile.
Once you have the parsed proof, you can use it as follows:
- Copy the entire content or a consistent section of
out.txtto./resources/in.txt.
-
Run:
cargo run --release -- ./target/dev/cairo_verifier.sierra.json < ./resources/in.txt -
Or run the script using:
./run.sh.