-
Notifications
You must be signed in to change notification settings - Fork 19
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
bdaa63b
commit 615c10e
Showing
2 changed files
with
49 additions
and
22 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,21 +1,48 @@ | ||
# Cairo1 verifier | ||
|
||
## Build | ||
``` sh | ||
scarb build | ||
``` | ||
|
||
## Test | ||
``` sh | ||
scarb test | ||
``` | ||
|
||
## Format | ||
``` sh | ||
scarb fmt | ||
``` | ||
|
||
## Clean | ||
``` sh | ||
scarb clean | ||
``` | ||
# Cairo1 Verifier | ||
|
||
## Overview | ||
|
||
The Cairo1 Verifier is a tool designed for parsing and utilizing proofs in the Cairo language. This document provides instructions on how to get and use the parsed proof. | ||
|
||
## Getting the Parsed Proof | ||
|
||
To obtain the parsed proof, follow these steps: | ||
|
||
### 1. Download Source Code | ||
|
||
- Access the source code at [Cairo1 Parser Repository](https://github.com/neotheprogramist/cairo-lang/tree/parser). | ||
|
||
### 2. Install Dependencies | ||
|
||
- Execute the command: `pipenv install`. | ||
|
||
### 3. Activate Virtual Environment | ||
|
||
- Activate the virtual environment with: `pipenv shell`. | ||
|
||
### 4. Run the Parser | ||
|
||
- Use the parser by running: | ||
``` | ||
python src/main.py -l starknet_with_keccak < src/starkware/cairo/stark_verifier/air/example_proof.json > parseout.txt | ||
``` | ||
|
||
### 5. Access Output File | ||
|
||
- The output will be available in the `parseout.txt` file. | ||
|
||
## Using the Parsed Proof | ||
|
||
Once you have the parsed proof, you can use it as follows: | ||
|
||
### 1. Copy Proof to Input File | ||
|
||
- Copy the entire content or a consistent section of `parseout.txt` to `runner/resources/parsein.txt`. | ||
|
||
### 2. Adjust Input Structures | ||
|
||
- Modify the structures in `src/input_structs` to match the copied content. | ||
|
||
### 3. Execute the Runner Script | ||
|
||
- Run the script using: `./run.sh`. |
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