Merkle class

Merkle

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

Merkle({List<int>? hashBuf, List<int>? buf, Merkle? merkle1, Merkle? merkle2})
Merkle.fromBufferArrays(List<List<int>> bufs1, List<List<int>> bufs2)
factory
Merkle.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 Merkle?
getter/setter pair
merkle2 Merkle?
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) Merkle
Takes two arrays, both of which must be of a length that is a power of two.
fromBuffers(List<List<int>> bufs) Merkle
hash() List<int>?
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