Skip to content

Commit a90e402

Browse files
committed
adapt prover and verifier crates
1 parent 07cb644 commit a90e402

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

crates/prover/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ derive_builder = { workspace = true }
3939
futures = { workspace = true }
4040
opaque-debug = { workspace = true }
4141
rand = { workspace = true }
42-
rand06-compat = { workspace = true }
4342
thiserror = { workspace = true }
4443
tracing = { workspace = true }
4544
web-time = { workspace = true }

crates/prover/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub(crate) type RCOTReceiver = mpz_ot::rcot::shared::SharedRCOTReceiver<
5353
mpz_core::Block,
5454
>;
5555
pub(crate) type Mpc =
56-
mpz_garble::protocol::semihonest::Generator<mpz_ot::cot::DerandCOTSender<RCOTSender>>;
56+
mpz_garble::protocol::semihonest::Garbler<mpz_ot::cot::DerandCOTSender<RCOTSender>>;
5757
pub(crate) type Zk = mpz_zk::Prover<RCOTReceiver>;
5858

5959
/// A prover instance.
@@ -345,7 +345,7 @@ impl Prover<state::Closed> {
345345

346346
fn build_mpc_tls(config: &ProverConfig, ctx: Context) -> (Arc<Mutex<Deap<Mpc, Zk>>>, MpcTlsLeader) {
347347
let mut rng = rand::rng();
348-
let delta = Delta::new(Block::random(&mut rng.compat_by_ref()));
348+
let delta = Delta::new(Block::random(&mut rng));
349349

350350
let base_ot_send = mpz_ot::chou_orlandi::Sender::default();
351351
let base_ot_recv = mpz_ot::chou_orlandi::Receiver::default();
@@ -361,7 +361,7 @@ fn build_mpc_tls(config: &ProverConfig, ctx: Context) -> (Arc<Mutex<Deap<Mpc, Zk
361361
.lpn_type(mpz_ot::ferret::LpnType::Regular)
362362
.build()
363363
.expect("ferret config is valid"),
364-
Block::random(&mut rng.compat_by_ref()),
364+
Block::random(&mut rng),
365365
rcot_recv,
366366
);
367367

crates/verifier/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ derive_builder = { workspace = true }
3737
futures = { workspace = true }
3838
opaque-debug = { workspace = true }
3939
rand = { workspace = true }
40-
rand06-compat = { workspace = true }
4140
thiserror = { workspace = true }
4241
tokio = { workspace = true, features = ["sync"] }
4342
tracing = { workspace = true }

crates/verifier/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl Verifier<state::Initialized> {
107107
})
108108
.await?;
109109

110-
let delta = Delta::random(&mut rand::rng().compat());
110+
let delta = Delta::random(&mut rand::rng());
111111
let (vm, mut mpc_tls) = build_mpc_tls(&self.config, &protocol_config, delta, ctx);
112112

113113
// Allocate resources for MPC-TLS in VM.
@@ -346,7 +346,7 @@ fn build_mpc_tls(
346346
.lpn_type(mpz_ot::ferret::LpnType::Regular)
347347
.build()
348348
.expect("ferret config is valid"),
349-
Block::random(&mut rng.compat_by_ref()),
349+
Block::random(&mut rng),
350350
rcot_send,
351351
);
352352
let rcot_recv =

0 commit comments

Comments
 (0)