HistoricalTree

Git Source

HistoricalTree is an incremental merkle tree keeping track of its historical merkle roots.

  • roots[N] is the root of the tree after N leafs were inserted
  • roots[0] == bytes32(0)
struct HistoricalTree {
    BaseTree tree;
    bytes32[] roots;
}