While the topic of
distributed computing on the client ,
bitcoin and bitcoin
generation is still relevant. I propose to consider another solution for generating bitcoins.
On May 20, the
Embedable Javascript topic
Bitcoin miner for your website appeared on the bitcoin forum - the author of the topic offered a solution in pure JavaScript. The topic quickly sprawled on Twitter and popular JavaScript blogs. Briefly, his idea can be described here with this phrase: “Turn your website into a bitcoin miner”. Each site visitor acts as a miner for bitcoin mining. It would seem fine - advertising will disappear, sites will start to pay for themselves at the expense of bitcoin mining.
Imagine a situation: “Site A” and “Site B”, and so on, implement this bitcoin mining script.
- The user, who came to the site A and B starts to mine on 2 fronts (processor load 200%), even if there is some system for restricting parallel production, will they use it - “why should I yield to some site A?
- Will use the system "speed limit"? - “Why should I reduce the load on the user's CPU and get less money if the site doesn’t do this?”
- Will I add the option “turn on bitcoin mining to help the site” to give the user the choice to turn on mining or not - “why will I give some choice? - come to my site let him plow! "
Already on the forums
indignant about bitp.it
')

Fine - 2 workers, one eats off 50% of the CPU, the second 36%!
If advertising can somehow be ignored, the browser is not able to ignore the instructions. Now, whether we like it or not, when we come to the site with the bitcoin generation script (based on bitp.it), we spend electricity and as a bonus we get lags.
I am sure that the majority of sites that have injected bitcoin miners will not turn their users into slaves who extract bitcoin — they will use at least one of the three restraints anyway. But there will always be those that will not do it (the question is similar to annoying pop-up windows and flash banners). One tab with such a site is enough and you incur losses (which you don’t even suspect) and in some browsers you get lags.
Now blocking the bitp.it scripts (
http:
//api.bitp.it/bitp.it.js
) is not difficult, any proxy and any ad blocker can handle this. But how to block the script sewn into the code, scattered throughout the script? How to determine that this function is useful to load the processor, but this is not? - Antivirus for javascript? (it makes no sense to statically analyze JavaScript code) How can you determine what bitcoins can be mined on this site, but not on this one? - Black list?
I am not against the generation of bitcoin in the browser, but on the contrary I believe that this is a great tool for monetizing a web service. The more you use, the more hashes are calculated - payment is commensurate with consumption. Now bitcoin course is growing, and growing popularity. Therefore, we should expect the emergence of black bitcoin diggers using our system resources with you without our knowledge.
I want to ask the question: Is there a law that can limit bitcoin mining by the “black method”? Black bitcoin mining is not extortion, not a robbery, not a virus. What are some ways to fight black booty?
PS Sites are only part of the problem. Bitcoin mining botnets may appear - by law, as far as I know, they do not do anything wrong: do not do it, do not spam, do not steal, do not make changes, do not disrupt the operation of computers, and do not disrupt networks. The fight against the “black booty” sites and botnets is possible, but if the struggle is not supported by law, then it will not be effective (draw an analogy with viruses, antivirus and the Criminal Code of the RF Article 272, Article 273, Article 274).