Documentation ¶
Overview ¶
Package core contains code for a scalable Merkle tree construction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildJob ¶
type BuildJob struct { RangeStart uint64 // The beginning of the range. Hashes [][]byte // The leaf hashes. }
BuildJob is a slice of leaf data hashes spanning a range of a Merkle tree.
type BuildWorker ¶
type BuildWorker struct {
// contains filtered or unexported fields
}
BuildWorker processes tree building jobs.
func NewBuildWorker ¶
func NewBuildWorker(tw storage.TreeWriter, rf *compact.RangeFactory) *BuildWorker
NewBuildWorker returns a new BuildWorker for the specified tree.
Click to show internal directories.
Click to hide internal directories.