ChallengeSolver class
Constructors
- ChallengeSolver({required ChallengeInfo challengeInfo})
Properties
- challengeInfo → ChallengeInfo
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextNonce → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- solution → int?
-
no setter
- triedHashNum → int
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
propagate(
int numToPropagate) → int? - Propagates hash trial Returns solution if a solution is found, otherwise returns null Also stores solution into _solution, to serve the solution getter.
-
solveChallenge(
[int step = 100, void callback(int hashPropagated)?]) → int -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
trySolveChallenge(
ChallengeInfo challengeInfo, [int startNonce = 0, int? endNonceExclusive]) → int?