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

Should MPCProtocol be generic over a secret-shared number #33

Open
th4s opened this issue Feb 8, 2022 · 3 comments
Open

Should MPCProtocol be generic over a secret-shared number #33

th4s opened this issue Feb 8, 2022 · 3 comments

Comments

@th4s
Copy link
Contributor

th4s commented Feb 8, 2022

Clarify whether having MPCProtocol be generic over a secret-shared number with an associated type makes sense for the kinds of MPC protocols we want to support.

@Mikerah
Copy link
Contributor

Mikerah commented Feb 8, 2022

The answer is no.
Protocols like HoneyBadgerMPC require a minimum field size of n where n is the number of parties that are a part of the shamir secret sharing scheme. Pretty sure this applies for all of the protocols that rely on stuff like shamir secret sharing.

So, we should explore the approach of having associated types for both secret shared numbers and public numbers.

@th4s
Copy link
Contributor Author

th4s commented Feb 8, 2022

Objection: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e97a4eb0852433e0bb8de71932fe7ed0

An associated type trait can only be implemented ONCE for some struct.

@Mikerah
Copy link
Contributor

Mikerah commented Feb 8, 2022

I don't think that's a problem.
We only need to design the higher-level APIs to be such that the developer can choose the ring/field they need.

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