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

Method is_valid

bbs_plus/src/setup.rs:525–527  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 4

verify_schnorr_proofsMethod · 0.45
verify_schnorr_proofsMethod · 0.45
verify_schnorr_proofsMethod · 0.45
verify_schnorr_proofsMethod · 0.45

Calls 1

is_zeroMethod · 0.80

Tested by

no test coverage detected