Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Questions about using the Shamir secret sharing protocol #91

Closed
sda427 opened this issue May 20, 2024 · 3 comments
Closed

Questions about using the Shamir secret sharing protocol #91

sda427 opened this issue May 20, 2024 · 3 comments

Comments

@sda427
Copy link

sda427 commented May 20, 2024

  1. Does MPyC support direct input secret sharing? Our own program has already generated secret shares through shamir protocol, and we want to use MPyC for subsequent secure multi-party computation based on shamir protocol, which does not seem to be described in the documentation.
  2. Does MPyC support the definition of a variable length data structure in ciphertext?
@lschoe
Copy link
Owner

lschoe commented May 20, 2024

The answer to your first question is "yes". For example, if you have say three parties holding secret shares of a secure integer, you can assign these shares locally, for each party, and then they can continue to do secure computation with the resulting secure integer.

Party 0 executes a = secint(secint.field(12723956914977493523)) in its program.
Party 1 executes a = secint(secint.field(7001169756245412185)) in its program.
Party 2 executes a = secint(secint.field(1278382597513330847)) in its program.

Then if they run print(await mpc.output(a)) they should all see 23434 being printed.

About your second question, not sure what it is about?

@sda427
Copy link
Author

sda427 commented May 21, 2024

Thank you very much for your answer.

The second question is about secure types. When I use secint.array to define a secure array, is there a way to define a variable-length array without specifying the array length? For example, T = secint.array().

@lschoe
Copy link
Owner

lschoe commented May 21, 2024

Well, no, Numpy arrays are not variable length. And all entries of a Numpy array are of the same type. This allows for efficient processing, in a vectorized manner. Using lists you can have variable length and elements of mixed type, but that usually incurs some extra costs.

Repository owner locked and limited conversation to collaborators May 22, 2024
@lschoe lschoe converted this issue into discussion #92 May 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants