/// Returns `true` if the decryption share matches the ciphertext.
Returns `true` if the decryption share matches the ciphertext.
Returns ` true ` if the decryption share matches the ciphertext .
pub fn verify_ciphertext(&self,ct: &Ciphertext, g_parameter: &GParameter) -> bool {
        let Ciphertext(ref u, ref v, ref w) = *ct;
        let hash = hash_g1_m(*u, v);
        PEngine::pairing(*w, g_parameter.g_2())  == PEngine::pairing(hash,*u)
    }
pub fn verify_ciphertext ( & self , ct : & Ciphertext , g_parameter : & GParameter ) -> bool { let Ciphertext ( ref u , ref v , ref w ) = * ct ; let hash = hash_g1_m ( * u , v ) ; PEngine :: pairing ( * w , g_parameter . g_2 ( ) ) == PEngine :: pairing ( hash , * u ) }
Returns `true` if the decryption share matches the ciphertext.
Returns ` true ` if the decryption share matches the ciphertext .
&self
ct
&Ciphertext
g_parameter
&GParameter