From 7d076e8af14f58d2ce3b224292914144b05391c7 Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 19 Mar 2021 23:08:46 +0300 Subject: [PATCH] fix CVF-36 --- circuits/TreeUpdateArgsHasher.circom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circuits/TreeUpdateArgsHasher.circom b/circuits/TreeUpdateArgsHasher.circom index 4ac6e4f..13d11fb 100644 --- a/circuits/TreeUpdateArgsHasher.circom +++ b/circuits/TreeUpdateArgsHasher.circom @@ -11,7 +11,7 @@ template TreeUpdateArgsHasher(nLeaves) { signal output out; var header = 256 + 256 + 32; - var bitsPerLeaf = 160 + 256 + 32; + var bitsPerLeaf = 256 + 160 + 32; component hasher = Sha256(header + nLeaves * bitsPerLeaf); // the range check on old root is optional, it's enforced by smart contract anyway