-
Notifications
You must be signed in to change notification settings - Fork 25
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
[RFC][oprf][shuffle] OPRF Shuffle using a 2-round 4-message shuffle protocol #809
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
dae7449
[oprf][shuffle] OPRF Shuffle using a 2-round 4-message shuffle protocol
cd6b5d2
Removed duplication of generating permutations and "Z" random tables
f9119bf
swapped bodies for impl Add for &OPRFShuffleSingleShare and impl Add …
110a7e6
[oprf][shuffle] Addressed review comments
90afdbb
More improvements
dd44876
[oprf][shuffle] Renames
a53692d
Merge remote-tracking branch 'origin/main' into oprf-shuffle
7cba0bd
[oprf][shuffle] A bunch of renames
cd59872
[oprf][shuffle] Made apply permutation module from sort protocoal an …
9043ec3
[oprf][shuffle] Move share splitting and combining logic into runner …
adc46da
[oprf][shuffle] Generalized shuffle function across any inputs satisf…
38ca599
[oprf][shuffle] Reimplemented the input to shuffle function as an int…
2ea0ca1
[oprf][shuffle] Tests
1d9138d
[oprf][shuffle] Represent shuffle response as Vec<AdditiveShare<_>>
cf865b0
Merge remote-tracking branch 'origin/main' into oprf-shuffle
7791ae0
[oprf][shuffle] Avoid allocation of permutations
b3b09ed
[oprf][shuffle] Removed a few unnecessary allocations
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)] | ||
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))] | ||
pub struct QueryConfig {} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use futures::Stream; | ||
|
||
/// | ||
/// Helps to convince the compiler that things are `Send`. Like `seq_join::assert_send`, but for | ||
/// streams. | ||
/// | ||
/// <https://github.com/rust-lang/rust/issues/102211#issuecomment-1367900125> | ||
pub fn assert_stream_send<'a, T>( | ||
st: impl Stream<Item = T> + Send + 'a, | ||
) -> impl Stream<Item = T> + Send + 'a { | ||
st | ||
} |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod apply_permutation; | ||
pub mod check_zero; | ||
mod if_else; | ||
pub(crate) mod mul; | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ pub mod context; | |
pub mod dp; | ||
pub mod ipa; | ||
pub mod modulus_conversion; | ||
pub mod oprf; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should probably not call this oprf since it is just a shuffle and a basic protocol that could be used in different context. It is not related to an oprf other than that we want to use it together with a prf/orpf in our new IPA version. |
||
#[cfg(feature = "descriptive-gate")] | ||
pub mod prf_sharding; | ||
pub mod prss; | ||
pub mod sort; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod shuffle; |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
I used the ipa-prf feature which requires descriptive gate, but it hasn't landed yet but probably will land soon.