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

test(ivc): impl fold_instances_test #98

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

cyphersnake
Copy link
Collaborator

@cyphersnake cyphersnake commented Jan 10, 2024

Docs & test & logs for fold_instances

Part of #32

@cyphersnake cyphersnake self-assigned this Jan 10, 2024
@cyphersnake cyphersnake marked this pull request as ready for review January 10, 2024 14:35
@cyphersnake cyphersnake requested a review from chaosma January 10, 2024 14:35
@cyphersnake cyphersnake force-pushed the mg-assign-next-column branch from ea6cff5 to 10d2d93 Compare January 10, 2024 14:49
@cyphersnake cyphersnake force-pushed the 32-fold-instances branch 2 times, most recently from 85950ea to 81cbab5 Compare January 10, 2024 15:01
@cyphersnake cyphersnake force-pushed the mg-assign-next-column branch from 10d2d93 to f72c245 Compare January 10, 2024 16:15
@@ -574,23 +620,10 @@ where
config: &MainGateConfig<T>,
mut ro_circuit: impl ROCircuitTrait<C::Base>,
public_params_hash: &C::Base,
instance: &PlonkInstance<C>,
input_plonk: &PlonkInstance<C>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

NBD: instance is better

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Considering how many times I've been confused between instance & instance.instance I'd say this title is a bit confusing

@@ -297,3 +299,31 @@ macro_rules! create_and_verify_proof {
pub(crate) fn get_power_of_two_iter<F: ff::PrimeField>() -> impl Iterator<Item = F> {
iter::successors(Some(F::ONE), |l| Some(l.double()))
}

pub(crate) struct CellsValuesView<'l, F: PrimeField> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the main purpose of this struct to debug?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, to write important nuances to logs and debug info without a huge amount of garbage.

let mut on_circuit_instances_cell = None;

// Run twice for setup & real run
for _ in 0..=1 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove the for _ in 0..=1 which is not necessary

@cyphersnake cyphersnake merged commit df4e546 into mg-assign-next-column Jan 11, 2024
@cyphersnake cyphersnake deleted the 32-fold-instances branch January 11, 2024 09:55
@cyphersnake cyphersnake restored the 32-fold-instances branch January 11, 2024 10:02
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

Successfully merging this pull request may close these issues.

2 participants