From 6127656bab34006232609d698285625fe609d84d Mon Sep 17 00:00:00 2001 From: Moshe Shababo <17073733+moshababo@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:12:48 -0500 Subject: [PATCH] Update node/libs/crypto/src/bn254/hash.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bruno França --- node/libs/crypto/src/bn254/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/libs/crypto/src/bn254/hash.rs b/node/libs/crypto/src/bn254/hash.rs index 44cba17c..8540ee58 100644 --- a/node/libs/crypto/src/bn254/hash.rs +++ b/node/libs/crypto/src/bn254/hash.rs @@ -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 {