MK-TFHE icon indicating copy to clipboard operation
MK-TFHE copied to clipboard

MUX gate

Open send2cny opened this issue 5 years ago • 4 comments

I tried to implement MUX gate with using this new MK algo. There is no issue with AND, ANDNY and OR gates.

But errors appears when directly pass u1 and u2 over OR gates. Errors are not consistence via different trials. example passing 1, 1, 1, into MUX sometime, we get logic 0, sometime we get logic 1.

send2cny avatar Dec 24 '19 04:12 send2cny

You implemented the MUX by combining the bootstrapped binary gates or differently? What are u1 and u2?

ilachill avatar Dec 31 '19 10:12 ilachill

We referenced the codes from libtfhe/boot-gates.cpp So u1 is AND operation and u2 is ANDNY operation.

OR gate by itself have no issues as well. (Done separately)

send2cny avatar Dec 31 '19 15:12 send2cny

It seems like there are less issues or errors when parties is = 1 Which variables should I adjusted when I increase the parties number??

send2cny avatar Jan 21 '20 12:01 send2cny

You have to play a little bit with the noise formulas that you should find in the paper. Not only noise parameters should be adjusted (by also taking into account the security) but also the decomposition parameters.

ilachill avatar Jan 25 '20 00:01 ilachill