Closed renguomin closed 6 months ago
The issue is that multiplication of 17 and 1.05 is not integer independent from k.
Try it for m=10000 and k=1.05
I see. Is this (the multiplication must be integer) the limitation of the algorithms or your implementation?
Yes. These algorithms are working on integers. Even float numbers can be represented as integers as well.
These algorithms are working on integers
Sorry I don't quite understand your answer. Are you saying the (mathematical) algorithms themselves can't deal with float numbers? Or is it just your implementation (your code) doesn't work with float?
Algorithms' limitations
Got it, thanks for the clarification.
plain constant multiplication doesn't work for the algorithms that are supported for this operation, i.e. Paillier, Damgard-Jurik, etc.
Run the sample code in the README,
I get
I think this is due to the type of k. If
k
is integer, e.g.5
, the above code works. I tested in 3 environment, the result is the same: