-
Notifications
You must be signed in to change notification settings - Fork 38
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
Adapt the circuitry to zero-bin #184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. There's probably some simplification / refactoring to be done, but as it will be updated partly anyway will follow-up PRs I'd rather leave it as is for now.
if lhs_is_agg { | ||
agg_inputs | ||
.set_proof_with_pis_target(&self.segment_aggregation.lhs.agg_proof, lhs_proof); | ||
} else { | ||
Self::set_dummy_proof_with_cyclic_vk_pis( | ||
&self.segment_aggregation.circuit, | ||
&mut agg_inputs, | ||
&self.segment_aggregation.lhs.agg_proof, | ||
lhs_proof, | ||
) | ||
} | ||
agg_inputs | ||
.set_proof_with_pis_target(&self.segment_aggregation.lhs.segment_proof, lhs_proof); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be encapsulated in a helper method, as we do exactly the same for lhs
and rhs
#188) * Unify types * Reduce arguments * Reorder args for consistency
This PR modifies circuits and
proof_gen
so that they can be used inzero-bin
. It also serializes theMemoryState
usingBigArray
and adds dummy segments to the right when necessary, for the same purpose.Note that the segments are added to the right for now, but a later PR will add them to the left for efficiency.