Open ilyavf opened 7 years ago
This method should take two params:
difficulty
buffer
The data will be concatenated with a nonce and hash will be calculated. The hash should contain the difficulty number of 0 in the beginning.
0
Use https://www.npmjs.com/package/worker-task-runner for parallelizing the task.
PoW PR: https://github.com/ilyavf/tx-builder/pull/7
No web workers yet.
This method should take two params:
difficulty
(number of zeros in hash)buffer
of data.The data will be concatenated with a nonce and hash will be calculated. The hash should contain the
difficulty
number of0
in the beginning.Use https://www.npmjs.com/package/worker-task-runner for parallelizing the task.