upvote
Computer Science professor at NYU Courant came up with a cost estimate of 12 million USD per key, based on Bitcoin hash rate

https://news.ycombinator.com/item?id=50764960

reply
Why would you compare the cost of a single purpose hash with extremely optimized dedicated ASICs with an entirely different mathematical operation that requires generalized hardware?
reply
Bitcoin hash cost is useful as a practical lower bound.

It’s possible that someone could find a way to brute force search something cryptographic and do it more efficiently than the bitcoin miners, but it’s exceedingly unlikely.

reply
The better question is why is he assuming that the computational cost of computing a sha256 block and a ecc signature are equivalent, when in fact you're looking at orders of magnitude difference.
reply
So the assumptions would be:

If an ASIC is developed, for a specific 256 eliptic algorithm. If the attack is repeatable enough to warrant the investment If the ASIC is as efficient as the state of the art SHA256 ones

Then the cost per crack would be roughly 12M?

My guess would be the weakest link is the 3rd assumption, SHA256 has bee widely studied as a test subect and the ASICs have had years of optimization.

reply
Which despite how it sounds, is a feasible expense for some operations.
reply
If I'm not mistaken, that would theoretically make it profitable to break any Bitcoin wallet with at least 12 million USD in it

Though the problem would then become, how do you convert that Bitcoin quickly enough, before the rest of the network finds out (at which point I assume people would lose trust in the entire currency and your loot wouldn't be worth much anymore)?

reply
To prevent loss of trust, they could add keys (or limit size of wallets) to always make it uneconomic.
reply
Compute becomes cheaper and more powerful each year, so this would be only a temporary solution

Obviously the underlying Bitcoin network needs to be upgraded sooner or later

reply
You can short bitcoin on traditional finance exchanges (futures, ETFs) and profit from the panic selling that will follow.
reply
Bitcoin wallets expose their public keys only when the coins are spent. It'd need to be broken in less than 10 minutes on average. That's probably still out of reach.
reply
I don't think that's a particularly hard issue. If you can parallelize the operation, and you rent the compute, you can spread out the compute over a huge amount of servers and consume your credits as quickly as you need, although you'll need a lot of credit and the vendor needs a lot of unused compute.
reply
If there indeed is a break, people that do big transactions will contact one miner directly and let them privately mine it. This will still allow the attacker to try to find the private key and do a double spend but then they have to outmine the network as well. Unless the attacker can find the key very quickly and also get lucky finding 2 more blocks, the Bitcoin network would continue the chain on the original transaction.

What would be scary for Bitcoin is an attack that finds private keys in seconds after a large pre-computation.

reply
> Bitcoin wallets expose their public keys only when the coins are spent.

Really? How do they receive coins?

reply
The wallet address is a hash of the public key, but the public key is not "publicly visible" until you sign something with it

The public key is used when you send Bitcoin, but once you use it once, it remains publicly visible

The solution to that would be if with every transaction, you divert the remaining Bitcoin to a brand new wallet

reply
Which is standard practice for a long time now.
reply
There's a handy list of the richest Bitcoin wallets available on Google, with public keys and everything

#1 seems to hold 12 billion USD, quite the loot for a pirate

reply
The issue though is that bitcoin (and essentially all currencies, particularly crypto)'s value is based almost entirely on trust. A theft that appears to be a break of crypto would almost certainly devalue the currency so quickly it would negate your ability to liquidate those funds you just stole.
reply
Perhaps for follow up attacks. The first attack will have plenty of time. It will take time for the broader public to sus out a crypto break theft vs good old fashion real world stealing of a key
reply
On the other hand, $12m seems like a quite small barrier to wipe out $1T of market cap, if someone wanted to cause some chaos. Back of the napkin map says there are 2m individual people with that much net worth. A billionaire could do that and not even notice.
reply
It seems that person's estimate was off. He was assuming that the computational cost of sha256 used in bitcoin miners and the cost of computing ecc 256 were equivalent, but ecc is somewhere abouts 2-3 orders of magnitude more expensive.
reply
Well, if someone goes short against Bitcoin first and then does the attack to wipe it's value, then it can be economically profitable
reply
I've never understood this argument - if the attacker has the power to destroy confidnce and send the price down, they can benefit from a wildly levered short position, no? Instead of stealing and selling?
reply
> if the attacker has the power to destroy confidnce and send the price down, they can benefit from a wildly levered short position, no? Instead of stealing and selling?

Well... no? They can benefit from a wildly levered short position to the extent that it's possible for them to take a short position, historically difficult in cryptocurrency. But assuming there's no problem there, they're still not going to do that instead of stealing and selling. Stealing and selling is the way you make good on the short; you have to do both.

reply
It's not difficult to go short against Bitcoin actually, there are plenty of diversified solutions:

- Futures

- Good ol' borrow against collateral

- Bitcoin ETFs

- Polymarket/Kalshi

You don't need to steal and sell to make good on the short actually. A short works by borrowing the asset (Bitcoin) and selling it for cash. Later you have to give back that same asset.

Basically, if you borrow 1 Bitcoin and sell it at 50K USD, then run the exploit to wipe out investors trust, and you subsequently buy back 1 Bitcoin at 10$ to repay your lender, you just made a tidy profit.

reply
Hello I'd like to borrow 12 billion USD to be repaid in bitcoin, no need to ask where I plan to get it.

The crazy thing about cryptobros is that there is a non-zero chance someone would bite.

reply
I am sure that multiple parties have forks ready to go for Satoshi day. Emails that will go out automatically proposing a fork if/when those wallets get touched.
reply
The precomputation---~2^170 operations---would be far more costly than solving the discrete logarithm the normal way.
reply
Once, right? But if you do the precomputation, then you can solve many discrete logarithms using the same precomputation data. So if you want to attack everybody, then it might be worth it, because you're going to amortize the precomputation over a large number of attackees.
reply
The other comment says it's around 2^170, which is still infeasible even with compute on the scale of all GPUs on the planet. For reference, Anthropic recently stated that their frontier models use around 1e25 operations, while 2^170 is around 1e51 precomputations.
reply
Even the Bitcoin network hasn't reached 2^128 in its entire lifetime. Doing that even just once is already out of reach. 2^170? That's 2^128 times 2^52, over 4 trillion times more than 2^128, which is widely considered high security for hash collisions and ECC breakage already (symmetric key search is a little different: https://loup-vaillant.fr/tutorials/128-bits-of-security).

That's flat out impossible.

reply
"Once, right?" - Umm, 2^170 computations is an incredibly absurd number. Doing 2^140 _ideal_ calculations requires the full yearly energy output of the Sun. Our calculations are very far from ideal, and 2^140 is very far from 2^170. The Sun still seems to shine so nobody is trying that right now.

Source: https://eprint.iacr.org/2013/635.pdf

reply
> be far more costly

Roughly 4 trillion times more costly, in case anyone is wondering.

reply
So, worth it if you're breaking 5 trillion keys...
reply
Since a key can be any prime integer number (base 10) between (base 2) 2^2048 to 2^2049-1,

2^2048 = 3.23 × 10^616 =[32317006071311007300714876688669951960444102669715484032130345427524655138867890893197201411522913463688717960921898019494119559150490921095088152386448283120630877367300996091750197750389652106796057638384067568276792218642619756161838094338476170470581645852036305042887575891541065808607552399123930385521914333389668342420684974786564569494856176035326322058077805659331026192708460314150258592864177116725943603718461857357598351152301645904403697613233287231227125684710820209725157101726931323469678542580656697935045997268352998638215525166389437335543602135433229604645318478604952148193555853611059596230656]

2^2049-1 = 6.46 × 10^616 so all the primes [base 10] that can be found in 3.23x10^616 range, making a paltry number like 5x10^12 almost totally insignificantly small.

Any attempt to precalculate 5 trillion key would be a waste of a huge amount of resourses.

[base 10 values are of course approximate]

reply
2^170 computations is an incredibly absurd number. Doing 2^140 _ideal_ calculations requires the full yearly energy output of the Sun. Our calculations are very far from ideal, and 2^140 is very far from 2^170. The Sun still seems to shine so nobody is trying that right now.

Source: https://eprint.iacr.org/2013/635.pdf

reply
Are there 5 trillion keys worth breaking? Maybe we don't even have 5 trillion keys in total.
reply
Their method requires a pre-computed lookup table, that is 2^90 bits. That's roughly 5000 times more storage than all the hard drives and nand flash ever manufactured by humanity.

No, it's actually out of reach.

reply
is it practical for DNA storage or would the write itself be prohibitive?
reply
>How much computation are we talking about here. With the amount of raw compute being used for AI these days, if anthropic diverted all of their available GPUs to this task for a couple hours, are we getting in the right ballpark?

Yeah same question, although it wasn't clear to me if the impracticality was purely from amount of computation. (I know nothing about these algorithms - maybe it being "pre-computation" matters?)

But yeah that's not very re-assuring. Who care's if it's impractical if at least 1 entity can do it?

reply
It matters if 1 entity could do 1 key every 18 months or not...
reply
If the I trust the math of the next best LLM: Best case would be around 100M USD (more probably multiply a factor of 20). I wonder, /if we could derive the target price of BTC through that calculation.
reply
Well, it matters as long as you aren't the most inviting target this 18 months...
reply
The tallest tree is the one that gets cut down.
reply
Varies by location, here they get saved for fire watch: https://en.wikipedia.org/wiki/Gloucester_Tree
reply
yeah, it's just that we used to talk 1000+ years with all the compute in the world
reply
I would be interested in the space requirements. Usually fancy algorithms with decent speed up require huge amounts of directly accessable storage which does not exist and access time gets worse the bigger they become. Note: I'm not limited by the lack of knowledge of these algorithms in my guesswork. I don't know if large precompute equals large storage requirements.
reply
My joke is that crypto was encouraged so someone else would design the hardware needed for actual cryptography attacks (to an adequately rich attacker).
reply
I might argue that AI inference could be lowering the risk. There is so much demand for compute today, the compute needed to break crypto might be harder to come by.
reply
Inference doesn't happen equally across the day. Just like websites have a daily heartbeat curve of usage, so do inference data centers.

Same thing with AWS. The reason AWS spot instances are cheap is because they would otherwise go unused and are still an expense to have on the balance sheet.

There will be some way Anthropic, OpenAI, etc will find a way to repurpose GPUs for their low utilization times of day.

reply
Presumably frontier labs would use excess capacity in off peak times for training?
reply
It's unclear whether GPUs are beneficial for this task.

Interestingly they may only be beneficial as the substrate for a thinking model that can produce the break.

reply
I’m dumb.

But isn’t the math pretty much in the post? For P256, isn’t it… (2^256)^.333333, or from e77 to e25… IDK, like getting 256bit down to ~85bit.

IDK what nations are capable of, but that’s still hundreds of quadrillions or several quintillion guesses a second to do it in less than a human lifespan as brute force. I assume there must be some shortcut math.

reply
"256 down to ~85" indicates type confusion. 256 bit in the context of 256bit ecc is not the same as 256bit symmetric crypto equivalence. 256bit ecc is taken to be more like ~~128bit symmetric key security (maybe more like 100, somewhere in that ballpark of estimated equivalence). So ~85bit would be an improvement, and a meaningfully large one, but not a log-large improvement like 256 -> 85 would be.

(The point above is not that ~85bit is secure, only that you can't compare 256bit ecc with 85bit symmetric-key-equivalent security; 256-bit ecc never had 256-bit symmetric-key-equivalent-security).

reply
Still, if I learned of a feasible 2^85 attack today, I would instantly deprecate X25519 and Ed25519 in my crypto library, and replace them by something else before the year is over. Likely Curve448/Ed448 in the short term, so the only thing I have to change in my API is the size of a couple buffers. But if the quantum cryptocalypse is as close as some say, I'll likely have to go PQ before next summer.

Dammit, I wanted to be done. Oh well.

reply
beyond the rho sqrt, these cryptosystems have lower resistance against multi-target attacks than idealized symmetric constructions. and then there are the constant factors, memory and communications costs... it's just quite difficult to compare the security except on an order of magnitude basis.
reply
That’s fair! Yes. It’s about 1/2 as secure for symmetric to asymmetric here. You’re right.

IDK if that means the equivalent to 43bits in which case it would be panic time. Or there is more to it than that. But yes, I switched to symmetric combinations.

reply
85bit is very much doable by a nation state. Bitcoin does ~ 2^70 hashes/second. So 2^85 hashes (more expensive than 2^85 bit operations) is achieved in 9 hours approximately.
reply
And the implication for Bitcoin would be that it would cost over a billion dollars to hack a wallet. 2^85 operations in 10 minutes is just not presently feasible, so the mempool would be safe from double-spend attacks. Old Satoshi-era 50 BTC wallets would be safe via economics. Wallets that had over a billion dollars would theoretically be vulnerable.

Of course, that assumes there isn't still a pretty large (but non-galactic) constant factor/precomputation storage cost that needs to be bolted onto it, which makes the attack worse.

That would still be getting into the regime where Bitcoin would really need to get off of secp256k1 immediately, since any subsequent breakthrough would very likely be fatal.

reply
Where do you get that billion from?

My numbers: * Hash rate: 974 EH/s, so 2^85 hashes take about 11.0 hours. * Mining revenue: $26.6 million per day, or about $12.2 million over that period.

Assuming that miners don't operate at a massive loss, that means the cost to compute 2^85 hashes is <$12 million. So I wouldn't count on secp256k1-cracking in 2^85 operations costing "over a billion dollars".

reply
Somewhat confusingly P-256 targets 128 bit security.
reply