Cairo Proof Parser
This lib crate is a parser written to translate beetwen different cairo proof formats. It exports a function:
Input
The input to the parse function is a proof in a json string format. The proof is expected to be generated by the stone prover with the -generate_annotations flag. Currently only the recursive and starknet layouts are supported.
Output
The output is the AST wchich can be deserialized to a string using Exprs::to_string(&self) method. This can than be serialized to the arguments expected by the cairo verifier, and run using cairo args runner.
Example usage
An example usage:
use ;
use parse;
Roadmap
In the future we might parse directly to cairo-args-runner::Args to skip one parsing step. For now the current approach is absolutely sufficent and gives most flexibility. There were also some bug fixes in the cairo-lang-runner crate enabling the cairo-args-runner to pass multiple arrays correctly.