Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tree ¶
type Tree [][][]byte
func NewTree ¶
NewTree builds and returns a new merkle tree with the given leaf nodes. Each input leaf is hashed before the tree is built
func (Tree) LeafIndex ¶
LeafIndex returns the index of the given leaf and a -1 if the leaf is not found
func (Tree) Leafs ¶
Leafs returns the leafs in the tree. This is the hashes of the original input data
Click to show internal directories.
Click to hide internal directories.