299 points · by cynthiar · 10y ago · 150 comments
This mistake is difficult, if not impossible, to make with standard Bitcoin software. The fee field is usually pre-filled and somewhat tricky to change, and newer versions of bitcoin-core will block transactions like this as obviously wrong. It should also be noted the bitcoin fees are implicit in transactions - a transaction will have some amount of funds going in, and some amount going out, and anything left over is the fee. Usually these types of mistakes actually happen when someone manually crafts a transaction and forgets that they need to make a change output for themselves.
It is obviously still possible to create transactions like this, but it currently requires using advanced interfaces and deliberately bypassing safety measures.
...as long as humans are involved in transactions (by writing software if anything), human errors seem to be bound to happen.
But as the article says, likely it happened via a script. But its a very costly mistake. I hope we know the real cause of it.
Overall, I like the depth the article has gone into. But I don't agree with this sentence:
the kind of script that swaps arguments by mistake may be the kind of script that does not write its keys out to a database, so the private keys may be long gone
I think the article got it wrong. How can the private key be lost (and also logged to DB!)? The 291+ btc would have come from some public key. If that that public key has got more btc attached to it, then the owner surely still has the private key. Also even if its zero value now. The wallet (public-key) from which the money came, would still exist, and private key still there somewhere.
So the miner can return the extra BTC to the same public key. Am I missing something?
The mistake cost around $225 million.
[1] http://www.foxnews.com/story/2005/12/09/typing-error-causes-...
There are a lot of simultaneous errors going on here...
If you want to validate whether an order makes sense or is a "good idea", the place to do it on the client.
Of course, these type of algorithms typically take far more than microseconds to run—but that's fine, as long as they take the same time for everyone.
This is similar to how Github forces you to type the name of a repository when you try to delete it.
You can also configure a threshold such that the "hardcore" prompt kicks in only if the system detects that the user is trying to do something unusual, i.e. sell a stock for much cheaper than it is.
Many world equity markets now have daily up/daily down limits a certain percentage above and below the previous day's closing price. Others will pause trading for a short period of time if short-term price moves are abnormally large.
Many equities markets only allow direct connections to the market from brokerages licensed by the country's financial regulators. These days, brokerages often implement their own sanity checks on many order flows. Joe's Live Bait and Stock Trading generally isn't connecting directly to any equity trading venue.
I'm curious what the effect would be of a market switching to second-price blind auctions every 5 minutes if a stock moves up or down 5% on the day. There are academic papers showing theoretical stability advantages of second-price auctions. Trading at the second-highest bid when the market is down more than 5% and at the second-lowest ask when the market is up should help to attract one-sided liquidity in the direction of market stability.
It was an error and a mistake.
In fact, error is a synonym for mistake: https://www.google.com/search?q=mistake&oq=mistake&aqs=chrom...
If the software had brought up a warning with something like "you are selling each share for less than 610000 +- 10000, please confirm", this could have been avoided.
Reasoning: BitCoin isn't, to my knowledge, a scheme where some private identifier is stored inside each "coin" whose ownership is revealed with a zero-knowledge proof; it's simply one where you have public and private keys and use those private keys to sign transactions saying "Take X1 out of my public key K1 and put X2 in public key K2, with X1 - X2 going to the miner." That is, BitCoins themselves, as I understand them, are just points in a big distributed videogame: they do not represent actual packets of data which are individually 'minted' in mining and stored on your computer until you spend them.
If that's correct, then there's no distinction if you tumble-via-miners versus tumble-via-tumblers -- either way the coins are 'freshly minted'; there's simply no other sort of coin.
The only real thing that you seem to be able to do here is to tumble via both the tumblers and the miners, which might create some binary tree of complexity if someone tries to "follow the money" -- but that doesn't seem to be what the author is saying.
Is there legitimately something in each coin which makes it easier to follow a given bitcoin via tumbling than through miner-money-laundering, or are they really just the same thing performed through different channels, with a much slower rate of success for the MML tumbling?
With mining, however, you are intermingling with the activities of an entire mining pool. It is WAAAY harder to trace. Let's say I want to launder 1,000 BTC, and I have a sympathetic mining pool that will launder it for me. So I sign a 1,000 BTC transaction that gives it all away as a transaction fee, and they include it in their next mined block, eating the full bonus.
Then, separately, either before or after, and possibly far separated in time chronologically, they issue a series of transactions to a set of separate virgin receiving addresses I have created that total up to, say, 999 BTC (they keep 1 BTC as their mixing fee). As a key point, these transactions do NOT spend the output of the 1,000 BTC reward block, but rather, block generation rewards from previous blocks they've mined. They are indistinguishable from standard mining reward payouts, which any pool goes through a huge number of every day.
Those 999 BTC I now have spread across my addresses are way more anonymized than anything I could get with a traditional mixing pool.
---
That being said the bitcoin metaphor is misleading in the details as metaphors always are. There are no bitcoins, in that there are no IDs that are kept in an inventory that represent every individual bitcoin. Instead bitcoins are represented as ledger entries only. The traceability, or lack thereof, comes from the ability to trace the ledger entries. It goes something like this:
Miner: "Everyone agrees I now have 25 bitcoins in account M1. Because I'm a winner!"
Miner: Tx :: Send 25 bitcoins from M1 account, to P2 (Person 2's public key)
Person 2: Tx :: Send 5 bitcoins from P2, to P3.
Balances
M1: 0
P2: 20
P3: 5
P3's bitcoins can be traced to P2, and then M1. Now P2 sends a transaction with a high fee (up to now no fees were paid).
Person 2: Tx :: Send 1 bitcoin from P2, to P4, with a tx fee of 19.
Miner 2: "Everyone agrees I now have 44 bitcoins in my M2 account. Because I'm a winner!"
Balances
M1: 0
P2: 0
P3: 5
P4: 1
M2: 44
M2's bitcoins can be traced to 25 new coins, 19 fee coins given by P2, who go them form m1. P3 is not involved in the transaction history, and every transaction is traceable.
The usefulness to a launderer seems more the simplicity of exchanging a large amount of coins for fiat currency in a single transaction, rather than going through an exchange or sending lots of complex small transactions through a mixer and figuring out how to exchange all of that back without going through an exchange w/ KYC
Well that's easier said than done. There are a large number of blocks for which the miner is not known. The only reason the miner is known for as many blocks as it is is because several of the largest mining pools tag every block that they mine as a form of accountability to their miners (and of course bragging rights).
I think the article is simply wrong.
[0] https://blockchain.info/charts/transaction-fees?timespan=all...
"According to my calculation, a single Bitcoin transaction uses roughly enough electricity to power 1.57 American households for a day."
http://motherboard.vice.com/read/bitcoin-is-unsustainable
I find this interesting thinking about Bitcoin as a currency. The first cryptographic currency example that I had read, from a cryptography book, didn't involve active power. I'm really surprised that Bitcoin has been able to gain this much popularity with its design. Does this explain how you might be able to lose a household-sized amount of money in a transaction on this network? I don't know, but I think that the blockchain idea might not be the ideal for digital currencies.
No, each transaction costs at most $5.50 USD. You haven't established any lower bound in your calculations. A better approach would be to calculate the average number of hashes required to mine a block and the power efficiency of the latest generation ASIC miners.
Also, for what it's worth, $5 is much cheaper than a Western Union or SWIFT wire transfer so even this upper bound doesn't mean Bitcoin is uneconomical compared to modern banking.
I believe this is because the average block size is less than 1 MB: https://blockchain.info/charts/avg-block-size
But in practice, even when a user moves bitcoins between their own wallets its results in that transaction getting registered in the block chain. Which is very unnecessary, costly, inefficient and also may compromise the user's privacy. That's why IMHO some kind of solution whether it is lightning network[1] or sidechains is needed.
First, the hashrate's primary purpose is not mining transactions, it's securing the network. That includes transactions that have already been mined, and includes all of the bitcoins that everyone is sitting on. For me personally, Bitcoin's primary purpose is not moving money around but rather parking my money safely in an asset that is not subject to the whims of politicians. Giant price swings are inconvenient, but I am willing to accept the variance because I know my money cannot be seized, my transactions cannot be censored, and the money will not lose value because my government decides to print a ton of cash. It is important to me that the network have a high hashrate whether or not I am actively moving my money around, and in fact most of that $11,000 is charged in the form of inflation, not in the form of transaction fees. Inflation penalizes the people holding onto their bitcoins, where fees penalize the people moving money around.
Secondly, the cost of a transaction is a relatively minor concern when it comes to the blocksize. What is most important is that the network is secure, and cheap transactions come as a secondary concern. If you want cheap transactions, you can use a centralized system which does not need to worry about all the problems that accompany decentralized money. If you want decentralized transactions, you're going to need to pay the minimum price necessary to make sure that the network remains both secure and decentralized, and (unfortunately) 1MB (soon to be ~1.75MB, thanks to segwit) per 10 minutes is about all we can do safely.
Explaining why 1MB is approx the best throughput the network can get is a much longer conversation, but there are signficant safety concerns related to hardforking the network, related to slowing down block propagation (larger blocks propagate slower, and if blocks are taking more than ~6 seconds to propagate the network you get mining centralization pressures), related to the cost of running a full node, related to the fact that a fee market is going to be what secures the network in the future, and related to a handful of other smaller issues as well. It turns out that a number as simple as 1MB has a large number of broad effects on the system as a whole, and changing it even slightly can have pretty dramatic effects in unintuitive places.
Finally, in practice there is not a linear correlation between hashpower and block subsidy. Lots of miners have been preparing for the halving for months, and therefore have only expanded their operations to what they will be able to sustain after the halving. There are at least a few large mining companies out there that are actually spending less than half the price of a bitcoin in electricity and maintenance for each bitcoin they mine, meaning they will not lose any hashrate at all when the halving arrives. There was some concern about this at the Scaling Bitcoin conferences, so me and a few others probed deeper into the probable outcomes of the reward halving, and we found that most miners had a plan which did not involve them turning off their rigs even if the price did not rise. Some of them are actually already locked into power agreements that will penalize them heavily if they don't consume the electricity.
It's difficult to predict what the halving will do to the price. We know that when the halving occurs, ~1800btc per day of sell pressure will disappear. That most likely means that the price will rise, but there is absolutely no reason to believe that this will cause the price to double.
I personally am predicting that, regardless of price movement, we will see the hashrate drop less than 15% in the month following the halving. I have done a moderate amount of research in arriving at this conclusion, at least more than your typical armchair speculator.
1) The cost (in money and energy) of each transaction will increase as the value of each coin increases, and decrease as the number of transactions per block increases. If we assume that the number of transactions will increase faster than the value (which I think is a reasonable assumption), then the cost per transaction will fall over time.
2) When all 21 million coins have been mined, the block reward has tapered off to zero, and miners are dependent on transaction fees, the cost (in money and energy) of each transaction will be much lower than today. You can think of the energy currently being burned on mining new coins as being the tangible asset which backs those coins.
The Proof of Work part of bitcoin (the part that consumes all that electricity) creates a consensus record so that if double spends are performed, only one of them will stick. Now double spends are a "feature" called "replace by fee."
Preventing double spends is worth millions to investors, so that's why it continues.
Reading some of the original literature, and glossing over the textbook, it seems like many of the issues involved with double spending and counterfeiters are _eventually_ resolved with someone going to jail, rather than being able to resolve the financial payments in order. A naïve solution - which might save some energy - what about using signed timestamps from an adequate authority?
Here is the article from 1991 for those interested in the original idea: http://link.springer.com/chapter/10.1007%2F3-540-46766-1_27
The whole point of bitcoin is permissionless transactions. It is to make transactions even if the authorities don't want them to happen.
The e-currency example you read probably wasn't decentralized.
Totally unrelated and an old argument talked about in depth.
Plus you are conflating the word transaction. It is not how the article used that word.
The person tried to spend 5 cents on the transaction. This is not one days worth of electricity.
I recognize each 'transaction' holds several payments. I find the growing size of the block chain pretty astonishing as well, in an alarming way for users.
The electricity used is the level of security, the number of transactions supported are completely separate and could easily be orders of magnitude larger if the block size gets expanded (which is a whole other issue, but unique to bitcoin at this moment).
I think the idea here is that you instead privately give the transaction to only your favoured miner. He will then try to hash it, and if and when he finishes it, he will broadcast the transaction and the solution to the network at the same time.
Ordinarily there would be no advantage to give your transactions privately to just one miner; if you broadcast it publicly there will be many more miners working on it, so it will commit faster. So unless you are deliberately trying to overpay (like here) it would be a waste of money.
That's not really a good description of how this will work. Each miner maintains a transaction pool of transactions that have been broadcasted across the network. Think of it as a priority queue. Transactions are of different sizes and fees, and the miner is trying to maximize their total fee up to the 1 MB block size limit. These transaction pools are largely the same across all miners, with of course some differences owing to time delays and network propagation issues.
So all that would happen in miner tumbling is that the miner maintains its transaction pool as normal, but then additionally adds in the special transaction that it does not rebroadcast. The end result is you end up mining a block that has almost the same transactions in it as any other miner would, except with that one extra special transaction, and a low priority one being bumped.
The problem (and the reason this really isn't a useful money-laundering method) is that people watch incoming transactions and blocks, and if a block is mined including a transaction that was not seen previously, it's a strong indication that there's collusion going on.
I would also contend that even if it was trivially easy to do, it would probably make more sense to just route transactions to various wallets and then to some exchanges and into other currencies, ect. I don't know if the miner thing makes sense
I don't know if that is possible, but if it is it would ensure that a given miner was getting those fees.
http://bitcoin.stackexchange.com/questions/4942/what-is-a-fi...
But this still doesn't provide 100% certainty that you will collect the transaction fee. You risk that other miners try to orphan the block once it is published (i.e. ignore it and build on the previous one instead) in order to put the transaction in their own block.
It does place an upper bound on the total amount of BTC that can be laundered through transaction fees on a single block, though. I won't do the math right now but it's some multiple of the block reward fee that depends on what percentage of the network hash rate you control.
Fortunately (?) for the would-be launderer, the average pool is mining a good deal more than one block per day, so you just spread your laundering across a series of blocks.
I'd really like to find a good tool for exploring the graph of transactions. Most of the funding of the account that lost all the money have a similar pattern where a couple BTC is peeled off at each step and the majority goes forward in the chain till it all pools at 1QgTYzMYqStzZBQx8gguYaJQMjFRbagbh and gets spent. I wonder if thats just what TradeBTC transactions look like.
One small nitpick:
> My payment is going to be with newly mined coins, the Bitcoin equivalent of fresh, crisp dollar bills straight from the Mint.
Coins are minted, bills are printed, so only coins come from the U.S. Mint. Paper bank notes and stamps come straight from the Bureau of Engraving and Printing (way less fun to say though!).
Haha, great point!
From an investigators perspective there is no difference between the two scenarios.
1. Miner A has received 500 BTC from Suspect B over the past year and may be laundering it.
2. Miner A has processed 500 BTC in transaction fees from Suspect B over the past year and may be laundering it.
Of course I don't. I know banks can have terrible design, but I've never seen a 'fee' field on any transfer form. (maybe because I use credit unions?) That bank might as well tell everyone 'please let us eat even more of your money on top of the bogus fees we already charge you'. And don't real banks have regulations preventing mess ups like these?