Documentation ¶
Overview ¶
Merkle Tree library
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MklTree ¶
type MklTree struct {
// contains filtered or unexported fields
}
Merkle Tree. It can only be build by using New* method, for example: mkltree.NewMklTree() You can choose whether to store blocks in this merkle tree, if yes, it will cause more memory. You can only build a tree once. If you want a new tree, try to build a new one.
func NewMklTree ¶
NewMklTree return an merkle tree with default hash method sha256
func NewMklTreeCustomHash ¶
NewMklTreeCustomHash return an merkle tree with customized hash method
func (*MklTree) String ¶
print Hash Tree structure. Hash bytes are encoded in BASE64, separated by character comma ','
func (*MklTree) StringBytes ¶
print Hash Tree structure. Hash bytes are encoded as corresponding integers(0-255), separated by character comma ','
Click to show internal directories.
Click to hide internal directories.