Check that all group elements are non-zero (returns false if any element is zero). A verifier on receiving these parameters must first check that they are valid and only then use them for any signature or proof of knowledge of signature verification.
(&self)
| 523 | /// A verifier on receiving these parameters must first check that they are valid and only |
| 524 | /// then use them for any signature or proof of knowledge of signature verification. |
| 525 | pub fn is_valid(&self) -> bool { |
| 526 | !(self.g1.is_zero() || self.g2.is_zero() || cfg_iter!(self.h).any(|v| v.is_zero())) |
| 527 | } |
| 528 | |
| 529 | impl_sig_params_prepared_bbs23!(G1Affine, G1); |
| 530 | } |
no test coverage detected