Skip to content

Commit

Permalink
fix: generic type in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alannotnerd committed Sep 19, 2023
1 parent 08a5831 commit 4498915
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions halo2_proofs/tests/plonk_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,10 @@ fn plonk_api() {
}
*/

fn keygen<Scheme: CommitmentScheme>(
params: &Scheme::ParamsProver,
) -> ProvingKey<Scheme::Curve> {
fn keygen<Scheme: CommitmentScheme>(params: &Scheme::ParamsProver) -> ProvingKey<Scheme::Curve>
where
Scheme::ParamsProver: Sync,
{
let (_, _, lookup_table) = common!(Scheme);
let empty_circuit: MyCircuit<Scheme::Scalar> = MyCircuit {
a: Value::unknown(),
Expand Down Expand Up @@ -544,7 +545,10 @@ fn plonk_api() {
rng: R,
params: &'params Scheme::ParamsProver,
pk: &ProvingKey<Scheme::Curve>,
) -> Vec<u8> {
) -> Vec<u8>
where
Scheme::ParamsProver: Sync,
{
let (a, instance, lookup_table) = common!(Scheme);

let circuit: MyCircuit<Scheme::Scalar> = MyCircuit {
Expand Down

0 comments on commit 4498915

Please sign in to comment.