ScryptMiningParams class

Scrypt mining parameters for different cryptocurrencies

Constructors

ScryptMiningParams({required int N, required int r, required int p, required int dkLen, required Uint8List salt, required Uint8List password})
const
ScryptMiningParams.custom({required int N, required int r, required int p, required int dkLen, required Uint8List salt, required Uint8List password})
Custom mining parameters for different difficulties
factory
ScryptMiningParams.litecoinMainnet({required Uint8List blockHeader, required Uint8List salt})
Litecoin mainnet parameters
factory
ScryptMiningParams.litecoinTestnet({required Uint8List blockHeader, required Uint8List salt})
Litecoin testnet parameters
factory

Properties

dkLen int
Output length in bytes
final
hashCode int
The hash code for this object.
no setterinherited
N int
CPU cost parameter (must be power of 2)
final
p int
Parallelism parameter
final
password Uint8List
Password/block header for mining
final
r int
Memory cost parameter (block size)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salt Uint8List
Salt for mining operations
final

Methods

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