Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operations between secret values and public values #1522

Open
mcocartsy opened this issue Oct 30, 2024 · 1 comment
Open

Operations between secret values and public values #1522

mcocartsy opened this issue Oct 30, 2024 · 1 comment

Comments

@mcocartsy
Copy link

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.

@mkskeller
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants