Skip to content

Commit

Permalink
Update node/libs/crypto/src/bn254/hash.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno França <[email protected]>
  • Loading branch information
moshababo and brunoffranca authored Oct 30, 2023
1 parent 8e70127 commit 6127656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/libs/crypto/src/bn254/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub(crate) fn hash_to_g1(msg: &[u8]) -> G1Projective {
.finalize()
.into();

// Try to get a G1 point from the hash.
// Try to get a G1 point from the hash. The probability that this works is around 1/8.
let p = G1Affine::from_random_bytes(&bytes);

if let Some(p) = p {
Expand Down

0 comments on commit 6127656

Please sign in to comment.