mirror of
https://github.com/tornadocash/tornado-trees.git
synced 2024-12-04 15:14:35 +01:00
fix CVF-36
This commit is contained in:
parent
0895afbc30
commit
7d076e8af1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user