(
&'a self,
setup_params: &'a [SetupParams<E>],
st_idx: usize,
)
| 48 | } |
| 49 | |
| 50 | pub fn get_comm_key<'a, E: Pairing<G1Affine = G>>( |
| 51 | &'a self, |
| 52 | setup_params: &'a [SetupParams<E>], |
| 53 | st_idx: usize, |
| 54 | ) -> Result<&'a PedersenCommitmentKey<G>, ProofSystemError> { |
| 55 | extract_param!( |
| 56 | setup_params, |
| 57 | &self.comm_key, |
| 58 | self.comm_key_ref, |
| 59 | CommitmentKey, |
| 60 | IncompatibleBoundCheckSetupParamAtIndex, |
| 61 | st_idx |
| 62 | ) |
| 63 | } |
| 64 | } |
no outgoing calls