snwagh/securenn-public

Wrong output when trying to run debugComputeMSB, debugReluPrime, debugMax

0xlimE opened this issue · 3 comments

I want to try and find the MSB of some inputs.
The debugComputeMSB simply gives wrong outputs, (ive added some code to show the bit representation of the numbers (-4 - 5)

image

Basically I cannot get the right output for any debug functions.

Is there some setup I am missing?

Do you have a keyD in you files/ ?
If not, please generate one by yourself and add it to /files. However, this can only solve a small part of the problems.

Yes I do :)

The 4PC code might have more bugs than the 3PC. Try if the 3PC works. If it does, maybe you can use that as a reference to fix the bugs in the 4PC.