Commit Graph

5 Commits

Author SHA1 Message Date
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