Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: dan <themighty1@users.noreply.github.com>
  • Loading branch information
sinui0 and themighty1 authored Jan 17, 2024
1 parent 2e977c3 commit 8e2a428
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ot/mpz-ot/src/ideal/shared/cot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ mod tests {
use super::*;

#[tokio::test]
async fn test_ideal_ot() {
async fn test_ideal_cot_shared() {
let mut rng = ChaCha12Rng::seed_from_u64(0);

let values = Block::random_vec(&mut rng, 8);
Expand Down
6 changes: 3 additions & 3 deletions ot/mpz-ot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ pub trait COTSender<T>: ProtocolMessage
where
T: Send + Sync,
{
/// Obliviously transfers the correlations to the receiver.
/// Obliviously transfers the correlated messages to the receiver.
///
/// # Arguments
///
/// * `sink` - The IO sink to the receiver.
/// * `stream` - The IO stream from the receiver.
/// * `msgs` - The `0`-bit messages to obliviously transfer.
/// * `msgs` - The `0`-bit messages to use during the oblivious transfer.
async fn send_correlated<
Si: IoSink<Self::Msg> + Send + Unpin,
St: IoStream<Self::Msg> + Send + Unpin,
Expand Down Expand Up @@ -262,7 +262,7 @@ pub trait COTSenderShared<T> {
/// # Arguments
///
/// * `id` - The unique identifier for this transfer.
/// * `msgs` - The `0`-bit messages to obliviously transfer.
/// * `msgs` - The `0`-bit messages to use during the oblivious transfer.
async fn send_correlated(&self, id: &str, msgs: &[T]) -> Result<(), OTError>;
}

Expand Down

0 comments on commit 8e2a428

Please sign in to comment.