Live data from Hacker News

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

news.ycombinator.com

41–50 of 52 posts

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

#41
post #14
post #11

Earlier quoted context omitted.

They were mining Monero, not Bitcoin.

CPU mining XMR is similarly not efficient compared to GPU

At least in times past (2015-2017) there wasn't a huge discrepancy. My i5 3750k at default low clocks would do 40 H/s per core while my AMD 7950 did about 400 H/s going all out. Trying to do it in javascript in a browser is a real performance killer though.

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

#42

The idea was absurd from the outset. A few minutes of mobile CPU mining in a browser is a nearly worthless pittance.

If you're a pirate video streaming website and basically banned from every ad network, it could be worth the bandwidth.

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

#43
post #33

This is a big question for me too! Especially since they didn't seem to have any major reason to burn a lot of cash or to run out of money! Was it maybe a lawsuit, fraud or regulatory issue? I would LOVE to know.

their own statement: The drop in hash rate (over 50%) after the last Monero hard fork hit us hard. So did the “crash“ of the crypto currency market with the value of XMR depreciating over 85% within a year. This and the announced hard fork and algorithm update of the Monero network on March 9 has lead us to the conclusion that we need to discontinue Coinhive. https://coinhive.com/blog/en/discontinuation-of-coinhive (…

I think this is the best kind of site to use archive.is on: http://archive.is/6gbeU

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

#44

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...

And website visitors may have gotten website content that wouldn't have existed otherwise.

We wouldn't have as much web content as we do today if it weren't for web advertising. (Just another form of payment).

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

#45

The idea was absurd from the outset. A few minutes of mobile CPU mining in a browser is a nearly worthless pittance.

Yes, and probably a much smaller pittance than that earned through ad revenue from the average brief visit, which means that this idea cannot succeed if it’s framed as an alternative to ads, unless a massive number of people are willing to pay for content with spare CPU cycles rather than with ad impressions. That seems highly unlikely for a number of reasons, chiefly that the demographic that would even understand the pitch is likely contained almost entirely within the demographic that uses adblockers.

A better strategy, then, would be to completely dissociate the idea from ads, and simply make it easy for content creators to ask users if they’d like to support their content via in-browser mining. Make it unobtrusive for viewers and both frictionless and highly configurable for creators. The goal should not be to maximize the number of viewers who consent, but to keep the potential loss in viewership and/or good will very close to zero. Let content creators decide how aggressively they want to pitch the idea to their viewers, with the default being about as aggressive as a small link off to the side soliciting donations.

The result would likely be an extremely high ratio of new widget installations to marginal unit of revenue, but it also wouldn’t totally crash and burn.

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

#46
post #39
post #29

Earlier quoted context omitted.

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 havi…

There is no such thing as ASIC-proof. You can make an ASIC for any deterministic algorithm. True. Although you could probably design an algorithm which requires so many of the capabilities of a CPU, like a fast 64-bit FPU and a lot of cache, that the transistor count of an ASIC would approach that of a general-purpose CPU produced in much greater volume. This would make special-purpose hardware not cost effective.

That's basically the idea of ProgPOW, which is a proposed algorithm that Ethereum may switch to in an attempt to kick ASICs off the network.

https://github.com/ifdefelse/ProgPOW

The problem is that you still are only taking an infinitely small chunk of the space of all possible Turing algorithms. For example we are not considering any program that lasts longer than say 12 cache hits and 20 math operations (proposed numbers). That means you don't need as much hardware to implement an ASIC as you would a general-purpose processor.

Such algorithms can never possibly contemplate the full space of Turing programs unless you solve the halting problem (because we can't trust participants to give us a fairly chosen algorithm, and presumably we don't want to select a hashing stage that never terminates). This approach will always consider a tiny, fixed area of the problem space and will thus always be amenable to acceleration from specialized hardware.

Remember that old chestnut, "anybody can come up with a crypto algorithm that they themselves cannot break"? You can add a corollary to that: "anyone can come up with a hashing algorithm that they themselves cannot design an ASIC for".

We've been through this over and over again. I remember when Ethereum was supposed to be impossible to accelerate with ASICs. I remember when Monero and ZCash were supposed to be impossible to accelerate. But when you put hundreds of millions of dollars of free money on the line, very smart people get creative.

The idea of ASIC resistance can be summarized as making specialized hardware no more efficient than general hardware. And that's simply an impossible task. Specialized hardware will always be at least somewhat more efficient than general hardware. Maybe not hugely, but it doesn't need to be hugely more efficient, 5-10x more efficient is more than enough to shift control over to ASIC insiders.

On top of that, ASICs pose massive advantages for deployment even apart from efficiency advantages. One box that you plug a power cable and ethernet cable into replaces two mining rigs with finicky, delicate riser cables and a dozen GPUs precariously strung from wire shelves. ASICs don't crash anywhere near as much either. Literally just having the same efficiency but being 10x as easy to deploy is still a massive win.

You can still rotate algorithms every 6 months, but the clock starts ticking when you propose an algorithm. It took four months from the last switchover before Monero had ASICs on the network again. Presumably they were designing as soon as the algorithm was proposed, and taping out as soon as the switchover was announced.

ASICs are inevitable, and it may be better to simply accept democratic control of ASICs rather than insiders with control of them. If you switch every couple months you disincentivize ASIC holders from releasing them to the public (and revealing their existence), instead they will hold them private so they don't trigger an algorithm change. Which is exactly the centralization that you're supposedly trying to avoid.

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

#47

Spamming the adblockers to whitelist them (and their authedmine alternative) definitely didn't help https://github.com/easylist/easylist/issues/712

While I agree that they didn't handle it well, I'm mixed on this. While I think putting a miner on a site covertly is unethical, I also think blocking something that's not an ad in an ad-blocker is equally unethical. I think a miner like this could provide an interesting way for people to monetize their content, as long as it's opt-in, but blocking a non-ad like this just totally deflates the argument that ad-blocker…

I don't think any of the mainstream blocking plug-ins claim to just be ad blockers. E.g. The first line on the uBlock origin Readme:

> uBlock Origin is NOT an "ad blocker": it is a wide-spectrum blocker -- which happens to be able to function as a mere "ad blocker". The default behavior of uBlock Origin when newly installed is to block ads, trackers and malware sites

Any third party scripts tend to fall under "trackers" (stuff like typekit, disqus often gets blocked by default as well), something that just burns your CPU in the background without approval could be classified as malware.

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

#48

I'm not sure how it's a perfect alternative. It seems worse on almost every dimension. You're stuck between running this miner covertly (scummy) or asking for permission (who is going to click yes?). How much of Coinhive's income comes from users who are unknowingly running the code? It seems like a move towards more user-hostility, not less. The one time I saw an actual fit for the end user was an online game that w…

I routinely disable my adblock for certain news websites because they tell me to, otherwise I can't see their content. Websites asking for 'opt-in' does work. It works on me all the time.

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

#49

I'm not sure how it's a perfect alternative. It seems worse on almost every dimension. You're stuck between running this miner covertly (scummy) or asking for permission (who is going to click yes?). How much of Coinhive's income comes from users who are unknowingly running the code? It seems like a move towards more user-hostility, not less. The one time I saw an actual fit for the end user was an online game that w…

The 0x00sec.org security forum has/had this effort to mine coins to keep the site ad-free. From the comments[1] users seem to have been happy to help.

[1]https://0x00sec.org/t/mine-for-the-community/3709

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

#50
Just adding a datapoint. I run a SaaS where people can run their own (Javascript) code. The first thing I did was block any Coinhvive script as those were the first obvious abusers of the service.

Coinhive is now, for me at least, always associated with scammers.

Post reply on HN