Live data from Hacker News

Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

news.ycombinator.com

21–30 of 52 posts

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#21
post #9

A million CPUs would not be as efficient mining Bitcoin as a single ASIC. There are no coins where CPU mining is as good as GPU. JavaScript is also inefficient compared to native programs. Overall, it probably didn't generate very much money. Mining is a commodity. An ad click is worth orders of magnitude more.

So why didn't they use GPU? Could you build something like that for WebGL?

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#22

Earlier quoted context omitted.

Hope this helps illustrate the point: That $250,000 every month amount was made at the cost of way more than $250,000 worth of electricity.

But it wasn't coinhive or coinhive's users who were paying for it. Website visitors carried the cost...

We were all paying for it...

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#23
post #10

Well, for one, AV software started to classify any website with its code as 'infected' with malware. Then adblockers blocked their script, and even today their website doesn't load properly with uBlock activated.

These are definitely important issues but they don't sound like show-stoppers. Many people use anti virus software and adblockers but then again many don't!

Additionally they (or some alternative) may have been able to improve the software and create a simple consent process to avoid being blacklisted.

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#24

Earlier quoted context omitted.

But it wasn't coinhive or coinhive's users who were paying for it. Website visitors carried the cost...

We were all paying for it...

But the cost to remove ads here is very worth spending that electricity over my attention.

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#25
post #20
post #16

Earlier quoted context omitted.

I thought Monero was designed to be resistant to ASICs? Please correct me if I'm wrong, I don't have that much knowledge about crypto₹.

That's one of the goals yes. However efficient ASICs were able to be constructed for the current (and previous) algorithms. Monero will make a hardfork, right now actually, to brick the existing ASICs. The new algorithm isn't sufficiently different to prevent them however and we will probably see efficient ASICs in under 6 months. The long term hope instead lies on a new algorithm[0] which tries to change the POW alg…

The issue is that anything that changes the POW has to be to be deterministic, so we'll just see programmable ASICs make a return... so invest in Cisco?

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#26
post #9

A million CPUs would not be as efficient mining Bitcoin as a single ASIC. There are no coins where CPU mining is as good as GPU. JavaScript is also inefficient compared to native programs. Overall, it probably didn't generate very much money. Mining is a commodity. An ad click is worth orders of magnitude more.

I believe Coinhive was actually webassembly, with a fallback to JavaScript.

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#28
post #14
post #11

Earlier quoted context omitted.

They were mining Monero, not Bitcoin.

CPU mining XMR is similarly not efficient compared to GPU

Back in the days when GPU mining was a thing, CPU mining was reasonably efficient. This was actually a design goal, it was seen as promoting decentralization.

Now, obviously a rig full of Vega cards put out a lot higher hash rate than an 8C CPU, but the CPU was actually reasonably efficient in terms of wattage. At the time, building quad-CPU rigs on older architectures was actually a reasonably efficient build.

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#29
post #16
post #15

Earlier quoted context omitted.

As Monero currently has ASICs running on the network no they're not. But without them yes they are profitable especially if you're not paying for electricity as in this case.

I thought Monero was designed to be resistant to ASICs? Please correct me if I'm wrong, I don't have that much knowledge about crypto₹.

There is no such thing as ASIC-proof. You can make an ASIC for any deterministic algorithm.

"ASIC-resistance", in this context, only means that ASICs can be held to a low multiple of CPU/GPU efficiency. So ASICs can be 10x as efficient as a CPU/GPU, but not 10k-1m times as efficient like they can on something like SHA.

Unfortunately, profit trends towards zero (towards cost of production) until prices change, so having a 10x advantage is still actually quite big. That means you're making at least a small profit when everyone else is forced to turn off their rigs.

In practice this means that ASIC-resistance, as a method of decentralizing control of the network, doesn't work. Big farms pay cheaper rates for electricity (in China, sometimes zero, by stealing it or bribing local officials), and have insider access to much more efficient ASIC hardware than the general public does. So when profit declines to zero, they inherit the network by virtue of being the only miners who remain profitable.

Re: Ask HN: Why did Coinhive, the in-browser crypto miner, fail?

#30

Earlier quoted context omitted.

We were all paying for it...

But the cost to remove ads here is very worth spending that electricity over my attention.

What about the environmental and other external costs?

I run an ad blocker most of the time because crappy ads and ad-tech uses a lot of bandwidth and battery. Crypto-mining is even worse for power consumption.

Post reply on HN