pub fn verify_paillier(
        self,
        paillier_pk: &EncryptionKey,
        correct_key_proof: &CorrectKeyProof,
    ) -> Result<APIchildkeyCreator, ()> {
        verify_correct_key_proof(correct_key_proof, &paillier_pk.n)?;
        Ok(APIchildkeyCreator {
            secret_key: self.secret_key,
            paillier_pk: Some(paillier_pk.clone()),
        })
    }
/// verify that the paillier public key was generated correctly
verify that the paillier public key was generated correctly
verify that the paillier public key was generated correctly
pub fn verify_paillier(
        self,
        paillier_pk: &EncryptionKey,
        correct_key_proof: &CorrectKeyProof,
    ) -> Result<APIchildkeyCreator, ()> {
        verify_correct_key_proof(correct_key_proof, &paillier_pk.n)?;
        Ok(APIchildkeyCreator {
            secret_key: self.secret_key,
            paillier_pk: Some(paillier_pk.clone()),
        })
    }
pub fn verify_paillier ( self , paillier_pk : & EncryptionKey , correct_key_proof : & CorrectKeyProof , ) -> Result < APIchildkeyCreator , ( ) > { verify_correct_key_proof ( correct_key_proof , & paillier_pk . n ) ? ; Ok ( APIchildkeyCreator { secret_key : self . secret_key , paillier_pk : Some ( paillier_pk . clone ( ) ) , } ) }
verify that the paillier public key was generated correctly
verify that the paillier public key was generated correctly
self
paillier_pk
&EncryptionKey
correct_key_proof
&CorrectKeyProof