Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LeafData ¶
LeafData indexed tree leaf. NB!: indexed tree leaves must be sorted lexicographically by key in strict order k1 < k2 < ... kn
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func (*Tree) GetMerklePath ¶
GetMerklePath extracts the indexed merkle hash chain from the given leaf key to root. A hash chain is always returned. If the key is not present, a chain is returned from where the key is supposed to be.
func (*Tree) GetRootHash ¶
GetRootHash returns the root Hash of the indexed Merkle tree.
func (*Tree) PrettyPrint ¶
PrettyPrint returns a human-readable string representation of the indexed Merkle tree.
Click to show internal directories.
Click to hide internal directories.