diff --git a/circuits/merkleTree.circom b/circuits/merkleTree.circom index 329f9dc..afcd178 100644 --- a/circuits/merkleTree.circom +++ b/circuits/merkleTree.circom @@ -26,7 +26,7 @@ template DualMux() { // Verifies that merkle proof is correct for given merkle root and a leaf // pathIndices input is an array of 0/1 selectors telling whether given pathElement is on the left or right side of merkle path -template MerkleTree(levels) { +template MerkleTreeChecker(levels) { signal input leaf; signal input root; signal input pathElements[levels]; diff --git a/circuits/withdraw.circom b/circuits/withdraw.circom index 4d803fc..d92a324 100644 --- a/circuits/withdraw.circom +++ b/circuits/withdraw.circom @@ -43,7 +43,7 @@ template Withdraw(levels) { hasher.secret <== secret; hasher.nullifierHash === nullifierHash; - component tree = MerkleTree(levels); + component tree = MerkleTreeChecker(levels); tree.leaf <== hasher.commitment; tree.root <== root; for (var i = 0; i < levels; i++) {