MP-SPDZ
MP-SPDZ copied to clipboard
ORAM to Array
Hello, I found in oram.py that LinearORAM implements a get_array function, which I think is a way to convert oram into array I tested this function and found that the converted array is all 0
oram=OptimalORAM(5)
@for_range(5)
def _(i):
oram[sint(i)]=sint(i)
@for_range(5)
def _(i):
print_ln('%s',oram[sint(i)].reveal())
a=sint.Array(5)
a=oram.get_array(5,sint)
print_ln('%s',a.reveal())
No, this is not the intended meaning of get_array(). It's only used internally to create a new array of the right type, which is why it's all zero.