ABY icon indicating copy to clipboard operation
ABY copied to clipboard

IS DIVISION supported by ABY?

Open shao-hua-li opened this issue 6 years ago • 2 comments

I would like to ask if there is any solution to division using ABY framework :)

shao-hua-li avatar Apr 20 '18 09:04 shao-hua-li

Consider this: https://bitbucket.org/jackdoerner/absentminded-crypto-kit

weikengchen avatar Apr 23 '18 07:04 weikengchen

There is currently no native Integer-Division built into ABY.

However, we have Integer- and Floating-Point (FP) division from circuits that are read from file. Here's an example how to use FP gates in general: https://github.com/encryptogroup/ABY/blob/public/src/examples/float/abyfloat.cpp The Integer-Division circuits are int_div_<bitlen>.aby in bin/circ. You can use them with PutGateFromFile().

If you want to convert Integer values to Floaing-Point, have a look at PutConvTypeGate().

Floating-Point to Integer conversion is not yet implemented.

dd23 avatar May 17 '18 12:05 dd23