You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As self.g = n + 1, would it be better to replace return invert(self.l_function(powmod(self.public_key.g, x - 1, xsquare),x), x)
with return invert(self.l_function((self.n * (x - 1) + 1) % xsquare , x), x)
in phe/paillier.py/h_function(self, x, xsquare), it may allow it to be faster
The text was updated successfully, but these errors were encountered:
As self.g = n + 1, would it be better to replace
return invert(self.l_function(powmod(self.public_key.g, x - 1, xsquare),x), x)
with
return invert(self.l_function((self.n * (x - 1) + 1) % xsquare , x), x)
in phe/paillier.py/h_function(self, x, xsquare), it may allow it to be faster
The text was updated successfully, but these errors were encountered: