diff --git a/node/libs/crypto/src/bn254/hash.rs b/node/libs/crypto/src/bn254/hash.rs index 9940a4ef..44cba17c 100644 --- a/node/libs/crypto/src/bn254/hash.rs +++ b/node/libs/crypto/src/bn254/hash.rs @@ -4,7 +4,7 @@ use ark_bn254::{G1Affine, G1Projective}; use ark_ec::AffineRepr as _; use sha2::Digest as _; -/// H(m) as a point in G1. +/// Hashes an arbitrary message and maps it to an elliptic curve point in G1. pub(crate) fn hash_to_g1(msg: &[u8]) -> G1Projective { for i in 0..100 { // Hash the message with the index as suffix.