hashRaw static method
Computes Scrypt hash for mining operations with raw parameters
blockHeader - Block header data for mining
salt - Salt for the mining operation
N - CPU cost parameter (must be power of 2)
r - Memory cost parameter
p - Parallelism parameter
dkLen - Output length in bytes
Returns the mining hash as a hexadecimal string
Implementation
static String hashRaw(
Uint8List blockHeader,
Uint8List salt, {
int N = 1024,
int r = 1,
int p = 1,
int dkLen = 32,
}) {
final params = ScryptMiningParams.custom(
N: N,
r: r,
p: p,
dkLen: dkLen,
salt: salt,
password: blockHeader,
);
return hash(params);
}