Skip to content

Commit

Permalink
Add a comment saying that calculations follow a section in the paper.
Browse files Browse the repository at this point in the history
  • Loading branch information
tolikzinovyev committed Nov 18, 2024
1 parent f1be035 commit 41be680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/simple_lottery/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use std::f64::consts::LN_2;

/// Calculates Setup parameters.
pub fn make_setup(params: &Params) -> Setup {
// The following follows section 4.1 of the ALBA paper. https://eprint.iacr.org/2023/1655

let ratio = params.set_size as f64 / params.lower_bound as f64;

// Execute binary search for the optimal value of `rs` in the interval
Expand Down

0 comments on commit 41be680

Please sign in to comment.