Documentation ¶
Overview ¶
Package merkle provides a binary merkle tree implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
A merkle tree for a user that stores the entire tree Specifically this tree is left a leaning balanced binary tree Where each node holds the hash of its leaves And the rootHash is the root node hashed with the count This tree is immutable
func (*Tree) InclusionProof ¶
Return a [][]byte needed to prove the inclusion of the item at the passed index The payload of the item at index is the first value in the proof
Click to show internal directories.
Click to hide internal directories.