Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMerkelRootHash ¶ added in v0.2.5
BuildMerkelRootHash
func BuildSimpleMerkelRootHash ¶ added in v0.2.5
BuildSimpleMerkelRootHash
func NewHashTree ¶
func NewHashTree(chunkPath []string) (*merkletree.MerkleTree, error)
NewHashTree build file to build hash tree
Types ¶
type HashTreeContent ¶
type HashTreeContent struct {
// contains filtered or unexported fields
}
HashTreeContent implements the Content interface provided by merkletree and represents the content stored in the tree.
func (HashTreeContent) CalculateHash ¶
func (t HashTreeContent) CalculateHash() ([]byte, error)
CalculateHash hashes the values of a HashTreeContent
func (HashTreeContent) Equals ¶
func (t HashTreeContent) Equals(other merkletree.Content) (bool, error)
Equals tests for equality of two Contents
Click to show internal directories.
Click to hide internal directories.