• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Web Darkcoin miner

thefox

New member
Hi,
I would like to get started on developing a miner for web browsers.
It could be Javascript , PHP or other language as long as someone accesses a page and it starts automatically mining.
Its purpose would be to monetize the content of websites.

Would appreciate if you could point me on the right direction:
I am interested in some documentation that could help me.
Thanks!
 
Well, PHP is executet on the server, so not what you are looking for. And JavaScript is executed in the client but will most likely make the browser crash if you try hashing through it. I think your website will be blocked in no time if you try something like that.
 
Well, PHP is executet on the server, so not what you are looking for. And JavaScript is executed in the client but will most likely make the browser crash if you try hashing through it. I think your website will be blocked in no time if you try something like that.
That actually is incorrect.

One easily could ratelimit the hashing in javascript to cause the browser not to crash. I'm not really sure what you mean by the website being blocked either. By whom/what? There is nothing inherit to the browser that blocks websites that cause a high CPU load.

To OP: As vertoe correctly pointed out, PHP won't do anything for you. However, here is a bitcoin miner that utilizes javascript and webGL: http://bitcoin.biniok.net/gl.php and the source is located here: https://github.com/derjanb/hamiyoca (just to be clear, PHP just provides an RPC connection to the bitcoin daemon on the server, it isn't actually mining itself). It wouldn't be too hard to port to darkcoin.

I must warn you though, you won't see an ROI on your time for the effort to port it, unless you purely are doing it for fun. I'm quite confident that isn't the case and your goal would be to nefariously mine darkcoin on your unsuspecting users machines. At this point, it would take thousands of clients each mining for many hours to make even a single DRK.
 
Your main barrier is going to be that you'll need javascript implementations of the following hash functions:
blake512
bmw512
groestl512
skein512
jh512
keccak512
luffa512
cubehash512
shavite512
simd512
echo512

This project https://github.com/drostie/sha3-js will help you quickly get halfway there, but after that you'll likely have to implement the other 5 on your own.
 
Back
Top