MerkelTree class Null safety
The Merkel Tree representation.
Constructors
-
MerkelTree.build(List<
Uint8List> hashes) - Builds this Mekel Tree from a list of hashes.
Properties
- depth ↔ int
-
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
-
hashes
→ List<
Uint8List> -
The list of hashes that are used to build this Merkel Tree.
final
-
proofs
↔ Map<
Uint8List, Uint8List> -
The list of Merkel Proofs for each hash in hashes.
read / write
- root ↔ Uint8List?
-
The merkel root.
late, final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
validate(
Uint8List hash, Uint8List proof, Uint8List root) → bool -
Validates the inclusion of the
hash
inroot
by renuilding it usingproof