Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/static/mineworker.js

9 lines
187 B
JavaScript
Raw Permalink Normal View History

2016-05-18 16:41:20 +05:00
importScripts('./siphash-lib.js');
2016-05-17 11:24:46 +05:00
importScripts('./miner-js.js');
onmessage = function(e) {
2016-05-18 21:54:05 +05:00
var s = cuckoo["mine_cuckoo"](e.data[0], e.data[1]);
s.push(e.data[2]);
2016-05-17 11:24:46 +05:00
postMessage(s);
}