Skip to content

Commit

Permalink
Merge pull request #45 from RajeshRk18/add/reference
Browse files Browse the repository at this point in the history
Add: Ref comment for Hash2Pairing
  • Loading branch information
Divide-By-0 authored Sep 27, 2023
2 parents d5cd63f + 9108814 commit bf714fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascript/src/utils/hashToCurve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf714fa

Please sign in to comment.