Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshelev committed Nov 20, 2024
1 parent 22ba17d commit 36d18a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ipa-core/src/helpers/gateway/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ impl ShardConfiguration for &Gateway {
}

fn shard_count(&self) -> ShardIndex {
// total number of shards include this instance and all its peers, so we add 1.
ShardIndex::from(self.transports.shard.peer_count() + 1)
}
}
Expand Down
3 changes: 3 additions & 0 deletions ipa-core/src/query/runner/sharded_shuffle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use crate::{
sync::Arc,
};

/// This executes the sharded shuffle protocol that consists of only one step:
/// permute the private inputs using a permutation that is not known to any helper
/// and client.
pub async fn execute_sharded_shuffle<'a>(
prss: &'a PrssEndpoint,
gateway: &'a Gateway,
Expand Down

0 comments on commit 36d18a2

Please sign in to comment.