use circom 2.1.0 anonymous components

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2022-11-17 14:28:16 +01:00
parent 1955c11d69
commit 6735dc4bc4
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 5 additions and 5 deletions

View File

@ -66,11 +66,11 @@ template StorageProver(blockSize, qLen, nLevels) {
component checkInclusion[qLen]; component checkInclusion[qLen];
for (var i = 0; i < qLen; i++) { for (var i = 0; i < qLen; i++) {
checkInclusion[i] = CheckInclusion(nLevels); CheckInclusion(nLevels)(
checkInclusion[i].index <== indices[i]; indices[i],
checkInclusion[i].treeSiblings <== treeSiblings[i]; chunkHashes[i],
checkInclusion[i].chunkHash <== chunkHashes[i]; treeSiblings[i],
checkInclusion[i].root <== root; root);
} }
} }