//! SPDX-FileCopyrightText: 2025 Chris Duncan <chris@codecow.com>
//! SPDX-License-Identifier: GPL-3.0-or-later
-import { bigintToHex, BytesToHex, Logger, RECEIVE, SEND } from '#utils'
+import { BytesToHex, Logger, RECEIVE, SEND, bigintToHex } from '#utils'
import { WorkValidateResponse } from 'nano-pow'
const logger = new Logger()
v[14] = ~v[14] // Compression
// Set up input buffers
- mView.setBigUint64(0, seed[0], true)
+ mView.setBigUint64(0, seed[0])
for (let i = 0; i < 4; i++) {
- mView.setBigUint64(8 * (i + 1), hash[i])
+ mView.setBigUint64(8 * (i + 1), hash[i], true)
}
}