-
Notifications
You must be signed in to change notification settings - Fork 1
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
Multi-Party bit authentication spec #72
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
franziskuskiefer
approved these changes
May 9, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I left a couple comments. But mostly for me to understand and to maybe add some clarifications. Let's get it in on Monday.
Also: `p256::Error::SamplingError` is not related to insufficient randomness in the first place.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to implements a multi-party bit authentication protocol, i.e. a protocol, where a party can input some number of bits and receive information theoretic MACs on those bits under the global keys of the other parties. The other parties receive the corresponding local keys, which allow them to verify the MAC later on.
To this end the contributions are:
Fixes [MPC] Specify multi-party coin-flipping protocol #67
This means that the protocol as a whole will not be actively secure as long as the two-party bit authentication is only passively secure and we introduce an additional trust assumption with the public bulletin-board. These issues are perhaps to be addressed in a follow-up.
When running the protocol on the example circuit (
cargo run --example run_mpc
), I've noticed the base OT is quite slow, due to it using non-optimized speccy implementations of its ECC & AEAD components. When generating al
authenticated bits between the parties, an additional2 * rho
authenticated bits have to be generated, whererho
is the statistical security parameter in bits, to do the statistical checks for malicious security. This means it is ill-advised to callbit_auth
repeatedly with small values when the calls could be batched. For testing the basic functionality I also experimented with what I call "ludicrous mode", i.e. basically without security, by setting computational and statistical security to the smallest possible value. This helped me find some logic bugs, but some might also slip by this way, since the statistical tests of course rely on a high number of samples to find cheaters (or buggy participants as the case may be).