Documentation
¶
Overview ¶
Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node struct keep data for Merkle tree node. For now, it is binary Merkle tree
func BuildTreeForBlockTx ¶
BuildTreeForBlockTx builds Merkle tree from block transactions.
func (*Node) Hash ¶
Hash returns node hash, for leaf node it is hash of associated data object, for not leaf - it calculated for children hashes
func (*Node) Proof ¶
Proof calculate intermediate hashes between leaf with given index and root (caller node)