From 49a210fdff626d2c6e71a3026301a5e70031e32a Mon Sep 17 00:00:00 2001 From: Jordi Baylina Date: Sun, 31 May 2020 10:14:03 +0200 Subject: [PATCH] Fix verify partial hash --- src/powersoftau_verify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powersoftau_verify.js b/src/powersoftau_verify.js index f60a6d6..e3df407 100644 --- a/src/powersoftau_verify.js +++ b/src/powersoftau_verify.js @@ -283,7 +283,7 @@ async function verify(tauFilename, verbose) { console.log(utils.formatHash(prevContr.nextChallange)); const buffV = new Uint8Array(curve.G1.F.n8*2*6+curve.G2.F.n8*2*3); - utils.toPtauPubKeyRpr(buffV, 0, curve, key, false); + utils.toPtauPubKeyRpr(buffV, 0, curve, curContr.key, false); const responseHasher = Blake2b(64); responseHasher.setPartialHash(curContr.partialHash);