Method
get_snark_proving_key
(
&'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 | |
| 155 | impl<E: Pairing> SaverVerifier<E> { |
Tested by
no test coverage detected