snark/work_verify_effectful/
snark_work_verify_effects.rs1use redux::ActionMeta;
2
3use super::{SnarkWorkVerifyEffectfulAction, SnarkWorkVerifyService};
4
5impl SnarkWorkVerifyEffectfulAction {
6 pub fn effects<Store, S>(self, _: &ActionMeta, store: &mut Store)
7 where
8 Store: crate::SnarkStore<S>,
9 Store::Service: SnarkWorkVerifyService,
10 {
11 match self {
12 SnarkWorkVerifyEffectfulAction::Init {
13 req_id,
14 batch,
15 verifier_srs,
16 verifier_index,
17 } => {
18 store
19 .service()
20 .verify_init(req_id, verifier_index, verifier_srs, batch);
21 }
22 }
23 }
24}