(self, scalar)
return self.__add_fixpointnumber(encoded)
return PaillierEncryptedNumber: z = E(x) + y
return PaillierEncryptedNumber: z = E(x) + y
return PaillierEncryptedNumber : z = E ( x ) + y
def __add_scalar(self, scalar):
        """return PaillierEncryptedNumber: z = E(x) + y
        """
        if isinstance(scalar, FixedPointNumber):
            scalar = scalar.decode()
        encoded = FixedPointNumber.encode(scalar,
                                          self.public_key.n,
                                          self.public_key.max_int,
                                          max_exponent=self.exponent)
        return self.__add_fixpointnumber(encoded)
def __add_scalar ( self , scalar ) : if isinstance ( scalar , FixedPointNumber ) : scalar = scalar . decode ( ) encoded = FixedPointNumber . encode ( scalar , self . public_key . n , self . public_key . max_int , max_exponent = self . exponent ) return self . __add_fixpointnumber ( encoded )