From 91088140fdcfef17bff90a189520053809af16c7 Mon Sep 17 00:00:00 2001 From: RajeshRk18 Date: Wed, 27 Sep 2023 15:40:12 +0530 Subject: [PATCH] Add: Ref comment --- javascript/src/utils/hashToCurve.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript/src/utils/hashToCurve.ts b/javascript/src/utils/hashToCurve.ts index 50746ba..2d60c5f 100644 --- a/javascript/src/utils/hashToCurve.ts +++ b/javascript/src/utils/hashToCurve.ts @@ -30,6 +30,7 @@ function hashToField(ctx, hash, hlen, DST, M, ctr) { return u; } +// Taken from https://github.com/miracl/core/blob/master/javascript/examples/node/TestHTP.js#L37 function hashToPairing(ctx, M, ro, hlen) { const DSTRO = asciitobytes(ro); const u = hashToField(ctx, ctx.HMAC.MC_SHA2, hlen, DSTRO, M, 2);