Skip to content
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

[PROVER] Trace layout #60

Open
AntoineFONDEUR opened this issue Sep 12, 2024 · 0 comments
Open

[PROVER] Trace layout #60

AntoineFONDEUR opened this issue Sep 12, 2024 · 0 comments
Assignees

Comments

@AntoineFONDEUR
Copy link
Collaborator

The first step to setup the prover is to create a layout for the trace that we will then use to apply the polynomial constraints.
The layout is detailed in this implementation of a cairo prover which I suggest we could retro-engineer : https://github.com/maxgillett/giza/blob/master/runner/src/trace.rs#L101 .
For each step it looks like so (as mentioned here: https://github.com/maxgillett/giza/blob/master/core/src/lib.rs#L22) :

A (flags) B (res) C (mem_p) D (mem_a) E (mem_v) F (offsets) G (derived)
Decoded instruction flags (16) Res value Temporary memory pointers (ap, fp) Memory addresses (pc, dst_addr, op0_addr, op1_addr) Memory values (inst, dst, op0, op1) (off_dst, off_op0, off_op1) (t0, t1, mul)

I propose for it to be put next to the relocation tables in the prover tab.

@AntoineFONDEUR AntoineFONDEUR self-assigned this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant