From a3da216e034b545ddda5ca02b1546bf165104039 Mon Sep 17 00:00:00 2001 From: poma Date: Sat, 20 Mar 2021 23:50:59 +0300 Subject: [PATCH] docs --- circuits/BatchTreeUpdate.circom | 1 + 1 file changed, 1 insertion(+) diff --git a/circuits/BatchTreeUpdate.circom b/circuits/BatchTreeUpdate.circom index ceb035b..aaec2a0 100644 --- a/circuits/BatchTreeUpdate.circom +++ b/circuits/BatchTreeUpdate.circom @@ -21,6 +21,7 @@ template TreeLayer(height) { // Inserts a leaf batch into a tree // Checks that tree previously contained zero leaves in the same position // Hashes leaves with Poseidon hash +// `batchLevels` should be less than `levels` template BatchTreeUpdate(levels, batchLevels, zeroBatchLeaf) { var height = levels - batchLevels; var nLeaves = 1 << batchLevels;