You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to use stone-prover-cli with a simple Fibonacci program and input, it seems that the prover does not support Cairo 0 hints. Running the ./run.sh script in this repository results in an error.
Steps to Reproduce
Clone the repository: git clone https://github.com/neotheprogramist/stone-prover-playground.git
Navigate to the repository: cd stone-prover-playground
Run the script: ./run.sh
Expected Behavior
The prover should support Cairo 0 hints and successfully run the Fibonacci program with input.
Actual Behavior
An error occurs with the following message:
error failed to run Cairo program: main.cairo:24:5: Error at pc=0:8:
Got an exception while executing a hint: Unknown Hint: ids.fibonacci_claim_index = program_input['fibonacci_claim_index']
%{ ids.fibonacci_claim_index = program_input['fibonacci_claim_index'] %}
^**********************************************************************^
Cairo traceback (most recent call last):
<start>:3:1: (pc=0:2)
The text was updated successfully, but these errors were encountered:
We use the Rust VM under the hood, and there is no way to convert Python hints to the equivalent Rust code besides implementing the hints manually in Rust and forking the CLI to pass them to cairo-vm on initialization. This essentially means that program-specific hints are not supported.
From our discussion on TG, we could do the following things:
Document this limitation
Improve the error message
Add a command to just prove a program without executing it
Add support for the Python VM if it is found on the system.
Description
While attempting to use
stone-prover-cli
with a simple Fibonacci program and input, it seems that the prover does not support Cairo 0 hints. Running the./run.sh
script in this repository results in an error.Steps to Reproduce
git clone https://github.com/neotheprogramist/stone-prover-playground.git
cd stone-prover-playground
./run.sh
Expected Behavior
The prover should support Cairo 0 hints and successfully run the Fibonacci program with input.
Actual Behavior
An error occurs with the following message:
The text was updated successfully, but these errors were encountered: