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

Method is_valid

vb_accumulator/src/setup.rs:136–138  ·  view source on GitHub ↗

Params shouldn't be 0

(&self)

Source from the content-addressed store, hash-verified

134
135 /// Params shouldn't be 0
136 pub fn is_valid(&self) -> bool {
137 !self.P.is_zero() && !self.P_tilde.is_zero()
138 }
139}
140
141impl<E: Pairing> AsRef<E::G1Affine> for SetupParams<E> {

Callers 2

verify_except_pairingMethod · 0.45
verify_schnorr_proofMethod · 0.45

Calls 1

is_zeroMethod · 0.80

Tested by

no test coverage detected