Skip to content

Commit

Permalink
Add default implementation for TypeWithNoise.
Browse files Browse the repository at this point in the history
  • Loading branch information
MxmUrw committed Aug 27, 2023
1 parent e5bdff3 commit 7c45460
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/flp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,13 @@ where
/// Add noise to the aggregate share to obtain differential privacy.
fn add_noise_to_result(
&self,
dp_strategy: &S,
agg_result: &mut [Self::Field],
num_measurements: usize,
) -> Result<(), FlpError>;
_dp_strategy: &S,
_agg_result: &mut [Self::Field],
_num_measurements: usize,
) -> Result<(), FlpError>
{
Ok(())
}
}

/// A gadget, a non-affine arithmetic circuit that is called when evaluating a validity circuit.
Expand Down

0 comments on commit 7c45460

Please sign in to comment.