Mining Bitcoin On The 15-bit Computer That Brought Man To The Moon

in #science5 years ago

The computer that brought American astronauts to the Moon and calculated their return trajectory has a new use. Experts tried to reprogram it to mine Bitcoin. While the 50-year-old computer can't really compete with new specialized machines it was an interesting experiment.

bitcoin2007769_1920.jpg

In the year 1969 – fifty years ago – the computer named AGC (Apollo Guidance Computer) had a key role in the return maneuver of Apollo 11. This computer is often called upon when we compare how far have computer progressed since then. You can often hear: „Nowadays you have a million times more powerful computer in your pocket than the astronauts had when they landed on the Moon.“ And as the fiftieth anniversary of Moon landing a few computer historians had an idea – they will repurpose the AGC. And so it wouldn't be a complete waste of time, they decided to have it mine Bitcoins.

To some of you, mining Bitcoin on a computer from the sixties might sound like a crazy and stupid idea. But that was exactly why Ken Shirriff decided to try it. Through homemade circuits, he connected the AGC to the internet so mining could begin. Theoretically, all that was left to do was to give the computer some mining software. But coding that wasn't easy. The hash algorithm SHA-256 that is used to mine Bitcoin uses 32-bit operations. But the AGC used a 15-bit architecture so each 32-bit operation requires three different operations on the AGC (one 4-bit operation and two 14-bit operations).

Another problem was with capacity. AGC had a memory of just two thousand commands – roughly 4 thousand bits. And standardly the programmer had access to only 256 of those commands. The SHA-256 algorithm used 240 of those commands which meant that only very few were left for anything else. Also, the AGC didn't have certain operations available so Sherriff needed to code them into specialized subroutines making the calculations even slower.

But in the end, they managed to get the mining work. But it's really not profitable. It takes about ten seconds for a single hash to be calculated by AGC. In comparison, a specialized Bitcoin mining machine is about a trillion times faster. And even mining on a regular notebook would be a hundred times quicker.

Sources:


  • If you like the content I’m producing about science maybe you will like the content I produce about gaming as well! Be sure to check out my other posts!
Sort:  

Thanks for the post. It's pretty amazing to think how far computers have come in the last 50 years, and also impressive that Shirriff was able to get bitcoin mining working on that platform.

I have included a link to your article in my recent post, Science and technology micro-summaries for July 15, 2019, and set a beneficiary so that you'll get 5% of the rewards.