Replies: 1 comment
-
Stale issue message |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the flag representation in the cairo gate family uses one witness value per flag. Due to the low degrees of the constraint polynomials, it should be possible to reduce the number of witness values used by grouping the flags together.
For example,
Handily, it appears that this allows us to fit all of the values needed for 1 Cairo gate into a single double-width Kimchi gate witness. For example,
pc
ap
fp
off_dst
off_op0
off_op1
flag_dst_op0
flag_op1_src
flag_res_logic
flag_pc_update
flag_ap_update
flag_opcode
immediate = lookup_{pc+1}
pc_next
ap_next
fp_next
res
op0_addr
lookup_{op0_addr}
op1_addr
lookup_{op1_addr}
dst_addr
lookup_{dst_addr}
op1_addr_aux
lookup_{op1_addr_aux}
Beta Was this translation helpful? Give feedback.
All reactions