On Tuesday, the Bitcoin (BTC) exchange rate suddenly dropped from over $48 to around $36. The virtual currency lost a quarter of its value, prompting Mt. Gox, the leading Bitcoin exchange, to suspend all transactions shortly afterwards.
Paul Ducklin, head of technology at enterprise security company Sophos, explains that it was the differences in versions of Bitcoin “mining” software that led to an error in a supposedly fool-proof system.
The problem emerged because of incompatibilities of different Bitcoin versions. Until version 0.7, Bitcoin coders used the Oracle Berkeley DB database library module, but this was unable to handle very long “blockchains”, the proof of value in Bitcoin. Version 0.8 switched to a different database library, Google’s LevelDB, which had no such problems. As a result, some of the network accepted newly “mined” bitcoins, while some didn’t.
No bitcoins were actually lost due to the error, except for those mined during a few hours on Tuesday.
Bitcoins make up a decentralised virtual currency traditionally used among people interested in keeping their transactions secret. However, recently, a number of major online businesses have started to accept BTC as a form of payment, improving its reputation.
It relies on blockchains – cryptographic records of Bitcoin creation and use – to verify all transactions. According to Ducklin, a blockchain forms “a sort of transaction log” that allows “other players in the Bitcoin world to verify your solution to the cryptographic puzzle”. Every solution counts as one Bitcoin.
New solutions can only be produced through an intensive cryptography process that requires a lot of time and computational resources, called “mining”. As it turns out, it was the mining software that caused the value of Bitcoin to crash on Tuesday.
“It seems that version 0.7 of the Bitcoin mining software – the program that does the cryptographic guessing, and exchanges blockchains over its peer-to-peer network – had a fatal but unknown flaw,” writes Ducklin.
“This flaw was inherited from a database library module known as Oracle Berkeley DB that was used by Bitcoin coders until version 0.7; in version 0.8, they switched to a different database library, created by Google, known as LevelDB.”
A bug in Berkeley DB made it “choke” on blockchains bigger than a certain size, while LevelDB handled them just fine. As a result, half the network accepted the newly minted virtual coins, and the other half rejected them, wreaking chaos on the BTC market.
“After some emergency discussion on #bitcoin-dev, it seems best to try to get the majority mining power back on the ‘old’ chain, that is, the one which 0.7 accepts,” wrote Bitcoin developer Pieter Wuille in an e-mail.
Bitcoin exchange rate crashes have happened in the past: in 2011, Mt. Gox was hacked, causing the value of Bitcoins to plunge. While only about $1,000 worth of Bitcoins were stolen, the irregular trading that resulted from the incident dropped the price of one BTC from around £11 to under a penny.
And in 2012, four former customers sued the virtual currency exchange Bitcoinica, claiming that it owes them $460,457 (£293,080) in funds they previously deposited. This happened after the service was hacked twice, with attackers stealing over $177,000 worth of bitcoins.
“This time, it wasn’t the surrounding ecosystem that turned out to have feet of clay, but the software behind Bitcoin itself,” wrote Ducklin. “It reminds us how difficult it is to carry out a comprehensive code review on software that relies on third-party libraries, even if they are open source.”
At the time of writing, Bitcoin had recovered and is trading at around $47.
What do you know about Tech stocks and shares? Take our quiz!
Suspended prison sentence for Craig Wright for “flagrant breach” of court order, after his false…
Cash-strapped south American country agrees to sell or discontinue its national Bitcoin wallet after signing…
Google's change will allow advertisers to track customers' digital “fingerprints”, but UK data protection watchdog…
Welcome to Silicon In Focus Podcast: Tech in 2025! Join Steven Webb, UK Chief Technology…
European Commission publishes preliminary instructions to Apple on how to open up iOS to rivals,…
San Francisco jury finds Nima Momeni guilty of second-degree murder of Cash App founder Bob…
View Comments
As Bob Rice was quick to point out (http://www.bloomberg.com/video/bob-s-daily-buzzword-bitcoin-EJ04CzJbQsKJ6CqAsDI_WA.html) it isn't as though the NYSE or NASDAQ are any less susceptible to unforeseen software bugs.
In April 2012 a gigantic swathe of the Visa credit card network was disabled for a time.
How often does your own online banking service go down for maintenance?
Indeed, the bug was addressed in short order (by volunteers, no less), and the price recovered almost immediately (how long did it take Facebook to recover its IPO price after it's technologically inept launch? Answer: ( https://www.google.com/finance?chdnp=1&chdd=1&chds=1&chdv=1&chvs=maximized&chdeh=0&chfdeh=0&chdet=1363293033149&chddm=78200&chls=IntervalBasedLine&q=NASDAQ:FB&ntsp=0&ei=XjNCUdDzMsyO0QGoNg ).
Just saying.