Skip to content

Commit

Permalink
Remove some unnecessary trait bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleiserson committed Jun 7, 2023
1 parent 6a96aed commit 158e936
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/query/runner/ipa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,9 @@ use futures::StreamExt;
use std::marker::PhantomData;
use typenum::Unsigned;

pub struct IpaQuery<F, C, S>(IpaQueryConfig, PhantomData<(F, C, S)>)
where
F: PrimeField,
AdditiveShare<F>: Serializable,
C: UpgradableContext,
C::UpgradedContext<F>: UpgradedContext<F, Share = S>,
S: LinearSecretSharing<F> + Serializable,
IPAInputRow<F, MatchKey, BreakdownKey>: Serializable;
pub struct IpaQuery<F, C, S>(IpaQueryConfig, PhantomData<(F, C, S)>);

impl<F, C, S> IpaQuery<F, C, S>
where
F: PrimeField,
AdditiveShare<F>: Serializable,
C: UpgradableContext,
C::UpgradedContext<F>: UpgradedContext<F, Share = S>,
S: LinearSecretSharing<F> + Serializable,
IPAInputRow<F, MatchKey, BreakdownKey>: Serializable,
{
impl<F, C, S> IpaQuery<F, C, S> {
pub fn new(config: IpaQueryConfig) -> Self {
Self(config, PhantomData)
}
Expand Down

0 comments on commit 158e936

Please sign in to comment.