use 2.1.0 circom syntax

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2022-11-29 14:54:58 +01:00
parent 3875d06186
commit 3761dde176
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 4 additions and 4 deletions

View File

@ -51,11 +51,11 @@ template StorageProver(blockSize, qLen, nLevels) {
signal input root;
//check that chunks hash to given hashes
component hashCheck[qLen];
for (var i = 0; i < qLen; i++) {
hashCheck[i] = HashCheck(blockSize);
hashCheck[i].block <== chunks[i];
hashCheck[i].blockHash <== chunkHashes[i];
parallel HashCheck(blockSize)(
chunks[i],
chunkHashes[i]
);
}
//check that the tree is correct