Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
leading zeroes in the hash lead to test failure
  • Loading branch information
Denis Varlakov committed Dec 11, 2020
1 parent 4e67c1f commit 62da573
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ mod tests {
let (_commitment, blind_factor) = HashCommitment::create_commitment(&message);
let commitment2 =
HashCommitment::create_commitment_with_user_defined_randomness(&message, &blind_factor);
assert_eq!(commitment2.to_str_radix(16).len(), SECURITY_BITS / 4);
assert!(commitment2.to_str_radix(16).len() / 2 <= SECURITY_BITS / 8);
}

#[test]
Expand Down

0 comments on commit 62da573

Please sign in to comment.