From 3761dde1768658dcde9988619ce78e134fab9f00 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Tue, 29 Nov 2022 14:54:58 +0100 Subject: [PATCH] use 2.1.0 circom syntax Signed-off-by: Csaba Kiraly --- circuits/storer.circom | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/circuits/storer.circom b/circuits/storer.circom index d1e9a62..3e5d88d 100644 --- a/circuits/storer.circom +++ b/circuits/storer.circom @@ -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