Documentation ¶ Index ¶ func HashMerkleBranches(left, right *hash.Hash) *hash.Hash type Tree func NewTreeFromHashes(hashes []hash.Hash) *Tree func NewTreeFromSlices(slices [][]byte) *Tree func (tree *Tree) Depth() int func (tree *Tree) Root() hash.Hash func (tree *Tree) ToString() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HashMerkleBranches ¶ func HashMerkleBranches(left, right *hash.Hash) *hash.Hash HashMerkleBranches takes two hashes, treated as the left and right tree nodes, and returns the hash of their concatenation. This is a helper function used to aid in the generation of a merkle tree. Types ¶ type Tree ¶ type Tree struct { // contains filtered or unexported fields } func NewTreeFromHashes ¶ func NewTreeFromHashes(hashes []hash.Hash) *Tree func NewTreeFromSlices ¶ func NewTreeFromSlices(slices [][]byte) *Tree func (*Tree) Depth ¶ func (tree *Tree) Depth() int func (*Tree) Root ¶ func (tree *Tree) Root() hash.Hash func (*Tree) ToString ¶ func (tree *Tree) ToString() string Source Files ¶ View all Source files merkle.go printing.go Click to show internal directories. Click to hide internal directories.