MCPcopy Create free account
hub / github.com/docknetwork/crypto / get_snark_verifying_key

Method get_snark_verifying_key

proof_system/src/statement/saver.rs:242–255  ·  view source on GitHub ↗
(
        &'a self,
        setup_params: &'a [SetupParams<E>],
        st_idx: usize,
    )

Source from the content-addressed store, hash-verified

240 }
241
242 pub fn get_snark_verifying_key<'a>(
243 &'a self,
244 setup_params: &'a [SetupParams<E>],
245 st_idx: usize,
246 ) -> Result<&'a VerifyingKey<E>, ProofSystemError> {
247 extract_param!(
248 setup_params,
249 &self.snark_verifying_key,
250 self.snark_verifying_key_ref,
251 SaverVerifyingKey,
252 IncompatibleSaverSetupParamAtIndex,
253 st_idx
254 )
255 }
256}

Callers 2

_verifyMethod · 0.80

Calls

no outgoing calls

Tested by 1