Documentation
¶
Index ¶
- type MerkleTree
- func (m *MerkleTree) AddNewBlock(context []byte)
- func (m *MerkleTree) CheckTreeCorrect() bool
- func (m *MerkleTree) ContextValidator(context []byte) bool
- func (m *MerkleTree) GetDifferentContextFromTree(compareTree *MerkleTree) [][]byte
- func (m *MerkleTree) GetRootHash() []byte
- func (m *MerkleTree) PrintCurrTree()
- func (m *MerkleTree) PrintlnAllLeafs()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MerkleTree ¶
func (*MerkleTree) AddNewBlock ¶
func (m *MerkleTree) AddNewBlock(context []byte)
Add new data block to the Merkle Tree
func (*MerkleTree) CheckTreeCorrect ¶
func (m *MerkleTree) CheckTreeCorrect() bool
Check Tree all the hash value is follow the Merkle Tree Properity
func (*MerkleTree) ContextValidator ¶
func (m *MerkleTree) ContextValidator(context []byte) bool
Check the context exist and legal in the tree make sure all the hash from leaf to root is correct
func (*MerkleTree) GetDifferentContextFromTree ¶ added in v1.0.3
func (m *MerkleTree) GetDifferentContextFromTree(compareTree *MerkleTree) [][]byte
func (*MerkleTree) GetRootHash ¶
func (m *MerkleTree) GetRootHash() []byte
Get the Tree root hash value
Click to show internal directories.
Click to hide internal directories.