Commit Graph

32 Commits

Author SHA1 Message Date
poma
e6a4208b52
change zero value constant 2019-11-15 11:44:07 +03:00
poma
61864ceda1 reorder vars 2019-11-08 02:58:12 +03:00
poma
ac8fc08cc2 use bytes32 for hashes 2019-11-08 02:57:39 +03:00
poma
e9c2055bb4 changed merkleTree vars to uint32 where appropriate 2019-11-08 02:53:37 +03:00
poma
f783b45559 refactor isKnownRoot, add test 2019-11-08 02:52:54 +03:00
Alexey
d5b16547f7 tidy 2019-11-05 12:22:25 +03:00
poma
1fd0c7fdea change zero to local variable 2019-11-04 22:46:19 +03:00
poma
27e3121bb0 comments 2019-11-04 22:45:56 +03:00
poma
8a179b9217 added comment on checks 2019-11-02 16:26:13 +03:00
poma
2ded1f8adb refactor merkle tree naming 2019-11-02 16:04:41 +03:00
poma
1fdabcc97c changed emptyElement to constant 2019-11-02 15:35:22 +03:00
poma
c92ac97ff2 make field_size constant, return extra addmod, refactor return 2019-11-02 14:30:00 +03:00
poma
c47408ebd7 cache current_zero value to prevent excessive SLOADs 2019-11-02 14:29:43 +03:00
poma
6095106549 rename current root index 2019-11-02 13:11:15 +03:00
poma
6571f54768 make _roots public 2019-11-02 13:11:03 +03:00
poma
1364762b93 make _roots constant sized array 2019-11-02 13:10:57 +03:00
poma
2bb751bfd1 change ROOT_HISTORY_SIZE type 2019-11-02 13:10:48 +03:00
poma
54e2c5f890 return inserted index from merkle tree 2019-11-02 11:40:46 +03:00
poma
71b767ade1 rename mimc mentions to a generic hasher 2019-10-04 15:38:08 +03:00
Alexey
9132aeb6d5 max leaves count fix 2019-09-16 13:07:14 +03:00
Alexey
0689d76df1 leafs = 2**(levels - 1) 2019-09-11 11:25:32 +03:00
Alexey
3404acef48 fix leaf count 2019-09-11 11:17:32 +03:00
Pertsev Alexey
e75740becb
Merge branch 'master' into erc20_support 2019-09-10 17:28:01 +03:00
poma
d39eb3ca4b
add comments, improve readability, improve readme, fix default values 2019-09-05 17:43:06 -04:00
Drygin
ec30e2d357 fix merkle tree capacity 2019-09-04 13:31:10 +03:00
Alexey
9b4d3bc34e operator role 2019-08-02 20:12:30 +03:00
Alexey
13b9a948dc remove redundant event 2019-07-19 20:08:47 +03:00
Roman Storm
c6e1b28a82 index leafs 2019-07-18 14:39:06 -07:00
Alexey
39777a46e1 max elements tree count test 2019-07-16 14:04:14 +03:00
Alexey
eb75bab81b other way to lookup a root 2019-07-15 18:33:46 +03:00
Alexey
5c16e02c90 off-by-one fix and tests 2019-07-15 18:04:48 +03:00
poma
b5b3474165 Move contracts to repository root 2019-07-12 12:53:44 +03:00