hashRaw static method

String hashRaw(
  1. Uint8List blockHeader,
  2. Uint8List salt, {
  3. int N = 1024,
  4. int r = 1,
  5. int p = 1,
  6. int dkLen = 32,
})

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);
}