Commit Graph

10 Commits

Author SHA1 Message Date
arnaucube
f55bf85ccc Rm dvote/censustree interface dependency (which nolonger exists) 2022-01-03 10:15:45 +01:00
arnaucube
195cbad761 Update Tree interface to match last censustree version 2021-08-10 19:10:44 +02:00
p4u
3e47da54b6 rename
Signed-off-by: p4u <pau@dabax.net>
2021-03-27 18:30:07 +01:00
p4u
c41a99b94f Add readme and license file
Signed-off-by: p4u <pau@dabax.net>
2021-03-27 18:29:06 +01:00
p4u
137219f5f0 fix AddBatch and add a benchmark
Signed-off-by: p4u <pau@dabax.net>
2021-03-27 18:13:28 +01:00
p4u
d69f5d6618 apply golang-ci suggestions
Signed-off-by: p4u <pau@dabax.net>
2021-03-26 19:47:07 +01:00
p4u
d855f4fb14 full refactor
- include the db package from aergo to this repository
- move sparse merkle tree code to smt directory
- add a new root package for being compatible with vocdoni/censusTree

Signed-off-by: p4u <pau@dabax.net>
2021-03-22 17:20:28 +01:00
p4u
c679bcb817 add method VerifyInclusionWithRootC
Signed-off-by: p4u <pau@dabax.net>
2021-03-22 11:35:02 +01:00
p4u
6fb3b028ac add method VerifyInclusionWithRoot
Signed-off-by: p4u <pau@dabax.net>
2021-03-22 11:01:59 +01:00
p4u
40ddcbf3f2 initial commit
- Code copied from https://github.com/aergoio/aergo
- Make it a go module
- Added Walk and GetWithRoot new methods
- Create custom hasher based on blake256

Signed-off-by: p4u <pau@dabax.net>
2021-03-21 19:10:15 +01:00