MerkleNode<T> class
Merkle Tree Node with generic type support
Constructors
-
MerkleNode({required String hash, MerkleNode<
T> ? left, MerkleNode<T> ? right, T? data, required int level, required int index}) -
const
Properties
- data → T?
-
final
- hash → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
final
- isInternal → bool
-
Checks if this is an internal node
no setter
- isLeaf → bool
-
Checks if this is a leaf node
no setter
-
left
→ MerkleNode<
T> ? -
final
- level → int
-
final
-
right
→ MerkleNode<
T> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited