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

Method verify

bbs_plus/src/proof.rs:358–366  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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,

Callers 10

pok_sig_benchmarkFunction · 0.45
pok_sig_benchmarkFunction · 0.45
pok_sig_benchmarkFunction · 0.45
sig_g1_benchmarkFunction · 0.45
pseudonymFunction · 0.45
mainFunction · 0.45
verify_schnorr_proofsMethod · 0.45
signingFunction · 0.45
checkFunction · 0.45

Calls 1

_verifyMethod · 0.45

Tested by 1

signingFunction · 0.36