Skip to content

Commit

Permalink
refactor: verfier_params -> into_verfier_params
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnevadoc committed Apr 25, 2024
1 parent 32989af commit 751b338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions halo2_backend/src/poly/kzg/commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ where
}
}

pub fn verifier_params(&self) -> ParamsVerifierKZG<E> {
pub fn into_verifier_params(self) -> ParamsVerifierKZG<E> {
ParamsVerifierKZG {
k: self.k,
g_lagrange: self.g_lagrange.clone(),
g_lagrange: self.g_lagrange,
s_g2: self.s_g2,
}
}
Expand Down
4 changes: 2 additions & 2 deletions halo2_backend/src/poly/multiopen_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod test {
&engine, &params,
);

let verifier_params = params.verifier_params();
let verifier_params = params.into_verifier_params();

verify::<_, VerifierGWC<_>, _, Blake2bRead<_, _, Challenge255<_>>, AccumulatorStrategy<_>>(
&verifier_params,
Expand Down Expand Up @@ -147,7 +147,7 @@ mod test {
Blake2bWrite<_, _, Challenge255<_>>,
>(&engine, &params);

let verifier_params = params.verifier_params();
let verifier_params = params.into_verifier_params();

verify::<
KZGCommitmentScheme<Bn256>,
Expand Down

0 comments on commit 751b338

Please sign in to comment.