Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: StackedCircuit only needs the number of layers #1732

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

vmx
Copy link
Contributor

@vmx vmx commented Oct 31, 2023

There's no need to store the full public parameters within the StackedCircuit struct, as it only needs the number of layers.

Copy link
Contributor

@DrPeterVanNostrand DrPeterVanNostrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Theoretically I think that StackedCircuit doesn't even need to store num_layers because the circuit prover implicitly stores num_layers in the circuit's private inputs (i.e. in the column proofs) and the circuit verifier generates circuit public inputs by passing pub_params into StackedCompound::generate_public_inputs.

@vmx
Copy link
Contributor Author

vmx commented Nov 2, 2023

@DrPeterVanNostrand good point! I've created #1735 as I'm not sure if that's what you meant and also not sure if we really want to do that.

@vmx vmx force-pushed the split-layer-and-challenges branch from 1fc3399 to 329eacb Compare November 16, 2023 13:45
@vmx vmx force-pushed the split-layer-and-challenges branch from 329eacb to 9b129ce Compare December 1, 2023 14:05
Base automatically changed from split-layer-and-challenges to master December 1, 2023 15:51
@vmx vmx dismissed DrPeterVanNostrand’s stale review December 1, 2023 15:51

The base branch was changed.

There's no need to store the full public parameters within the `StackedCircuit`
struct, as it only needs the number of layers.
@vmx vmx force-pushed the stacked-circuit-num-layers branch from dab8b31 to a1843e5 Compare December 1, 2023 18:56
@vmx vmx merged commit 44333b0 into master Dec 1, 2023
@vmx vmx deleted the stacked-circuit-num-layers branch December 1, 2023 19:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants