diff --git a/halo2_backend/src/poly/kzg/commitment.rs b/halo2_backend/src/poly/kzg/commitment.rs index 2b84dc1cf9..3f2f755edf 100644 --- a/halo2_backend/src/poly/kzg/commitment.rs +++ b/halo2_backend/src/poly/kzg/commitment.rs @@ -294,10 +294,10 @@ where } } - pub fn verifier_params(&self) -> ParamsVerifierKZG { + pub fn into_verifier_params(self) -> ParamsVerifierKZG { ParamsVerifierKZG { k: self.k, - g_lagrange: self.g_lagrange.clone(), + g_lagrange: self.g_lagrange, s_g2: self.s_g2, } } diff --git a/halo2_backend/src/poly/multiopen_test.rs b/halo2_backend/src/poly/multiopen_test.rs index e907d0134c..a3f3d62af2 100644 --- a/halo2_backend/src/poly/multiopen_test.rs +++ b/halo2_backend/src/poly/multiopen_test.rs @@ -111,7 +111,7 @@ mod test { &engine, ¶ms, ); - let verifier_params = params.verifier_params(); + let verifier_params = params.into_verifier_params(); verify::<_, VerifierGWC<_>, _, Blake2bRead<_, _, Challenge255<_>>, AccumulatorStrategy<_>>( &verifier_params, @@ -147,7 +147,7 @@ mod test { Blake2bWrite<_, _, Challenge255<_>>, >(&engine, ¶ms); - let verifier_params = params.verifier_params(); + let verifier_params = params.into_verifier_params(); verify::< KZGCommitmentScheme,