fix CVF-36

This commit is contained in:
poma 2021-03-19 23:08:46 +03:00
parent 0895afbc30
commit 7d076e8af1
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

View File

@ -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