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 09dc83e commit 8e70127
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 @@ -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.
Expand Down

0 comments on commit 8e70127

Please sign in to comment.