Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Merkletree ¶
type Merkletree struct {
// contains filtered or unexported fields
}
func New ¶
func New(hasher hash.Hash, data []MerkletreeItem) *Merkletree
func NewSha256Tree ¶
func NewSha256Tree(data []MerkletreeItem) *Merkletree
func (*Merkletree) GetRoot ¶
func (mt *Merkletree) GetRoot() []byte
func (*Merkletree) GetTreeData ¶
func (mt *Merkletree) GetTreeData() [][]byte
func (*Merkletree) SumTree ¶
func (mt *Merkletree) SumTree()
type MerkletreeItem ¶
type MerkletreeItem interface {
Bytes() []byte
}
Click to show internal directories.
Click to hide internal directories.