mirror of
https://github.com/vbatts/merkle.git
synced 2024-12-03 11:35:40 +00:00
Golang Merkle Tree Implementation. With hash.Hash interface for streaming support
Vincent Batts
fa4337c370
improvement: ``` benchmark old ns/op new ns/op delta BenchmarkHash8Bytes 21137 12201 -42.28% BenchmarkHash1K 27235 14842 -45.50% BenchmarkHash8K 38630 29034 -24.84% benchmark old MB/s new MB/s speedup BenchmarkHash8Bytes 0.38 0.66 1.74x BenchmarkHash1K 37.60 68.99 1.83x BenchmarkHash8K 212.06 282.15 1.33x benchmark old allocs new allocs delta BenchmarkHash8Bytes 10 9 -10.00% BenchmarkHash1K 10 9 -10.00% BenchmarkHash8K 9 8 -11.11% benchmark old bytes new bytes delta BenchmarkHash8Bytes 16712 8520 -49.02% BenchmarkHash1K 17728 9536 -46.21% BenchmarkHash8K 16704 8512 -49.04% ``` |
||
---|---|---|
.travis.yml | ||
block.go | ||
block_test.go | ||
doc.go | ||
LICENSE | ||
node.go | ||
node_test.go | ||
README.md | ||
stream.go | ||
stream_test.go | ||
tree.go |
merkle
Golang Merkle Tree Implementation, with hash.Hash
interface for streaming support.
Docs
What's Next?
- More tests and review
- Streaming
HashTreeer
type, that can validate provided Nodes, for streaming validation
License
See LICENSE