MerkleNode class
MerkleNode
A node in a Merkle tree (possibly the root node, in which case it is the Merkle root). A node either contains a buffer or links to two other nodes.
Constructors
-
MerkleNode({List<
int> ? hashBuf, List<int> ? buf, MerkleNode? merkle1, MerkleNode? merkle2}) -
MerkleNode.fromBufferArrays(List<
List< bufs1, List<int> >List< bufs2)int> > -
factory
-
MerkleNode.fromBuffers(List<
List< bufs)int> > -
factory
Properties
-
buf
↔ List<
int> ? -
getter/setter pair
-
hashBuf
↔ List<
int> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- merkle1 ↔ MerkleNode?
-
getter/setter pair
- merkle2 ↔ MerkleNode?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromBufferArrays(
List< List< bufs1, List<int> >List< bufs2) → MerkleNodeint> > - Takes two arrays, both of which must be of a length that is a power of two.
-
fromBuffers(
List< List< bufs) → MerkleNodeint> > -
hash(
) → Hash -
Creates a combined hash code for a number of objects.
override
-
isInteger(
num x) → bool -
leavesNum(
) → int -
log10(
num x) → double -
log2(
num x) → double -
logBase(
num x, num base) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited