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

offline-phase: lowgear: shared_bits: Implement shared bits generation #76

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

joeykraut
Copy link
Member

Purpose

This PR generates shared bits in the offline phase by consuming Beaver triplets. This is done by squaring a random value, opening it, inverting the opened value, then multiplying with the original random value. This gives a value in ${-1, 1}$ which can then be shifted using public operations into ${0, 1}$.

Testing

  • Unit tests pass
  • Tested the shared bits method, verified that the macs are correctly computed and the resulting values are in ${0, 1}$.

@joeykraut joeykraut merged commit a933434 into master Apr 14, 2024
2 of 4 checks passed
@joeykraut joeykraut deleted the joey/shared-bits branch April 14, 2024 00:33
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

Successfully merging this pull request may close these issues.

1 participant