/mkltree

merkle tree library implemented in Go language.

Primary LanguageGoApache License 2.0Apache-2.0

mkltree

merkle tree library implemented in Go language.

Feature

  • build tree when initialized
  • proof whether a data block belongs to a merkle tree
  • add block one by one, then build tree. (Useful when reads data incrementally from big files.)
  • customize tree depth. (Default is binary tree. Depth depends on number of leaves.)
  • consider whether use double hash

How to Use?

please see example.go

Reference

Development environment

  • Go: 1.12.6