-
Create the Virtual Environment:
- Run the following command to create a virtual environment in the current directory:
python -m venv .venv
- Run the following command to create a virtual environment in the current directory:
-
Activate the Virtual Environment:
- For Unix or MacOS, activate the virtual environment with:
source .venv/bin/activate
- For Windows, use:
.venv\Scripts\activate
- For Unix or MacOS, activate the virtual environment with:
-
Install Dependencies:
- Install the required packages from the
requirements.txt
file:pip install -r requirements.txt
- Install the required packages from the
-
Create the Resources Directory:
- Execute the following command to create a
resources
directory:mkdir resources
- Execute the following command to create a
-
Add Configuration File:
- Create a file named
input.json
inside theresources
directory and paste the following JSON content into it:{ "prev_state_root": 34343434343, "block_number": 123456, "block_hash": 1234567890, "config_hash": 1234567890, "world_da":[ 3488041066649332616440110253331181934927363442882040970594983370166361489161,633500000000000, 2080372569135727803323277605537468839623406868880224375222092136867736091483,999999936 ], "message_to_starknet_segment": [ 123, 456, 123, 128 ], "message_to_appchain_segment": [ 123, 456, 123, 128 ], "nonce_updates": { "1": 12, "2": 1337 }, "storage_updates": { "1": { "123456789": 89, "987654321": 98 }, "2": { "123456789": 899, "987654321": 98 } }, "contract_updates": { "3": 437267489 }, "declared_classes": { "1234": 12345, "12345": 123456, "123456": 1234567 } }
- Create a file named
- To start the HTTP service, execute:
cargo run -p prover
- To send an HTTP request and generate a proof, run:
./scripts/prove.py < resources/input.json > resources/proof.json
This setup guide will help you to configure and run the necessary components for the project. Make sure you follow the steps in order to ensure everything functions as expected.