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<int>> bufs1, List<List<int>> bufs2)
factory
MerkleNode.fromBuffers(List<List<int>> bufs)
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<int>> bufs1, List<List<int>> bufs2) MerkleNode
Takes two arrays, both of which must be of a length that is a power of two.
fromBuffers(List<List<int>> bufs) MerkleNode
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