-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cairo Prover: Prove programs with inputs #605
Comments
Inputs like hints ? Like the one in Stone examples ? There shouldn't be any problem with them. But we haven't tested them before. So if you see any issue you can tell us, if not, over the next week we will test some programs. |
Not like hints. I meant prove a function |
I think cairo0 doesn't support that. This depends on #604 then |
Here's a simple example of a main function in Cairo that takes input parameters: cairo func main(input_param1: felt, input_param2: felt) -> (result: felt):
In this example: MyContract is a simple contract with a single variable data of type felt (a 256-bit integer in Cairo). Keep in mind that Cairo is often used for smart contracts, so the main function is typically called automatically when the contract is executed on the blockchain. If you have a specific use case or more details about what you're looking for, feel free to provide additional information! |
This should be added in the VM now |
Currently Cairo Prover doesn't prove programs with inputs.
It would be nice to prove Cairo programs with inputs.
The text was updated successfully, but these errors were encountered: