From 554c94509e932f1fe52f319365954cbd9d028433 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Fri, 5 May 2023 18:17:40 +0700 Subject: [PATCH] ed25519: fix ristrettoHash size typo in hashToCurve --- src/ed25519.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ed25519.ts b/src/ed25519.ts index 5649401..48c6807 100644 --- a/src/ed25519.ts +++ b/src/ed25519.ts @@ -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);