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

Adapt the circuitry to zero-bin #184

Merged
merged 21 commits into from
Apr 24, 2024
Merged

Conversation

LindaGuiga
Copy link
Contributor

This PR modifies circuits and proof_gen so that they can be used in zero-bin. It also serializes the MemoryState using BigArray 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.

@github-actions github-actions bot added crate: trace_decoder Anything related to the trace_decoder crate. crate: proof_gen Anything related to the proof_gen crate. crate: evm_arithmetization Anything related to the evm_arithmetization crate. labels Apr 24, 2024
Copy link
Collaborator

@Nashtare Nashtare left a 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.

Comment on lines 1663 to 1675
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);
Copy link
Collaborator

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

evm_arithmetization/src/prover.rs Outdated Show resolved Hide resolved
evm_arithmetization/src/prover.rs Show resolved Hide resolved
evm_arithmetization/tests/add11_yml.rs Outdated Show resolved Hide resolved
@Nashtare Nashtare added this to the zk-continuations - Q2 2024 milestone Apr 24, 2024
@Nashtare Nashtare enabled auto-merge (squash) April 24, 2024 16:18
@Nashtare Nashtare merged commit d391d36 into feat/continuations Apr 24, 2024
6 checks passed
@Nashtare Nashtare deleted the all_data_for_zero_bin branch April 24, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: evm_arithmetization Anything related to the evm_arithmetization crate. crate: proof_gen Anything related to the proof_gen crate. crate: trace_decoder Anything related to the trace_decoder crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants