data61/MP-SPDZ

Operations between secret values and public values

Closed this issue · 2 comments

Hi, does MP-SPDZ support operations between a public value and a secret value? For instance, is there a function like sfix.dot_product(a, b) that works when a is a vector of sfix and b is a vector of public floats? I know I can convert b into a vector of sint and it would work, but I think multiplying secret-public would be faster than multiplying secret-secret, so I'm checking if mixed operations exist... Thank you.

Mixed operations do exist but you do have to call them manually, sum(a * b for a, b in zip(x, y)) where x and y are the input vectors or lists.

Thanks!