From 0982be6968874169561080989c05d63d460fda3e Mon Sep 17 00:00:00 2001 From: Thomas Chataigner Date: Tue, 20 Feb 2024 12:19:58 +0100 Subject: [PATCH] refactor(chunk-pattern): nipitcks --- crates/chunk/examples/chunk_add_nivc.rs | 4 ++-- crates/chunk/src/lib.rs | 2 +- crates/chunk/src/traits.rs | 4 ++-- crates/chunk/tests/gadget.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/chunk/examples/chunk_add_nivc.rs b/crates/chunk/examples/chunk_add_nivc.rs index 8b976f7..edca6bb 100644 --- a/crates/chunk/examples/chunk_add_nivc.rs +++ b/crates/chunk/examples/chunk_add_nivc.rs @@ -43,7 +43,7 @@ impl ChunkStepCircuit for ChunkStep { } } - fn chunk_synthesize>( + fn synthesize>( &self, cs: &mut CS, _pc: Option<&AllocatedNum>, @@ -180,7 +180,7 @@ fn main() { ::Scalar::zero(), ]; - // number of iterations of MinRoot per Nova's recursive step + // Different instantiations of circuit for each of the nova fold steps let inner_chunk_circuit = Inner::new(&[ ::Scalar::one(), ::Scalar::from(2), diff --git a/crates/chunk/src/lib.rs b/crates/chunk/src/lib.rs index ae96aa0..9a61b42 100644 --- a/crates/chunk/src/lib.rs +++ b/crates/chunk/src/lib.rs @@ -58,7 +58,7 @@ impl + Clone, const N: usize> FoldStep Result<(Option>, Vec>), SynthesisError> { let (z_in, chunk_in) = z.split_at(C::arity()); - let mut z_out = self.circuit.chunk_synthesize( + let mut z_out = self.circuit.synthesize( &mut cs.namespace(|| format!("chunk_folding_step_{}", self.step_nbr)), pc, z_in, diff --git a/crates/chunk/src/traits.rs b/crates/chunk/src/traits.rs index 8af68d9..3ce06fe 100644 --- a/crates/chunk/src/traits.rs +++ b/crates/chunk/src/traits.rs @@ -15,14 +15,14 @@ pub trait ChunkStepCircuit: Clone + Sync + Send + Debug + Partial 1 } - /// `chunk_synthesize` must be the method that performs the computation for a given step. + /// `synthesize` must be the method that performs the computation for a given step. /// /// # Arguments /// * `cs` - The constraint system to which the circuit is being added. /// * `pc` - The program counter value for the current step. /// * `z` - The accumulator value for the current step. /// * `chunk_in` - The input values for the current step (which are the output values from the previous step). - fn chunk_synthesize>( + fn synthesize>( &self, cs: &mut CS, pc: Option<&AllocatedNum>, diff --git a/crates/chunk/tests/gadget.rs b/crates/chunk/tests/gadget.rs index 066ba2c..480bfd3 100644 --- a/crates/chunk/tests/gadget.rs +++ b/crates/chunk/tests/gadget.rs @@ -22,7 +22,7 @@ impl ChunkStepCircuit for ChunkStep { } } - fn chunk_synthesize>( + fn synthesize>( &self, cs: &mut CS, _pc: Option<&AllocatedNum>,