diff --git a/circuits/deposit.circom b/circuits/deposit.circom index 34fba98..64a6eab 100644 --- a/circuits/deposit.circom +++ b/circuits/deposit.circom @@ -57,6 +57,24 @@ template Deposit(nLevels) { // TODO instead of 2 siblings input, get siblingsOld from siblingsNew[len-1] + // check that nLevels-1 siblings match from siblingsOld & siblingsNew + component siblEq[nLevels]; + signal count[nLevels]; + for (var i=0; i