Ethereum: GPU Mining Is Back But For How Long?

By now, everyone and their dog has at least heard of Bitcoin. While no government will accept tax payments in Bitcoin just yet, it’s ridiculously close to being real money. We’ve even paid for pizza delivery in Bitcoin. But it’s not the only cryptocurrency in town.

Ethereum initially launched in 2015 is an open source, it has been making headway among the 900 or so Bitcoin clones and is the number two cryptocurrency in the world, with only Bitcoin beating it in value. This year alone, the Ether has risen in value by around 4000%, and at time of writing is worth $375 per coin. And while the Bitcoin world is dominated by professional, purpose-built mining rigs, there is still room in the Ethereum ecosystem for the little guy or gal.

Ethereum is for Hackers

There may be many factors behind Ethereum’s popularity, however one reason is that the algorithm is designed to be resistant to ASIC mining. Unlike Bitcoin, anyone with a half decent graphics card or decent gaming rig can mine Ether, giving them the chance to make some digital currency. This is largely because mining Ethereum coins requires lots of high-speed memory, which ASICs lack. The algorithm also has built-in ASIC detection and will refuse to mine properly on them.

Small-scale Bitcoin miners were stung when the mining technology jumped from GPU to ASICs. ASIC-based miners simply outperformed the home gamer, and individuals suddenly discovered that their rigs were not worth much since there was a stampede of people trying to sell off their high-end GPU’s all at once. Some would go on to buy or build an ASIC but the vast majority just stopped mining. They were out of the game they couldn’t compete with ASICs and be profitable since mining in its self uses huge amounts of electricity.

Economies of scale like those in Bitcoin mining tend to favor a small number of very large players, which is in tension with the distributed nature of cryptocurrencies which relies on consensus to validate transactions. It’s much easier to imagine that a small number of large players would collude to manipulate the currency, for instance. Ethereum on the other hand hopes to keep their miners GPU-based to avoid huge mining farms and give the average Joe a chance at scoring big and discovering a coin on their own computer.

Ethereum Matters

Ethereum’s rise to popularity has basically undone Bitcoin’s move to ASICs, at least in the gamer and graphics card markets. Suddenly, used high-end graphics cards are worth something again. And there are effects in new equipment market. For instance, AMD cards seem to outperform other cards at the moment and they are taking advantage of this with their release of Mining specific GPU drivers for their new Vega architecture. Indeed, even though AMD bundled its hottest RX Vega 64 GPU with two games, a motherboard, and a CPU in an attempt to make the package more appealing to gamers than miners, AMD’s Radeon RX Vega 56 sold out in five minutes with Ethereum miners being blamed.

Besides creating ripples in the market for high-end gaming computers, cryptocurrencies are probably going to be relevant in the broader economy, and Ethereum is number two for now. In a world where even banks are starting to take out patents on blockchain technology in an attempt to get in on the action, cryptocurrencies aren’t as much of a fringe pursuit as they were a few years ago. Ethereum’s ASIC resistance is perhaps its killer feature, preventing centralization of control and keeping the little hacker in the mining game. Only time will tell if it’s going to be a Bitcoin contender, but it’s certainly worth keeping your eye on.

World’s Worst Bitcoin Mining Rig

Even if we don’t quite understand what’s happening in a Bitcoin mine, we all pretty much know what’s needed to set one up. Racks of GPUs and specialized software will eventually find a few of these vanishingly rare virtual treasures, but if you have enough time, even a Xerox Alto from 1973 can be turned into a Bitcoin mine. As for how much time it’ll take [Ken Shirriff]’s rig to find a Bitcoin, let’s just say that his Alto would need to survive the heat death of the universe. About 5000 times. And it would take the electricity generated by a small country to do it.

Even though it’s not exactly a profit center, it gives [Ken] a chance to show off his lovingly restored Alto. The Xerox machine is the granddaddy of all modern PCs, having introduced almost every aspect of the GUI world we live in. But with a processor built from discrete TTL chips and an instruction set that doesn’t even have logical OR or XOR functions, the machine isn’t exactly optimized for SHA-256 hashing. The fact that [Ken] was able to implement a mining algorithm at all is impressive, and his explanation of how Bitcoin mining is done is quite clear and a great primer for cryptocurrency newbies.

[Ken] seems to enjoy sending old computer hardware to the Bitcoin mines — he made an old IBM mainframe perform the trick a while back. But if you don’t have a room-size computer around, perhaps reading up on alternate uses for the block chain would be a good idea.

[via Dangerous Prototypes]

Tiny Bitcoin Miner Plays The Lottery

Usually when we think of Bitcoin miners, we imagine huge facilities of server racks doing nothing but essentially wasting energy, all for the chance that one of those computers amongst the rows will stumble upon the correct set of numbers to get rewarded with imaginary money. The idea being that the more computers, the more chances to win. But just buying one lottery ticket is the only thing technically required to win, at least in theory. And [Data Slayer] is putting this theory to the test with this Bitcoin miner built around a single Raspberry Pi.

This tiny Raspberry Pi Zero does get a little bit of support from an Ant Miner, a USB peripheral which is optimized to run the SHA256 hashing algorithm and solve the complex mathematical operations needed to “win” the round of Bitcoin mining. Typically a large number of these would be arrayed together to provide more chances at winning (or “earning”, to use the term generously) Bitcoin but there’s no reason other than extreme statistical improbability that a single one can’t work on its own. The only other thing needed to get this setup working is to give the Pi all of the configuration information it needs such as wallet information and pool information.

This type of miner isn’t novel by any means, and in fact it’s a style of mining cryptocurrency called “lottery mining” where contributing to a pool is omitted in favor of attempting to solve the entire block by pure random chance alone in the hopes that if it’s solved, the entire reward will be claimed by that device alone. In the case of this device, the current hash rate calculated when it was contributing to a pool means that when lottery mining, it has about a one-in-two-billion chance of winning. That’s essentially zero, which is basically the same chance of winning a lottery that pays out actual usable currency.

Continue reading “Tiny Bitcoin Miner Plays The Lottery”

Hackaday Podcast 108: Eulogizing Daft Punk Helmets, Bitcoin Feeling The Heat, Squeezing Soft Robots, And Motorizing Ice Skates

Hackaday editors Elliot Williams and Mike Szczys travel through the greatest hacks the week had on offer. Charge up your ice skates (literally) by adding spiked electric motors to push you across the frozen pond. If that’s too cold for early March, snuggle up with a good book under the warm light of a clever lamp made from a rotary-dial telephone. We discuss CAD and CAM in your browser, and a software tool to merge images with PCB gerber files. The episode wraps up with a discussion on the balance of quality versus speed when prototyping, and digesting the environmental impact of the Bitcoin network.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (~60 MB)

Places to follow Hackaday podcasts:

Continue reading “Hackaday Podcast 108: Eulogizing Daft Punk Helmets, Bitcoin Feeling The Heat, Squeezing Soft Robots, And Motorizing Ice Skates”

Hacking The FPGA Control Board From A Bitcoin Miner

For anyone serious about mining cryptocurrency such as Bitcoin, we’re well past the point where a standard desktop computer is of much use. While an array of high-end GPUs is still viable for some currencies, the real heavy hitters are using custom mining hardware that makes use of application-specific integrated circuits (ASICs) to crunch the numbers. But eventually even the most powerful mining farm will start to show its age, and many end up selling on the second hand market for pennies on the dollar.

Naturally, hackers are hard at work trying to find alternate uses for these computational powerhouses. While it won’t teach an old ASIC a new trick, [xjtuecho] has documented some very interesting details on the FPGA control board of the Ebit E9+ Bitcoin miner. Known as the EBAZ4205, this board can be purchased for around $20 USD from online importers and even less if you can find one used. Since it’s just the controller it won’t help you build a budget super computer, but there’s always interest in cheap FPGA development boards.

The Zynq SoC combines an FPGA and ARM CPU.

According to [xjtuecho], it takes a little bit of work to get the EBAZ4205 ready for experimentation. For one thing, you may have to solder on your own micro SD slot depending on where you got the board from. You’ll also need to add a couple diodes to configure which storage device to boot from and to select where the board pulls power from.

Once you’re done, you’ll have a dual core Cortex A9 Linux board with 256 MB DDR3 and a Artix-7 FPGA featuring 28K logic elements to play with. Where you go from there is up to you.

This isn’t the first time we’ve seen FPGA boards hit the surplus market at rock bottom prices. When IT departments started dumping their stock of Pano Logic thin clients back in 2013, a whole community of dedicated FPGA hackers sprouted up around it. We’re not sure the if the EBAZ4205 will enjoy the same kind of popularity in its second life, but the price is certainly right.

[Thanks to Rog77 for the tip.]

All Your Passwords Are Belong To FPGA

When used for cracking passwords, a modern high-end graphics card will absolutely chew through “classic” hashing algorithms like SHA-1 and SHA-2. When a single desktop machine can run through 50+ billion password combinations per second, even decent passwords can be guessed in a worryingly short amount of time. Luckily, advanced password hashing functions such as bcrypt are designed specifically to make these sort of brute-force attacks impractically slow.

Cracking bcrypt on desktop hardware might be out of the question, but the folks over at [Scattered Secrets] had a hunch that an array of FPGAs might be up to the task. While the clock speed on these programmable chips might seem low compared to a modern CPUs and GPUs, they don’t have all that burdensome overhead to contend with. This makes the dedicated circuitry in the FPGA many times more efficient at performing the same task. Using a decade-old FPGA board intended for mining cryptocurrency, the team was able to demonstrate a four-fold performance improvement over the latest generation of GPUs.

An earlier version of the FPGA cracker

After seeing what a single quad FPGA board was capable of, the [Scattered Secrets] team started scaling the concept up. The first version of the hardware crammed a dozen of the ZTEX FPGA boards and a master control computer computer into a standard 4U server case. For the second version, they bumped that up to 18 boards for a total of 72 FPGAs, and made incremental improvements to the power and connectivity systems.

Each 4U FPGA cracker is capable of 2.1 million bcrypt hashes per second, while consuming just 585 watts. To put that into perspective, [Scattered Secrets] says you’d need at least 75 Nvidia RTX-2080Ti graphics cards to match that performance. Such an array would not only take up a whole server rack, but would burn through a staggering 25 kilowatts. Now might be a good time to change your password to something longer, or finally get onboard with 2FA.

We’ve covered attempts to reverse engineer hardware designed for cryptocurrency mining, but those were based around application-specific integrated circuits (ASICs) which by definition are very difficult to repurpose. On the other hand, disused FPGA-based miners offer tantalizing possibilities; once you wrap your mind around how they work, anyway.

[Thanks to Piejoe for the tip.]

Everything You Want To Know About The Cheapest Processors Available

Those of us who use microprocessors in our work will be familiar with their cost, whether we are buying one or two for a project or ten million on reels for a production run. We’re used to paying tens of cents or maybe even a dollar for a little microcontroller in single quantities, and these are probably the cheapest that we might expect to find.

There is a stratum of cheaper devices though, usually from Chinese manufacturers with scant data in English and difficult to source in Europe or the Americas. These chips cost under ten cents each, a figure which seems barely credible. To shed some light upon this world, [cpldcpu] has produced a run-down of some of the available families that even if you will never work with such an inexpensive option still makes for a fascinating read.

These processors are not the type of component you would use for high intensity tasks so it’s probable that you will not be mining cryptocurrency on a brace of them. Thus their architecture is hardly cutting-edge, with the venerable PIC12 being their inspiration and in some cases their direct copy. These are all write-once devices and some of their toolchains are variable in accessibility, but perhaps they aren’t as terrible as some would have you believe. If you are looking for inspiration, we’ve featured one of them before.

TL;DR: the Padauk PFS173, at just under $0.09, has an open-source toolchain and a decent set of peripherals.

Thanks [WilkoL] for the tip.

Image: A real PIC12 die shot. ZeptoBars [CC BY 3.0]