Skip to content

Commit

Permalink
Merge pull request #42 from sublimator/patch-1
Browse files Browse the repository at this point in the history
ed25519: fix ristrettoHash size typo in hashToCurve
  • Loading branch information
paulmillr authored May 5, 2023
2 parents 7c11a02 + 554c945 commit 5edafba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ed25519.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ export class RistrettoPoint {
}

/**
* Takes uniform output of 64-bit hash function like sha512 and converts it to `RistrettoPoint`.
* Takes uniform output of 64-byte hash function like sha512 and converts it to `RistrettoPoint`.
* The hash-to-group operation applies Elligator twice and adds the results.
* **Note:** this is one-way map, there is no conversion from point to hash.
* https://ristretto.group/formulas/elligator.html
* @param hex 64-bit output of a hash function
* @param hex 64-byte output of a hash function
*/
static hashToCurve(hex: Hex): RistrettoPoint {
hex = ensureBytes('ristrettoHash', hex, 64);
Expand Down

0 comments on commit 5edafba

Please sign in to comment.