Documentation ¶
Overview ¶
Package imt provides an Incremental Merkle Tree
Index ¶
Constants ¶
View Source
const ( TreeDepth = 32 MaxLeaves = ^uint32(0) )
Variables ¶
This section is empty.
Functions ¶
func BranchRoot ¶
BranchRoot calculates and returns the merkle root for the given leaf item, a merkle branch, and the index of item in the tree
Types ¶
type Tree ¶
func InitializeTree ¶
func (*Tree) GetProofForNextIndex ¶
GetProofForNextIndex returns the proof for the next index.
func (*Tree) RootWithContext ¶
RootWithCtx calculates and returns Tree's current root given array of zeroes
Click to show internal directories.
Click to hide internal directories.