Skip to content

Commit

Permalink
Default without compress selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
iquerejeta committed Oct 21, 2024
1 parent b5b0aef commit dfb066e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions halo2_proofs/src/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ where
#[cfg(not(feature = "circuit-params"))]
ConcreteCircuit::configure(&mut cs);

// we still need to replace selectors with fixed Expressions in `cs`
let fake_selectors = vec![vec![]; cs.num_selectors()];
let (cs, _) = cs.directly_convert_selectors_to_fixed(fake_selectors);

let cs_mid: ConstraintSystemMid<_> = cs.into();
VerifyingKey::read(reader, format, cs_mid.into())
}
Expand Down
4 changes: 2 additions & 2 deletions halo2_proofs/src/plonk/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ where
ConcreteCircuit: Circuit<C::Scalar>,
C::Scalar: FromUniformBytes<64>,
{
keygen_vk_custom(params, circuit, true)
keygen_vk_custom(params, circuit, false)
}

/// Generate a `VerifyingKey` from an instance of `Circuit`.
Expand Down Expand Up @@ -66,7 +66,7 @@ where
P: Params<C>,
ConcreteCircuit: Circuit<C::Scalar>,
{
keygen_pk_custom(params, vk, circuit, true)
keygen_pk_custom(params, vk, circuit, false)
}

/// Generate a `ProvingKey` from an instance of `Circuit`.
Expand Down

0 comments on commit dfb066e

Please sign in to comment.