Skip to content

Commit

Permalink
Merge pull request private-attribution#1137 from andyleiserson/more-c…
Browse files Browse the repository at this point in the history
…ontext-safety

Remove `impl BooleanArrayMul<SemiHonestContext<...>>`
  • Loading branch information
benjaminsavage authored Jun 14, 2024
2 parents 3633fbe + e75faa5 commit 743f8de
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ipa-core/src/protocol/basics/mul/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::{
context::{
dzkp_semi_honest::DZKPUpgraded as SemiHonestDZKPUpgraded,
semi_honest::Upgraded as SemiHonestUpgraded, Context, DZKPUpgradedMaliciousContext,
SemiHonestContext,
},
RecordId,
},
Expand Down Expand Up @@ -85,25 +84,6 @@ where

macro_rules! boolean_array_mul {
($dim:expr, $vec:ty) => {
impl<'a, B> BooleanArrayMul<SemiHonestContext<'a, B>> for Replicated<$vec>
where
B: sharding::ShardBinding,
{
type Vectorized = Replicated<Boolean, $dim>;

fn multiply<'fut>(
ctx: SemiHonestContext<'a, B>,
record_id: RecordId,
a: &'fut Self::Vectorized,
b: &'fut Self::Vectorized,
) -> impl Future<Output = Result<Self::Vectorized, Error>> + Send + 'fut
where
SemiHonestContext<'a, B>: 'fut,
{
semi_honest_multiply(ctx, record_id, a, b)
}
}

impl<'a, B, F> BooleanArrayMul<SemiHonestUpgraded<'a, B, F>> for Replicated<$vec>
where
B: sharding::ShardBinding,
Expand Down

0 comments on commit 743f8de

Please sign in to comment.