Verify if the proof is valid. Assumes that the public key and parameters have been validated already.
(
&self,
revealed_msgs: &BTreeMap<usize, E::ScalarField>,
challenge: &E::ScalarField,
pk: impl Into<PreparedPublicKeyG2<E>>,
params: impl Into<PreparedSignature
| 356 | /// Verify if the proof is valid. Assumes that the public key and parameters have been |
| 357 | /// validated already. |
| 358 | pub fn verify( |
| 359 | &self, |
| 360 | revealed_msgs: &BTreeMap<usize, E::ScalarField>, |
| 361 | challenge: &E::ScalarField, |
| 362 | pk: impl Into<PreparedPublicKeyG2<E>>, |
| 363 | params: impl Into<PreparedSignatureParamsG1<E>>, |
| 364 | ) -> Result<(), BBSPlusError> { |
| 365 | self._verify(revealed_msgs, challenge, pk, params, None) |
| 366 | } |
| 367 | |
| 368 | pub fn verify_with_randomized_pairing_checker( |
| 369 | &self, |