fix CVF-36
This commit is contained in:
parent
0895afbc30
commit
7d076e8af1
@ -11,7 +11,7 @@ template TreeUpdateArgsHasher(nLeaves) {
|
|||||||
signal output out;
|
signal output out;
|
||||||
|
|
||||||
var header = 256 + 256 + 32;
|
var header = 256 + 256 + 32;
|
||||||
var bitsPerLeaf = 160 + 256 + 32;
|
var bitsPerLeaf = 256 + 160 + 32;
|
||||||
component hasher = Sha256(header + nLeaves * bitsPerLeaf);
|
component hasher = Sha256(header + nLeaves * bitsPerLeaf);
|
||||||
|
|
||||||
// the range check on old root is optional, it's enforced by smart contract anyway
|
// the range check on old root is optional, it's enforced by smart contract anyway
|
||||||
|
Loading…
Reference in New Issue
Block a user