ABY icon indicating copy to clipboard operation
ABY copied to clipboard

PutGateFromFile: tokens are of type int in general

Open sebastianst opened this issue 6 years ago • 2 comments

In general, .aby tokens can have a sign. https://github.com/encryptogroup/ENCRYPTO_utils/pull/13 has to be merged first.

sebastianst avatar Oct 08 '18 18:10 sebastianst

Please comment @lenerd

sebastianst avatar Apr 07 '21 09:04 sebastianst

We kind of misused -2 and -3 to signal constant 0 and 1 in the circuits files here: https://github.com/encryptogroup/ABY/tree/public/bin/circ See also https://github.com/encryptogroup/ABY/blob/public/bin/circ/circuitformat.md

Currently the negative numbers end up interpreted as unsigned ones, so e.g. as 4294967294. This is ugly, but worked so far, as long as no one loads files with 4294967294 or more wires...

If this change does not break the circuits (https://github.com/encryptogroup/ABY/tree/public/src/examples/float), we can merge it. Or we should check what else needs to be fixed, so we can merge it.

dd23 avatar Apr 11 '21 15:04 dd23