Skip to content

Commit

Permalink
Merge pull request #1042 from benjaminsavage/walr2
Browse files Browse the repository at this point in the history
Walr2
  • Loading branch information
benjaminsavage authored May 11, 2024
2 parents 3ec4f9c + d0fc05f commit eedf8d7
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 108 deletions.
24 changes: 15 additions & 9 deletions ipa-core/src/protocol/basics/reveal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,12 @@ mod tests {
},
rand::{thread_rng, Rng},
secret_sharing::{
replicated::malicious::{
AdditiveShare as MaliciousReplicated, ExtendableField,
ThisCodeIsAuthorizedToDowngradeFromMalicious,
replicated::{
malicious::{
AdditiveShare as MaliciousReplicated, ExtendableField,
ThisCodeIsAuthorizedToDowngradeFromMalicious,
},
semi_honest::AdditiveShare,
},
IntoShares, SharedValue,
},
Expand Down Expand Up @@ -299,12 +302,15 @@ mod tests {

let input = rng.gen::<TestField>();
let results = world
.semi_honest(input, |ctx, share| async move {
share
.reveal(ctx.set_total_records(1), RecordId::from(0))
.await
.unwrap()
})
.semi_honest(
input,
|ctx, share: AdditiveShare<Fp32BitPrime, 32>| async move {
share
.reveal(ctx.set_total_records(1), RecordId::from(0))
.await
.unwrap()
},
)
.await;

assert_eq!(input, results[0]);
Expand Down
Loading

0 comments on commit eedf8d7

Please sign in to comment.