Skip to content

Commit

Permalink
final PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sinui0 committed Aug 11, 2023
1 parent c392ed0 commit 6faf2f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions ot/mpz-ot-core/src/kos/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ where
}

impl Receiver {
/// Creates a new Sender
/// Creates a new Receiver
///
/// # Arguments
///
/// * `config` - The Sender's configuration
/// * `config` - The Receiver's configuration
pub fn new(config: ReceiverConfig) -> Self {
let tape = if config.sender_commit() {
Some(Default::default())
Expand All @@ -77,6 +77,7 @@ impl Receiver {
.iter()
.map(|seeds| {
seeds.map(|seed| {
// Stretch the Block-sized seed to a 32-byte seed.
let mut seed_ = RngSeed::default();
seed_
.iter_mut()
Expand Down Expand Up @@ -382,7 +383,8 @@ pub struct ReceiverKeys {
index: usize,
/// Decryption keys
keys: Vec<Block>,
/// Choices
/// The Receiver's choices. If derandomization is performed, these are the overwritten
/// with the derandomized choices.
choices: Vec<bool>,

/// Receiver `ts`
Expand Down
2 changes: 1 addition & 1 deletion ot/mpz-ot/src/kos/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ where

let check = check?;

// Send consistency check
// Send cointoss decommitment and correlation check value.
sink.feed(Message::CointossSenderPayload(payload)).await?;
sink.feed(Message::Check(check)).await?;
sink.flush().await?;
Expand Down

0 comments on commit 6faf2f4

Please sign in to comment.