Skip to content

Commit

Permalink
zal: remove Option from PlonkEngineConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Mar 21, 2024
1 parent a25110b commit 02c4264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions halo2_middleware/src/zal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub mod impls {
#[derive(Default)]
pub struct PlonkEngineConfig<C, M> {
curve: PhantomData<C>,
msm_backend: Option<M>,
msm_backend: M,
}

#[derive(Default)]
Expand Down Expand Up @@ -228,15 +228,15 @@ pub mod impls {
// Return with modified MSM engine
PlonkEngineConfig {
curve,
msm_backend: Some(HasMsmEngine(engine, Default::default())),
msm_backend: HasMsmEngine(engine, Default::default()),
}
}
}

impl<C: CurveAffine, M: MsmAccel<C>> PlonkEngineConfig<HasCurve<C>, HasMsmEngine<C, M>> {
pub fn build(self) -> PlonkEngine<C, M> {
PlonkEngine {
msm_backend: self.msm_backend.unwrap().0,
msm_backend: self.msm_backend.0,
_marker: Default::default(),
}
}
Expand Down

0 comments on commit 02c4264

Please sign in to comment.