Versions in this module Expand all Collapse all v1 v1.1.0 Sep 26, 2019 Changes in this version type TreeOptions + DoubleOddNodes bool v1.0.0 Sep 26, 2019 Changes in this version + func CalculateHeightAndNodeCount(leaves uint64) (height, nodeCount uint64) + type Node struct + Hash []byte + Left *Node + Right *Node + func NewNode(h hash.Hash, block []byte) (Node, error) + type Tree struct + Levels [][]Node + Nodes []Node + Options TreeOptions + func NewTree() Tree + func NewTreeWithOpts(options TreeOptions) Tree + func (self *Tree) Generate(blocks [][]byte, hashf hash.Hash) error + func (self *Tree) GetNodesAtHeight(h uint64) []Node + func (self *Tree) Height() uint64 + func (self *Tree) Leaves() []Node + func (self *Tree) Root() *Node + type TreeOptions struct + DisableHashLeaves bool + EnableHashSorting bool