News for hackers. Stuff that matters.
Re:Bitcoin over Tor isn't a good idea by patio11 on Thursday October 23, 2014 @08:07AM (#8497710)
You have no idea how deep that rabbit hole goes. Bitcoin Core is referred to as a "reference implementation", which means "you should implement all bugs referenced by Bitcoin Core in transaction verification, or you have your choice of being kicked off the Bitcoin consensus immediately, which is bad, or at any point of an attacker's choosing, which is catastrophic."
Re:Bitcoin over Tor isn't a good idea by kens on Thursday October 23, 2014 @11:26AM (#8498633)
In case you think that's theoretical, a bug with integer overflow let an attacker creating 184 billion bitcoins out of thin air. To fix this, a new implementation was pushed out, which ended orphaning more than 8 hours of transactions. In other words, even after 8 hours you can't be certain that Bitcoin transactions are durable.

https://en.bitcoin.it/wiki/CVE-2010-5139

Another interesting case is when bitcoind 0.8 changed the underlying database from BerkeleyDB to LevelDB. Due to different database lock limits, bitcoind 0.7 couldn't process a block that bitcoind 0.8 could. For 6 hours, there was a fork where old clients were using a totally different blockchain than new clients, because of this single block they couldn't handle. This is what patio11 means, that you have to be bug-for-bug compatible with the reference implementation.

http://bitcoinmagazine.com/3668/bitcoin-network-shaken-by-bl...

Re:Bitcoin over Tor isn't a good idea by jerguismi on Thursday October 23, 2014 @12:44PM (#8499140)
> In case you think that's theoretical, a bug with integer overflow let an attacker creating 184 billion bitcoins out of thin air. To fix this, a new implementation was pushed out, which ended orphaning more than 8 hours of transactions. In other words, even after 8 hours you can't be certain that Bitcoin transactions are durable.

That was in 2010. Most of the users take certain level of risk, also different kinds of people have different risk appetite. If you really think this is still a relevant risk, then probably you shouldn't use cryptocurrencies at all. Stay with the safe and proven almighty dollar.

Re:Bitcoin over Tor isn't a good idea by derefr on Thursday October 23, 2014 @12:34PM (#8499078)
The right mindset to understand the requirements of Bitcoin client design is, I think, that of someone trying to clone an online game client (e.g. Starcraft) in a way that doesn't experience network state desynchronization. You can do whatever you like in your client UI-wise, but the "rules engine" of your implementation absolutely must reduce an incoming event stream into the same world state as the reference implementation.

For this kind of problem, the easiest solution (when possible) is to extract the "rules engine" component of the reference implementation into a library, and then have every other client just use it (and maybe contribute to its development) instead of trying to write something bug-for-bug compatible with it.

When you think about it, web browser rendering has much the same implementation-consensus problems as Bitcoin. And what do we see there? Everyone sort of converging toward just using the "rules engine" known as WebKit.

Re:Bitcoin over Tor isn't a good idea by 3pt14159 on Thursday October 23, 2014 @08:36AM (#8497787)
That's the way a blockchain works though. If there is a bug in the client that 99% of people use then of course you'll have forking blockchains. And all of this matters less anyway, because clients can fallback to blockchain.info if there is a fork detected, and just warn the user that the client may have a bug.
Re:Bitcoin over Tor isn't a good idea by kanzure on Thursday October 23, 2014 @09:41AM (#8498032)
> because clients can fallback to blockchain.info if there is a fork detected

Unfortunately bc.i's implementation/instance is not immune to bugs, forking, lying or collusion. I don't know why you would expect it to be.

Re:Bitcoin over Tor isn't a good idea by 3pt14159 on Thursday October 23, 2014 @09:56AM (#8498108)
The point is that it is a trusted enough party. If the client gets a suspicious block it can check against that party as a way of seeing if the client itself may have a bug.
Re:Bitcoin over Tor isn't a good idea by psykovsky on Thursday October 23, 2014 @09:59AM (#8498123)
The bitcoin client has a fallback to blockchain.info when it detects a fork? What? I'm not sure I understand what you're saying.
Re:Bitcoin over Tor isn't a good idea by 3pt14159 on Thursday October 23, 2014 @03:22PM (#8500174)
A client, not, The client.

Say you were writing a client in a different language or for another platform.

Re:Bitcoin over Tor isn't a good idea by psykovsky on Thursday October 23, 2014 @04:48PM (#8500652)
Saying I was writing a bitcoin client I would never use some 3rd party as a fallback. As soon as a blockchain fork is detected you stop all transactions and wait for it to be solved by the miners. No other way around it.
Re:Bitcoin over Tor isn't a good idea by resolutionx on Thursday October 23, 2014 @08:22AM (#8497741)
What a wonderful idea. /s

Although I understand it to an extent. The core of software wouldn't be the core if it wasn't always used.