Remix.run Logo
Sabotaging Bitcoin(blog.dshr.org)
140 points by zdw 12 hours ago | 87 comments
sebbyBinx 2 hours ago | parent | next [-]

Part of this post addresses the economics of creating a 6 block re-org. This makes sense as 6-confimations is the standard for Bitcoin finality today.

However, as Bitcoin's security inevitably weakens over the coming years due to diminishing miner rewards (denominated in BTC), I believe this "6-confimation" acceptance policy will change to include not only the number of confirmations, but the timing of those confirmations as well. Consider a scenario where an exchange deciding whether a tx with 6-confirmations that took 4 hours to arrive (this happens occasionally) is safe to consider finalized/settled. Even though 6-confimations may be considered safe by today's acceptance policies, this tx would still have a high probability of double spend due to the assumed 4-hour long wait for the 6 confirmations (as the attacker would have 4 hours to produce 7 blocks instead of the normal/expected 1 hour). Instead of ignoring block interarrival timing, it may make sense to include block timing as part of an acceptance policy.

So, going forward Bitcoin acceptance policies may change from today's 6-confirmation standard to something more complicated that involves the amount of time those blocks took to arrive. This would significantly enhance Bitcoin's double spending resistance without adding/altering any code and may give the network a much needed security boost in the coming years to prevent the attack discussed in the post.

copirate 5 minutes ago | parent | next [-]

If the attacker is waiting for a lucky event to occur (finding more blocks than others while having less than 51% of the mining power) it means that they are constantly wasting mining time. That in itself is a huge cost (operational cost and block rewards thrown away), but it also means that they can't predict when it will happen. A double spend attack must be planned in advance because the first transaction must occur at the beginning of the attack. I'm not sure how they could constantly try double spends without risking losing the money each time the attack doesn't happen.

I don't see how it could be profitable. If it can't be profitable, then the risk of someone doing it is pretty low. If they already have the necessary hardware, they'd be much better off mining.

mrb 28 minutes ago | parent | prev [-]

"Bitcoin's security inevitably weakens over the coming years due to diminishing miner rewards (denominated in BTC)"

That's incorrect. Security scales with USD-denominated rewards, not BTC-denominated. And there are 16 years of real-world data showing they have been generally increasing, so a healthy sign that the Bitcoin experiment is working:

https://newhedge.io/bitcoin/block-reward-per-block

And not only that, but rewards are still expected to stabilize even when measured in BTC (thereby not relying on an increase of BTC's price) as they are progressively composed more and more of tx fees instead of newly mined BTC.

It's puzzling to me why some still don't understand the systemic incentives that make all this work as it has for 16 years and counting...

free_bip 15 minutes ago | parent [-]

How are you so confident that it will never weaken? Especially since there will come a time when the block reward is literally 0.

mrb 8 minutes ago | parent [-]

Tx fees make up a bigger and bigger fraction of miner rewards over time.

roenxi 8 hours ago | parent | prev | next [-]

The Eyal & Sirer paper is pretty interesting - they basically point out that there is actually some game theory involved in when miners should reveal that they mined a block to compete most effectively with their fellows. If a pool can set up a situation where they mine a block and wait X seconds to reveal it, they can force other miners to waste X seconds of has power and gain an advantage.

It looks like a result with complex implications - eg, maybe making it impossible for new miners to set up unless they have a meaningful advantage in operating costs instead of just parity with the entrenched players. It is hard to tell because market reality is a mess but if there is a meaningful strategic choice to be made beyond simply announcing a block when it is mined then there is a lot of room for weird equilibriums even if the paper's specific analysis turns out to have flaws.

copirate 33 minutes ago | parent | next [-]

> If a pool can set up a situation where they mine a block and wait X seconds to reveal it, they can force other miners to waste X seconds of has power and gain an advantage.

How is it wasted if they work on the current chain? If they find a block during those X seconds, they'll propagate it before the waiting pool does. The waiting pool will then just lose the revenue from the block they put on hold. They're the ones wasting mining time when that happens, while the others never do.

mvkel 8 hours ago | parent | prev [-]

Isn't this the same thing as saying "if everyone just agrees that a dollar bill is actually just a piece of paper, USD becomes worthless"? Albeit at a smaller scale

ycombinatrix 7 hours ago | parent [-]

I don't think it is the same thing. Everyone agrees that mining the next block is valuable.

cheschire 7 hours ago | parent [-]

Unless they didn’t.

There’s nothing inherently valuable about crypto beyond what value people assign to it in their minds.

ycombinatrix 2 hours ago | parent | next [-]

Okay, fine. Everyone involved** agrees that mining the next block is valuable.

krupan 7 hours ago | parent | prev [-]

Same with all money. Please research more before parroting this argument. You are not the first person to think of it.

jfengel 6 hours ago | parent | next [-]

Fiat money has a difference: an army. It is issued by a government which has the legitimate right to demand taxes, paid in their currency, and deprive you of life and liberty if you don't.

Ultimately the populace could repudiate the whole social contract, which is also just consensus, but that's a far bigger deal than mere money.

nradov 5 hours ago | parent [-]

Well to be pedantic, in the USA at least the value of the dollar is largely maintained by civilian law enforcement rather than the military. If you incur a tax liability and fail to pay your debt in US dollars then eventually the IRS will seize your assets and auction them off to settle the debt. Due to the Posse Comitatus Act, the Army doesn't get involved.

enaaem 6 hours ago | parent | prev | next [-]

The true value of (fiat) money is derived from the fact that contracts are denominated in that money and those contracts are enforced by a central authority with guns. No other assumption is needed in financial engineering.

cheschire 7 hours ago | parent | prev | next [-]

GP was arguing against GGP’s point and I was simply pointing out that the argument was hollow.

What are you referring to with “research more”?

krupan 6 hours ago | parent [-]

Hmm, maybe I wasn't following the thread very well? Many people like to discredit Bitcoin by saying it's only worth is what people decide it is. If that's not what you were trying to do then I apologize.

cheschire 5 hours ago | parent [-]

I don’t discredit any crypto based solely on its ability or inability to fulfill debts, public and private.

But I do wonder if the abstract nature of it will forever hinder its ability to do so universally.

I’m also interested why Bitcoin Cash wasn’t more successful after the fork.

yownie 3 hours ago | parent [-]

>I’m also interested why Bitcoin Cash wasn’t more successful after the fork.

you mean besides it being run by a bunch of crooks and scam artists like CSW?

nradov 6 hours ago | parent | prev | next [-]

It's always hilarious when people who are unclear on the basics themselves tell other to "research more". I suppose it's the Dunning-Kruger Effect.

TylerE 6 hours ago | parent | prev [-]

False. Gold and silver have intrinsic value beyond their use as currency.

jfengel 6 hours ago | parent | next [-]

True, but only a minuscule fraction of it is used for that purpose. If that were the sole source of its value, it would be worth pennies per once.

roenxi 6 hours ago | parent | next [-]

https://pse-info.de/en/scale/price - gold doesn't stand out, there are a few similar ones (Rhodium/Palladium/Iridium/Platinum). I haven't checked, but we'd probably find the gold price sits in a boring-looking distribution of the prices of other elements. Probably an exponential or something that could be mistaken for it. https://en.wikipedia.org/wiki/Prices_of_chemical_elements if you prefer wikipedia.

If it wasn't radioactive, poisonous and pyrophoric people would probably all just leap into the Neptunium market.

TylerE 5 hours ago | parent | prev [-]

That is obviously false on it's face.

If it were only worth pennies an ounce, numerous industries wouldn't be paying what they do for it. The fact that many industries value it at several thousand dollars an ounce is self-evident from their continued use of it.

patrickthebold 4 hours ago | parent [-]

This is interesting to think about: For gold I'd say the demand is coming from both industries and from people who want it as a store of value. If it was only used as an industrial chemical, then surely the price would drop because there would be less demand.

Some bitcoin advocates will talk about how useful it is as a currency, and I wonder how much bitcoin is actually used for purposes other then to hope you can sell it to someone else for more than you paid.

TylerE 3 hours ago | parent [-]

If the price dropped, it would be even more in demand and reach equilibrium. Gold has several unique mechanical properties, being the most corrosion resistant metal and one of the most electrically conductive, as well as being able to be flattened into extremely thin sheets and drawn into extremely fine wire.

llmslave2 6 hours ago | parent | prev [-]

Not for most people. They aren't going to smelt it down and use it to build electronics or jewelry.

For most people the value is what they can receive for it in trade. Which holds for all money.

w10-1 6 hours ago | parent | prev | next [-]

TIL the scale of bitcoin derivatives in 2020 (hence volatility): ~2T on 2B market activity. Jeepers!

--- Starting in late 2020, as shown in The Economist's graphic, the spot market in Bitcoin became dwarfed by the derivatives markets. In the last month $1.7T of Bitcoin futures traded on unregulated exchanges, and $6.4B on regulated exchanges. Compare this with the $1.8B of the spot market in the same month. ---

onion2k an hour ago | parent [-]

Why would you expect the scale of the derivatives to be related to the scale of the spot market, especially if the derivatives are cash-settled futures? One is basically gambling on the price of BTC going up or down, and the other is trading the actual BTC, right?

phonicwheel an hour ago | parent [-]

How is trading the actual BTC not also gambling on the price of BTC going up or down?

onion2k 27 minutes ago | parent | next [-]

It's not really, but the difference is that I'm limited by the supply of BTC, and it requires that I actually have the money to make the 'bet' at the start. That restricts the size of the spot market.

If I'm buying futures I can enter into a contract that says "I'll buy a contract for 1BTC that says BTC is going to go from $88.5k to $98.5k in 1 year." I don't actually hand over any money. In a year's time, if BTC is now $100k the person who agreed on the contract gives me $10k. If it doesn't go up then I owe the seller $10k. The futures contract is settled in cash - no BTC is involved.

Right now though, I don't have a $88.5k to spend on BTC, so the spot market isn't an option. I probably could find $10k in a year's time so a bet on a BTC future might be viable. The actual derivative 'value' isn't real though. The only money changing hands is the delta of the change in value when the contract is settled.

(Caveat: I am a total noob at finance stuff so this could be quite wrong. One of the many reasons I will not be buying that futures contract. :) )

SiempreViernes 33 minutes ago | parent | prev [-]

You might buy BTC to actually spend it, say on paying a ransomware vendor.

spir 8 hours ago | parent | prev | next [-]

This is good analysis. The main longitudinal aspect omitted is that the profitability of the attack goes up as long as the price of BTC doesn't double or more each halving.

In ~6 more years, Bitcoin will undergo two more halvings, so if the price of BTC is not ~400k by then, then attack will have become more feasible.

beenBoutIT 6 hours ago | parent [-]

In the near future every nation state will be vying for the largest stake of the BTC mining pie and the BTC race will be bigger than the Space Race and the Nuclear Arms Race combined and adjusted for inflation.

UltraSane 4 hours ago | parent [-]

Why? BTC is not just worthless, it has negative value due to how much electricity it takes to securely mine new blocks.

jksmith 3 hours ago | parent | next [-]

Did you read the paper? There exists a technology that has purely enforceable property rights. What is that actually worth? I don't know.

Yeah yeah, I've read the arguments about liquidity issues, shutting down the rails, making it illegal to trade, etc. but that's beside the point and depends on a thousand future variables to play out. So I don't know if btc will make it or not, but I do know property rights mean everything to humans. They literally determine whether not one is a slave (I am my own property). So just the ability to have a technology enables pure property rights to a world where nobody really has enforceable property rights over anything seems pretty interesting to me.

nradov 3 hours ago | parent [-]

Property rights are enforced with guns.

logicchains 2 hours ago | parent [-]

That's why Monero is superior; no amount of guns is going to help somebody steal property that they don't know you have.

ravenstine 2 hours ago | parent | prev [-]

That's like saying cars have negative value because of how much oil it takes to run them.

pcthrowaway 2 hours ago | parent | next [-]

Cars have the benefit of transporting humans and goods around.

It's more like saying a hypothetical car which moves itself by using gasoline as a propellant rather than fuel for its combustion engine would have negative value.

Sure, using fuel (of all things) for propulsion would be one way to move a vehicle, but it would be inefficient by design.

Bitcoin, at least, was created during a time where there was no alternative to security-by-inefficency, but PoS and other consensus mechanisms are pretty battle-tested now

standeven 2 hours ago | parent | prev [-]

But cars are useful.

gerdesj 9 hours ago | parent | prev | next [-]

TIL: https://ccaf.io/cbnsi/cbeci - quite horrifying!

EDIT: For comparison: https://gridwatch.co.uk/

utopiah an hour ago | parent | next [-]

Well what's arguably even more horrifying is according to "Estimated average energy efficiency of bitcoin mining hardware" no significant changed happened since 2014. I imagine we went from CPU to GPU to ASIC in couple of years and now for more than a decade, no change, just more.

tenuousemphasis 15 minutes ago | parent [-]

I'm not sure what data you looking at but we went from 8300 J/TH in 2014 to 33.4 J/TH in 2023. So... what are you talking about?

bujkopl 7 hours ago | parent | prev | next [-]

Since when is incentivizing low cost renewable energy horrifying?

gerdesj 7 hours ago | parent | next [-]

My first link shows that Bitcoin consumes roughly 40GW and my second link shows that the UK roughly does too.

There are a lot of ifs and buts here ... but the amount of power used to support the BT mechanism worldwide is roughly the same as the power consumption of the entirety of the UK.

D13Fd 7 hours ago | parent | prev [-]

Because every unit of electricity causes climate change and burns resources (even renewable sources of electricity - they just burn them slower). From a societal point of view we are dumping huge amounts of electricity and resources into a hole to accomplish nothing that couldn’t be accomplished with a database and a trusted third party at a billionth of the cost (or less).

The vast majority of transactions are speculation on what other people might pay for a bitcoin (i.e., a line on a spreadsheet). And even then, that speculation and trading often occurs on secondary markets which rely on trusted third parties - thus rendering the entire ordeal even more pointless.

bujkopl 7 hours ago | parent | next [-]

Better shoot down the sun then.

comradesmith 6 hours ago | parent | prev [-]

You’re right. I’ll setup the database. Everyone can trust me, honest!

kfrzcode 9 hours ago | parent | prev | next [-]

Meanwhile, Hedera remains carbon negative and 7 orders of magnitude more efficient than Bitcoin.

"Today, Hedera is performing the equivalent of over 10,000,000 transactions and 788,000 transactions for the same amount of energy it takes Bitcoin and Ethereum to process 1, respectively."

[0]: https://hedera.com/blog/going-carbon-negative-at-hedera-hash... [1]: https://discovery.ucl.ac.uk/id/eprint/10160701/

ShowalkKama 7 hours ago | parent | next [-]

I find extremely funny that I came across this spammy comment while sitting on a vulnerability in their code because my attempts of contacting them have been unsuccessful

kfrzcode 5 hours ago | parent [-]

Here you go! https://hedera.com/bug-bounty/

oofbey 5 hours ago | parent | prev | next [-]

Everything is orders of magnitude more efficient than bitcoin.

wslh 8 hours ago | parent | prev [-]

Databases either?

Zaskoda 9 hours ago | parent | prev [-]

What this site does not show is how much of the power used to maintain the network is waste power such as gas that's normally burned off at the well site or hydro electric that goes to waste.

Unlike AI, there's a strong incentive to find the cheapest electricity possible. Because that's what everyone else is doing. With Bitcoin, you now exactly what your costs are and what your yields are. There's a clear threshold, when power in an area becomes too expensive there's no reason left to mine.

AI, on the other hand, is a bet on the future - infinite gains. No matter how much power costs, it's worth it to keep using as much as possible. We can't know how much power AI uses. Unlike Bitcoin, there aren't any metrics from which to extrapolate. But we do know that AI uses more power than Bitcoin already. We just have no idea how much more.

bb88 8 hours ago | parent | next [-]

> We can't know how much power AI uses.

I call shenanigans on this statement. We can and most certainly can tell how much power AI is using. The upper bound is the total datacenter usage.

utopiah an hour ago | parent [-]

Out of curiosity, do you have an estimate on that?

oofbey 5 hours ago | parent | prev | next [-]

BTC enthusiasts have very creative arguments for why their currency isn’t the a complete disaster for the climate. Like pointing fingers.

fragmede 9 hours ago | parent | prev | next [-]

> gas that's normally burned off at the well site

Funny thing about that. Civilized governments put a stop to that, by fining flare-offs to make it economical to not do that.

nativeit 3 hours ago | parent | next [-]

Did they require the methane be captured? I thought flare-offs were done because the methane gas is something like 1000x worse than the CO2.

krupan 6 hours ago | parent | prev | next [-]

I hadn't heard of this. Do they just allow the gas to go into the atmosphere instead? I've always heard that's worse than burning it

UltraSane 4 hours ago | parent | prev | next [-]

flare-offs are much better than releasing raw methane into the atmosphere because methane is a much worse greenhouse gas than CO2

zoklet-enjoyer 8 hours ago | parent | prev [-]

They still do it in North Dakota

cyberax 8 hours ago | parent | prev [-]

> What this site does not show is how much of the power used to maintain the network is waste power such as gas that's normally burned off at the well site or hydro electric that goes to waste.

WTF? Hydro is rarely wasted because it's so dispatchable. Typically, it can only happen during high water seasons. Same for the gas power plants.

> Unlike AI, there's a strong incentive to find the cheapest electricity possible.

Like coal.

beenBoutIT 6 hours ago | parent [-]

An interesting point is that any nation state or corporation can focus resources on either AI or BTC, but not both at the same time. BTC is a sure bet in the long run while AI is potentially capable of delivering a faster ROI with no hard guarantees. As BTC FOMO hits every country on Earth it's likely that AI will take a 100+ year backseat to massive state sponsored BTC operations. It's not hard to imagine a situation where governments restrict AI HW manufacture and limit electricity for AI as a means of supporting the national BTC effort.

UltraSane 4 hours ago | parent [-]

"BTC is a sure bet in the long run "

7 transactions per second is NOT a sure bet.

childintime 2 hours ago | parent [-]

And don't discount the negative sentiment around bitcoin as the nest of types that deserve to be completely wrecked financially, because they add no value to society, as in a Ponzi scheme. It seems inevitable to me this scheme is going to end some day and nobody is going to give a damn. It'll be the "Good Riddance Coin", filled with negative sentiment.

OutOfHere 9 hours ago | parent | prev | next [-]

The answer to this problem is in the original Bitcoin whitepaper itself. It gives the formula for the required number of confirmations.

The Monero PoW community has had to deal with such nonsense, as have other smaller PoW coins.

With ε=1e-3, the expected number of 6 confirmations works only so long as the largest pool size does not exceed 12%. For a pool size of 30%, at least 24 confirmations should be required in Bitcoin, but 49 in Monero with its stricter ε=1e-6. You can see the table and the math at https://gist.github.com/impredicative/0907e1699f5ff97a9fed5d... and again it's all cleanly reproducible from the whitepaper. Anyone who is still requiring only 6 confirmations then will be setting themselves up for a risk of reversal.

rationalist 3 hours ago | parent | next [-]

Bitcoin has a block/confirmation approximately every 10 minutes, and Monero every 2 minutes.

So 240 minutes for Bitcoin, and 98 minutes for Monero.

So even though Monero is more strict, it is still "faster".

dmurray 7 hours ago | parent | prev [-]

TFA observes that it would be disruptive and socially difficult to move systems to expect requiring 24 confirmations, and expresses relief that other responses are possible.

Perhaps this is more suitable as a response over months or years to a long-term shift in the composition of Bitcoin miners than as a short-term measure when it appears that someone has suddenly acquired 30% of mining capacity today.

OutOfHere 7 hours ago | parent [-]

Yes: "Not aligning with reality is disruptive." Some lessons have to be learned the hard way if they're not learned the soft way. The problem is not reality.

Stevvo 9 hours ago | parent | prev | next [-]

Before the AI bubble, Bitmain was only worth ~$1 billion. Now they are worth ~15, because they make chips for AI also. Either way, you could buy bitmain for the budget mentioned in the attack if it were for sale. Or bitmain could pull off the attack, if indeed they do "control ... all the major mining pools" as the article alleges.

But who ultimately controls Bitmain? The Chinese state.

So, by extension, bitcoin is controlled by the CCP.

What a shitshow. Crypto needs to move on from bitcoin already, pick something better... anything better. There are so many options, and bitcoin is the worst of all of them.

TheAmazingRace 7 hours ago | parent | next [-]

Too many people have a vested interest in keeping Bitcoin going for as long as possible, sadly. It's going to take a massive black swan of some kind to shake their faith.

Heck, they can embed CSAM into the Bitcoin blockchain and that won't stop anyone from using it, because above all else, line must go up.

beenBoutIT 6 hours ago | parent | prev [-]

Like it or not in the end it will just be BTC. China will stop exporting Bitcoin mining tech. Nation States will dump money into proprietary BTC mining tech and keep it to themselves just like military tech. The US needs to see this reality and focus on domestic BTC mining tech like the future depends on it.

hackernudes 3 hours ago | parent | next [-]

It comes down to semiconductor manufacturing, not ASIC design. Taiwan, Korea, USA are still on top.

oblio 2 hours ago | parent | prev [-]

LOL. The Sam Altman plan. Or the US could just put Bitcoin on the Entities List and forbid any US citizen and any US owned entity from investing or trading Bitcoin and Bitcoin derived financial instruments, probably force 25% or more of the Bitcoin money to pull out, crater Bitcoin value, and not perpetuate this atrocity against nature and humanity.

"Democratizing finance" my a**.

will5421 9 hours ago | parent | prev | next [-]

Is it illegal to attack cryptocurrency?

qgin 9 hours ago | parent | next [-]

If crypto needs legal protection from attacks, I think that would invalidate most of its value proposition.

dboreham 9 hours ago | parent [-]

Definitely reduces the cost of consensus though.

fancyfredbot 8 hours ago | parent | prev | next [-]

You will probably end up in court. But you might not get convicted.

Shakeeb Ahmed was convicted of wire fraud for exploiting a smart contract bug.

Avi Eisenberg was also convicted for exploiting a smart contract bug, but he had his conviction overturned on appeal.

The Peraire-Bueno brothers were in court for exploiting a bug in the MEV mechanism but it ended in a mis-trial so we're going to have to wait to find out.

Not legal advice ;-)

OJFord 9 hours ago | parent | prev | next [-]

Depending on the currency, it's celebrated. (Code is law, etc.)

wmf 9 hours ago | parent | prev | next [-]

The attack described in this article might violate CFTC market manipulation regulations.

anonym29 9 hours ago | parent | prev [-]

IANAL, but from my understanding, the primary law used to prosecute hacking is the CFAA's broad "without authorization" and "exceeding authorized access" clauses.

That said, authorization implies an entity with ownership rights granting some kind of limited license to others to interact with the owner's property.

For a permissionless decentralized network with no owner, where the attack is against the consensus of which chain is valid, I'd have a hard time arguing that "authorization" as a concept is even applicable or relevant.

As wmf suggested, market manipulation laws may still apply, but I'm not sure traditional CFAA "without authorization" / "exceeding authorized access" hacking charges could apply, though I'd be willing to bet a prosecutor could make a case for wire fraud - a scheme to defraud using interstate communications.

UltraSane 4 hours ago | parent | prev | next [-]

Bitcoin is the least efficient technology ever created. There is no limit to how much electricity it can consume just to handle 7 transactions per second. No matter HOW much electricity it uses this value will never increase.

bujkopl 7 hours ago | parent | prev [-]

This article is FUD. No one is spending $30B+ for an attack that gasp extends the required confirmations to a few hours until a re-org can be achieved and accounts settled.

In fact, wiping out the derivative markets would be seen as a net-postive by most individual hodlers.

nativeit 3 hours ago | parent | next [-]

You forgot to do your own research and read the article.

comradesmith 6 hours ago | parent | prev [-]

I believe the article reached the same conclusion you did