-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
22bde28
to
97262a5
Compare
ea6cff5
to
10d2d93
Compare
85950ea
to
81cbab5
Compare
10d2d93
to
f72c245
Compare
81cbab5
to
df4e546
Compare
@@ -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>, |
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.
NBD: instance
is better
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.
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> { |
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.
Is the main purpose of this struct to debug?
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.
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 { |
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.
please remove the for _ in 0..=1
which is not necessary
Docs & test & logs for
fold_instances
Part of #32