How to use?
To generate trace you need two things:-
programFile
- compiled Cairo program in JSON format for cairo0 or SIERRA file for cairo1. -
(optional)
inputFile
- depending on Cairo and VM version:- Cairo1 - text file containing input array: e.g.
[1 [2 3 4]]
as described in Rust VM documentation. Keep in mind that your cairo main function should have signaturefn main(input: Array<felt252>) -> Array<felt252>
. - Cairo0, Python VM - JSON file representing the (private) input of the program (as in
cairo-run
of cairo-lang) - Cairo0, Rust VM - no support
- Cairo1 - text file containing input array: e.g.