lycan/powworker.js
2020-09-28 01:02:48 +00:00

12 lines
245 B
JavaScript

importScripts("onionr-jspow/index.js")
importScripts("sha3.js")
self.addEventListener('message', function(e) {
var data = JSON.parse(e.data)
self.postMessage(
doPow(
data.metadata,
data.data,
data.difficulty
));
}, false);