diff --git a/src/circuit_builder.rs b/src/circuit_builder.rs index 6c2b3c07..50ec1a95 100644 --- a/src/circuit_builder.rs +++ b/src/circuit_builder.rs @@ -84,8 +84,7 @@ impl CircuitBuilder { let index = self.gate_instances.len(); - // TODO: Not passing next constants for now. Not sure if it's really useful... - self.add_generators(gate_type.0.generators(index, &constants, &[])); + self.add_generators(gate_type.0.generators(index, &constants)); self.gate_instances.push(GateInstance { gate_type, diff --git a/src/gates/arithmetic.rs b/src/gates/arithmetic.rs index 85cc8e08..4a2f63b7 100644 --- a/src/gates/arithmetic.rs +++ b/src/gates/arithmetic.rs @@ -64,7 +64,6 @@ impl Gate for ArithmeticGate { &self, gate_index: usize, local_constants: &[F], - _next_constants: &[F], ) -> Vec>> { let gen = ArithmeticGenerator { gate_index, diff --git a/src/gates/constant.rs b/src/gates/constant.rs index cf2b9e04..8482a6de 100644 --- a/src/gates/constant.rs +++ b/src/gates/constant.rs @@ -45,7 +45,6 @@ impl Gate for ConstantGate { &self, gate_index: usize, local_constants: &[F], - _next_constants: &[F], ) -> Vec>> { let gen = ConstantGenerator { gate_index, diff --git a/src/gates/gate.rs b/src/gates/gate.rs index 58bd9dd9..a340a1bd 100644 --- a/src/gates/gate.rs +++ b/src/gates/gate.rs @@ -37,7 +37,6 @@ pub trait Gate: 'static + Send + Sync { &self, gate_index: usize, local_constants: &[F], - next_constants: &[F], ) -> Vec>>; /// The number of wires used by this gate. diff --git a/src/gates/gmimc.rs b/src/gates/gmimc.rs index 706b4bd1..82539388 100644 --- a/src/gates/gmimc.rs +++ b/src/gates/gmimc.rs @@ -126,7 +126,6 @@ impl Gate for GMiMCGate { &self, gate_index: usize, _local_constants: &[F], - _next_constants: &[F], ) -> Vec>> { let gen = GMiMCGenerator { gate_index, @@ -304,7 +303,7 @@ mod tests { ); } - let generators = gate.0.generators(0, &[], &[]); + let generators = gate.0.generators(0, &[]); generate_partial_witness(&mut witness, &generators); let expected_outputs: [F; W] = diff --git a/src/gates/gmimc_eval.rs b/src/gates/gmimc_eval.rs index 427559ab..e2eb4cb6 100644 --- a/src/gates/gmimc_eval.rs +++ b/src/gates/gmimc_eval.rs @@ -38,7 +38,6 @@ impl Gate for GMiMCEvalGate { &self, gate_index: usize, local_constants: &[F], - _next_constants: &[F], ) -> Vec>> { let gen = GMiMCEvalGenerator:: { gate_index, diff --git a/src/gates/noop.rs b/src/gates/noop.rs index fa261873..edd4e5dd 100644 --- a/src/gates/noop.rs +++ b/src/gates/noop.rs @@ -35,7 +35,6 @@ impl Gate for NoopGate { &self, _gate_index: usize, _local_constants: &[F], - _next_constants: &[F], ) -> Vec>> { Vec::new() } diff --git a/src/prover.rs b/src/prover.rs index 17b52ded..c7b65cfb 100644 --- a/src/prover.rs +++ b/src/prover.rs @@ -197,9 +197,7 @@ fn compute_vanishing_polys( let vars = EvaluationVars { local_constants, - next_constants, local_wires, - next_wires, }; compute_vanishing_poly_entry( common_data, diff --git a/src/vars.rs b/src/vars.rs index 532ddbfe..f2744e8f 100644 --- a/src/vars.rs +++ b/src/vars.rs @@ -4,15 +4,11 @@ use crate::target::Target; #[derive(Copy, Clone)] pub struct EvaluationVars<'a, F: Field> { pub(crate) local_constants: &'a [F], - pub(crate) next_constants: &'a [F], pub(crate) local_wires: &'a [F], - pub(crate) next_wires: &'a [F], } #[derive(Copy, Clone)] pub struct EvaluationTargets<'a> { pub(crate) local_constants: &'a [Target], - pub(crate) next_constants: &'a [Target], pub(crate) local_wires: &'a [Target], - pub(crate) next_wires: &'a [Target], }