Skip to content

Commit

Permalink
Merge pull request #537 from dedis/Fix-issue-450
Browse files Browse the repository at this point in the history
Fix misleading comment in BN256 hashToPoint()
  • Loading branch information
K1li4nL authored Aug 6, 2024
2 parents f8a092d + 5a3098c commit f944626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pairing/bn256/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (p *pointG1) Hash(m []byte) kyber.Point {
return p
}

// hashes a byte slice into two points on a curve represented by big.Int
// hashes a byte slice into a curve point represented by two big.Int's
// ideally we want to do this using gfP, but gfP doesn't have a ModSqrt function
func hashToPoint(m []byte) (*big.Int, *big.Int) {
h := sha256.Sum256(m)
Expand Down

0 comments on commit f944626

Please sign in to comment.