You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to run encrypted KeyValueDatabase and I got some issues while querying both static-size and dynamic-size databases. I simply installed concrete using PyPi then copied/pasted/ran examples source code. I am just starting using concrete, so apologies if I missed something.
Hey @LucasG0, you were right. It seems the recent changes made to some operations resulted in this problem.
The core of the issue comes from == now being multi precision by default. What this means is it'll result in an actual 1-bit value. We have operations like these in the implementation:
The problem was the inputset was not sufficient, and it resulted in np.sum((candidate_key - key) == 0) to be assigned a very low bit-width during compilation. However, in runtime, the keys were the same so this value overflowed!
The solution is to hint these intermediates to indicate what can be the result of them in the worst case for bit width.
PR is open, and it'll be fixed soon.
Let us know if you have more questions!
Hi, I tried to run encrypted KeyValueDatabase and I got some issues while querying both static-size and dynamic-size databases. I simply installed
concrete
using PyPi then copied/pasted/ran examples source code. I am just starting usingconcrete
, so apologies if I missed something.Here is the output I got for
static-size.py
:and here is the output I got for
dynamic-size.py
:The text was updated successfully, but these errors were encountered: