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

Method get_snark_proving_key

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

Source from the content-addressed store, hash-verified

137 }
138
139 pub fn get_snark_proving_key<'a>(
140 &'a self,
141 setup_params: &'a [SetupParams<E>],
142 st_idx: usize,
143 ) -> Result<&'a ProvingKey<E>, ProofSystemError> {
144 extract_param!(
145 setup_params,
146 &self.snark_proving_key,
147 self.snark_proving_key_ref,
148 SaverProvingKey,
149 IncompatibleSaverSetupParamAtIndex,
150 st_idx
151 )
152 }
153}
154
155impl<E: Pairing> SaverVerifier<E> {

Callers 1

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected