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