matches h exps to latest phase2 code

(cherry picked from commit 1fea8e0ef042d0e68e88e271fb7e79949a884a51)
This commit is contained in:
Kobi Gurkan 2019-12-29 17:57:17 +02:00 committed by poma
parent fba855ab74
commit ffade701ba
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

@ -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<provingKey.nVars; i++) {
}
writeUint32ToPointer(h, pPointsHExps, h.offset);
for (let i=0; i<provingKey.domainSize; i++) {
for (let i=0; i<provingKey.domainSize - 1; i++) {
writePoint(h, provingKey.hExps[i]);
}