Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMerkleTree ¶
func NewMerkleTree(list []merkletree.Content) *merkletree.MerkleTree
Types ¶
type MerkleTree ¶
type MerkleTree struct {
*merkletree.MerkleTree
}
type MerkleTreeContent ¶
type MerkleTreeContent struct {
Value string
}
func (MerkleTreeContent) CalculateHash ¶
func (t MerkleTreeContent) CalculateHash() ([]byte, error)
CalculateHash hashes the values of a MerkleTreeContent
func (MerkleTreeContent) Equals ¶
func (t MerkleTreeContent) Equals(other merkletree.Content) (bool, error)
Equals tests for equality of two Contents
Click to show internal directories.
Click to hide internal directories.