Skip to content

Commit

Permalink
Only preprocess online part for transcript.
Browse files Browse the repository at this point in the history
  • Loading branch information
th4s committed Sep 11, 2024
1 parent 892a827 commit 7b228b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions crates/tls/mpc/src/follower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ impl MpcTlsFollower {
self.prf.preprocess().await?;

let preprocess_encrypt = self.config.common().tx_config().max_online_size();
let preprocess_decrypt = self.config.common().rx_config().max_online_size()
+ self.config.common().rx_config().max_offline_size();
let preprocess_decrypt = self.config.common().rx_config().max_online_size();

futures::try_join!(
self.encrypter.preprocess(preprocess_encrypt),
Expand Down
3 changes: 1 addition & 2 deletions crates/tls/mpc/src/leader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ impl MpcTlsLeader {
self.prf.preprocess().await?;

let preprocess_encrypt = self.config.common().tx_config().max_online_size();
let preprocess_decrypt = self.config.common().rx_config().max_online_size()
+ self.config.common().rx_config().max_offline_size();
let preprocess_decrypt = self.config.common().rx_config().max_online_size();

futures::try_join!(
self.encrypter.preprocess(preprocess_encrypt),
Expand Down

0 comments on commit 7b228b4

Please sign in to comment.