Merkle Generator
Generator a merkle tree based on incoming data.
This modules is ported from mafintosh/merkle-tree-stream.
Usage
extern crate merkle_generator;
// define how to hash incoming data
// define how to hash two merkle tree node hashes into a new parent hash
let mut gen = new;
let nodes = gen.next;
println!;
Tree Structure
See mafintosh/flat-tree for more information about how node/parent indexes are calculated.
License
The MIT License