Closed yoopaan closed 2 years ago
no, as a random obfuscator is included in the encryption such that encryptions of the same plaintext are different numbers. This is to prevent an attacker from learning the plaintext based on patterns of similarities
Does paillier support homomorphic equality function? In other words, how to judge that two ciphertexts are equal?
There are non interactive zero knowledge proofs that the encryptor can generate to prove that two ciphertext are equal. But this is not currently supported in this package. You have to find a paper that describes one of these methods and implement this yourself
If A and B are equal, are their corresponding ciphertexts equal?