Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lj committed Aug 22, 2024
1 parent dcef4de commit 091879b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastcrypto-vdf/src/vdf/pietrzak/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ impl<G: ParameterizedGroupElement + Serialize> VDF for PietrzaksVDF<G> {
let mut y = output.clone();
let mut t = self.iterations;

// This is ceil(log_2(iterations)). See also https://oeis.org/A029837.
let iterations = 64 - (self.iterations - 1).leading_zeros();
let mut proof = Vec::with_capacity(iterations as usize);
let mut proof = Vec::new();

// Compute the full proof. This loop may stop at any time which will give a shorter proof
// that is computationally harder to verify.
Expand Down

0 comments on commit 091879b

Please sign in to comment.