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

Method verify_except_pairings

bbs_plus/src/proof_23.rs:380–391  ·  view source on GitHub ↗

Verify the proof except the pairing equations. This is useful when doing several verifications (of this protocol or others) and the pairing equations are combined in a randomized pairing check.

(
        &self,
        revealed_msgs: &BTreeMap<usize, E::ScalarField>,
        challenge: &E::ScalarField,
        g1: E::G1Affine,
        h: Vec<E::G1Affine>,
    )

Source from the content-addressed store, hash-verified

378 /// Verify the proof except the pairing equations. This is useful when doing several verifications (of this
379 /// protocol or others) and the pairing equations are combined in a randomized pairing check.
380 fn verify_except_pairings(
381 &self,
382 revealed_msgs: &BTreeMap<usize, E::ScalarField>,
383 challenge: &E::ScalarField,
384 g1: E::G1Affine,
385 h: Vec<E::G1Affine>,
386 ) -> Result<(), BBSPlusError> {
387 if self.A_bar.is_zero() {
388 return Err(BBSPlusError::ZeroSignature);
389 }
390 self.verify_schnorr_proofs(revealed_msgs, challenge, g1, h)
391 }
392}
393
394#[cfg(test)]

Callers 2

verifyMethod · 0.45

Calls 2

is_zeroMethod · 0.80
verify_schnorr_proofsMethod · 0.45

Tested by

no test coverage detected