Skip to content

Commit

Permalink
💡 Add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
taskooh committed Nov 10, 2023
1 parent 6e7eab5 commit a926b65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/she/plaintext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ impl Plaintexts {
}

pub fn restricted_rand<T: Rng>(params: &SHEParameters, rng: &mut T) -> Plaintexts {
// TODO: make this more general
// currently:
// Lower Bound > maximum value of possible secret input (approximately 10,000 in this case) * number of participants
// Upper Bound * number of participants < period of the ScalarField of edwards_bls12_377 (≒10^75)
let upper_bound = 1000000000;
let lower_bound = 100000;

Expand Down

0 comments on commit a926b65

Please sign in to comment.