lycan/powworker.js

12 lines
245 B
JavaScript
Raw Normal View History

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,
2020-09-28 01:02:48 +00:00
data.difficulty
));
}, false);