From ffade701ba658e04329d3d92b917b1174339c437 Mon Sep 17 00:00:00 2001 From: Kobi Gurkan Date: Sun, 29 Dec 2019 17:57:17 +0200 Subject: [PATCH] matches h exps to latest phase2 code (cherry picked from commit 1fea8e0ef042d0e68e88e271fb7e79949a884a51) --- tools/buildpkey.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/buildpkey.js b/tools/buildpkey.js index 664e5e8..65a29b7 100644 --- a/tools/buildpkey.js +++ b/tools/buildpkey.js @@ -111,7 +111,7 @@ function calculateBuffLen(provingKey) { size += provingKey.nVars* (32*2); size += provingKey.nVars* (32*4); size += (provingKey.nVars - provingKey.nPublic - 1)* (32*2); - size += provingKey.domainSize * (32*2); + size += (provingKey.domainSize - 1) * (32*2); return size; } @@ -175,7 +175,7 @@ for (let i=provingKey.nPublic+1; i