⚠️ Note: In Rust VM it's not possible to have hints nor inputs! Use Python VM if you need hints or inputs.🏎️ However Rust VM is FAST, use it if possible.
-
Install cairo-lang https://docs.cairo-lang.org/quickstart.html
python3.9 -m venv ~/cairo_venv
source ~/cairo_venv/bin/activate
- Install gmp
sudo apt install -y libgmp3-dev
on Linuxbrew install gmp
on Mac
pip3 install cairo-lang
-
To compile:
cairo-compile program.cairo --output compiled.json
-
To test locally:
cairo-run --program compiled.json --layout starknet_with_keccak --print_output
To get your API key, navigate to https://www.herodotus.cloud/, log in and go to API KEYS section.
When sending to Atlantic, you can choose where your proof should be verified. For more details check L1 Proof Verification and L2 Proof Verification.
You can track your queries in Atlantic > Console section.
To send query for L2 verification to Atlantic, run:
bash ./send_query.sh <your_api_key> PROOF_VERIFICATION_ON_L2
And check out how Starknet contract works.
To send query for L1 verification to Atlantic, run:
bash ./send_query.sh <your_api_key> PROOF_VERIFICATION_ON_L1
And check out how Ethereum contract works.