lambdaclass / cairo-vm

cairo-vm is a Rust implementation of the Cairo VM. Cairo (CPU Algebraic Intermediate Representation) is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly without the need for this party to re-execute the same program.
https://lambdaclass.github.io/cairo-vm
Apache License 2.0
508 stars 142 forks source link

[Cairo1] Append returned values to the Output builtin segment #1593

Closed pefontana closed 7 months ago

pefontana commented 7 months ago

When executing cairo1-run crate with proof mode, we need to add some instructions in the create_entry_code function, that appends the returned values of main to the Output Builtin segment.

For a first iteration, we can assume the return value is just a Felt