NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲How to hard-fork to save most funds in a quantum emergency (2024) (ethresear.ch)
Animats 1 days ago [-]
> Revert all blocks after the first block where it’s clear that large-scale theft is happening

Ethereum did that once, in its early days, because V's own DAO screwed up. A retroactive transaction cancellation probably wouldn't fly now, because the funds involved would be elsewhere, beyond the reach of that blockchain.

Worse, there are lots of cryptocurrencies which depend on the Ethereum blockchain. They'd get reverted, too. And they would sue.

Probably the best you can do is try to turn the whole thing off, freezing everything. Then litigate for years.

RealityVoid 1 days ago [-]
There is no "turning the whole thing off", that's the thing with the blockchain, it's permissionless. The disagreeing parties can always continue to run their own chain as long as people believe in it (Remember Ethereum Classic?).

And regardless, I think a hard fork where the consensus of the network corrects some catastrophic failure is a good thing. Cryptocurrency is a game of trust and belief as much (or more) than it is one of cryptography.

mminer237 1 days ago [-]
I think the issue would be all the transactions in the meantime. People exchange tens of billions of dollars of Bitcoin back and forth each day. If even a small percentage of that gets reversed, all those people who unknowingly bought Bitcoins at the wrong time will be out 100% of their purchased money.
jstanley 16 hours ago [-]
Versus the alternative where the quantum attacker gets everything and everyone is out 100% of their money?
rwmj 15 hours ago [-]
The attacker doesn't get anything, because his gains rapidly become worthless. Nobody can declare "I own 100% of bitcoin, I demand you pay me!" because at that point bitcoin is worth nothing, and everyone realises why regular banking works the way it does.
tirant 14 hours ago [-]
The best case scenario for the attacker is actually pre-public knowledge of good enough quantum computers. So transfer of funds happens at a small enough scale that the value of the cryptocurrency is not affected and suspicious falls on standard wallet hacking.

We might be in that scenario already or not. We might never know until it’s already too late.

imthatsteve 3 hours ago [-]
If were in the scenario then we find out the day they announce the fork/migration and the "wallet hacking" intensifies.
motionlessveloc 19 hours ago [-]
TFA is for Ethereum, not Bitcoin. (Although the problem is similar.)
lazide 1 days ago [-]
If you can hard fork, you can turn it off.

If you can’t turn it off - you really can’t hard fork either.

jMyles 18 hours ago [-]
> If you can’t turn it off - you really can’t hard fork either.

I don't understand what you're trying to say here - it's not immediately obvious what relationship you're trying to illuminate between an off-switch and a hard fork, but it's strictly untrue that hard forks aren't possible on chains without an off-switch.

The major hard forks of note (the bitcoin overflow fix, the DAO reversion, and essentially every ethereum upgrade) have all happened unrelated to an off switch and on chains which do not provide for such an eventuality.

In fact, I can't immediately think of a hard fork that coincided with the use of an off switch (like the Solana mechanism).

lazide 9 hours ago [-]
If you lack the ability - community co-ordination wise, or direct control - to do a hard fork, you can’t really do anything eh?

If you do have that, and you need a hard shutoff, you can add it. Even to the point of just bricking “everyone” involved in the chain permanently. Assuming whatever organization/collective agrees that it is needed.

If you have a hard shutoff mechanism, you should certainly have the leverage to be able to hard fork too, eh? Since you can just shut the whole thing off if people don’t go along with it.

I’m including direct dependencies on single-party-controlled oracles, as such potential shutoff points. (Oops, did I forget to never talk about those?)

Hence the relationship.

Ethereum clearly has that technical ability, as they hard fork all the time. It’s how they do upgrades.

imthatsteve 3 hours ago [-]
This makes me think you dont understand the nature of the technology. This tech was built to decentralise banking so that one single individual or collective/group/nation cant manipulate prices, inflate currency and debank or ban or shut off currency for specific individuals or everyone all at once. Its without hard physical cash that you can confiscate at the border. If you have internet/radio access or you can send text via pigeon then you can send crypto and thats why and how it was designed. If you want to fork it then you get everyone playing the current game to play the new one as long as you convince everyone to change the rules then everone plays by the new rules. Like dropping the gold standard but digitally.
kyle_atHotmailc 2 hours ago [-]
A LOT of people on HN think they understand crypto without understanding crypto at all so it's hard having a real conversation.
MarloweG 1 days ago [-]
[flagged]
lazide 23 hours ago [-]
Quite a bit of technical knowledge, actually.
aeon_ai 23 hours ago [-]
Doesn’t seem like you have much wisdom then.
lazide 22 hours ago [-]
[flagged]
MrDrMcCoy 21 hours ago [-]
Yeah, "force" is not something they have access to. The whole point of decentralized cryptocurrency is that nobody has that kind of control. Hard forks are entirely dependent on convincing people why it's the thing people should switch to.
smallerize 22 hours ago [-]
Hard fork does not mean forcing. It only means incompatible. Miners can always choose which fork to mine on. They just might not have anyone to trade with.
_heimdall 1 days ago [-]
> I think a hard fork where the consensus of the network corrects some catastrophic failure is a good thing

That's keep and of the point though, even those chasing permissionless money and irreversible smart contracts realized pretty quickly that such a thing isn't practical.

I buy the principles as much as anyone, it just never works in the real world. People will want a central authority and repercussions of some kind when they are robbed or cheated, and people will be very unwilling to value a system that can't provide those when the time comes.

cryptoegorophy 1 days ago [-]
But at the same time if some new government decides that you are a threat to society and freezes your bank accounts and takes all your money then you want crypto which no one can block or take from you. Exchanges are not crypto by the way.
_heimdall 23 hours ago [-]
> Exchanges are not crypto by the way.

That's an odd argument to make, its like saying banks aren't money. Of course they aren't, banks store your money and crypto exchanges store your crypto.

To your first point, the OFAC sanctions wallet addresses at which point its illegal for a US citizen to transact with that address. Try to send or receive from a known Lazerus Group wallet and see how that turns out.

idiotsecant 22 hours ago [-]
The point is that if the bank is storing 'your' crypto you don't own it.
_heimdall 14 hours ago [-]
That's different than saying exchanges aren't crypto, and technically you do still own it you just are at risk of a third party when you don't self custody.
idiotsecant 13 hours ago [-]
It's common to say that exchanges aren't crypto and it's true. Crypto is trustless. That's the whole point. Trusting someone to hold your truestless asset eliminates the central value of the whole proposition.
_heimdall 12 hours ago [-]
> exchanges aren't crypto and it's true

Its true but a useless statement. Banks aren't money. Acorns aren't oak trees.

The argument seems to imply that crypt occurrences are a vibe rather than a specific technology. They don't have to be trustless, and really they aren't as you still trust the miners (for bitcoin-like systems).

RealityVoid 1 days ago [-]
We know by now that they can plug off ramps and that makes dealing with crypto unfeasible. Sure, you can transfer tokens around, but in the end, physical reality is controlled by people with guns, and if you can't influence physical reality with your tokens, what good are they? They would only offer some means for creating a sub-economy in your own sub-culture of rebels, but the underlying society would still be controlled by governments.

I believe crypto is useful, but it is only _marginally_ useful for dissent against states.

derac 1 days ago [-]
I agree, but isn't it ironic that the major selling point of blockchain tech is being "trustless"?
RealityVoid 1 days ago [-]
It's "trustless" in that it builds consensus over the mass of the participants. So Joe schmoe can't screw you over because of the rules set up by the network, but if you are such a threat that you are breaking the network social consensus, the decision mass cal always fight you, and, by design, win.

I am kind of a "crypto bro" or what you'd stamp as a "true believer" in that I see it as a voting and participatory proxy. I think the ideas espoused are sane and you could build useful systems with it.

I am though under no illusion that in the end, these systems are governed by people and they should answer to the needs of the people. I just see this a possible mechanism to achieve better consensus.

wat10000 22 hours ago [-]
A big part of "trustless" is building the incentives so that the participants will want to keep the network operating properly. With cryptocurrency, it's typically set up so that contributing to the consensus requires having skin in the game (owning mining infrastructure for proof-of-work systems, owning currency in proof-of-stake systems) so the participants are incentivized to maintain the value of the network.
Nursie 18 hours ago [-]
> but if you are such a threat that you are breaking the network social consensus, the decision mass cal always fight you, and, by design, win.

Firstly - This is not the vision sold by the noisy crypto bros, their system is boosted as being entirely trustless and outside of such fripperies of social pressure or control by elites, regardless of who you are. What you are describing there is basically a government - a mass of people who, combined, control the currency regardless of the will of the individual.

Secondly - This is exactly one of my criticisms of crypto people over god knows how many years now. "It's run by the laws of mathematics! Immutable!" they claim.

No, it's run on consensus. And not your consensus, but the consensus of small groups of powerful actors in the ecosystem, mostly miners and exchanges.

jMyles 18 hours ago [-]
The strawman of the "noisy crypto bro" notwithstanding,

> And not your consensus, but the consensus of small groups of powerful actors in the ecosystem, mostly miners

TFA is expressly ethereum specific, so it seems to me that miners are off-topic.

Nursie 17 hours ago [-]
> TFA is expressly ethereum specific, so it seems to me that miners are off-topic.

You still have validators, and they are selected by stake size (among other criteria). Though I will admit I don't know the relative populations of validators in ETH vs miners in BTC, it's effectively the same deal - it is their consensus and the consensus of major financial players like the exchanges that matters, not the individual participant.

danuker 1 days ago [-]
Indeed! Ultimately a lot of people trust that the software does what the team says, and that there aren't backdoors or such.
kmeisthax 1 days ago [-]
I can't wait to trade NotYourKeysNotYourCashCoin
maybewhenthesun 1 days ago [-]
It's always so funny to me that crypto bros speak with disdain about 'fiat' currency. As if all money systems aren't a game of trust.
bluebarbet 1 days ago [-]
Perhaps a distinction to be made here between "trust" and "faith". Any paper money or cryptocurrency is certainly a game of the latter.
DennisP 1 days ago [-]
The DAO fix wasn't actually a revert, it was an irregular state change. The funds were temporarily stuck in the contract so they just moved them to their rightful owners. All other transactions since the hack stayed in place.

But in case of a quantum/AI hack, those other cryptocurrencies depending on Ethereum would get hit just as badly as anyone else. I'm not convinced that there would be a problem with fixing that.

There's no central mechanism by which the chain could be frozen.

phire 1 days ago [-]
Yeah, the DAO "fix" was only viable because the funds were time-locked and they could do it without reverting any transactions.

It’s everyone’s goto example of a rollback, but it wasn’t. They simply locked the attacker’s contract, then later created a new transaction to move the funds back to the DAO.

I’ve seen smaller cryptocurrencies that attempt to rollback transactions to fix hacks, and it’s always a huge mess. It sounds like a nice clean solution, but in practice the illegitimate funds almost immediately enter the wallets of major exchanges and are quickly handed out to regular users of those exchanges, who use them all over the network.

By the time a decision for an emergency hard fork can be made, it’s too late. A huge number of perfectly legitimate transactions and wallets are contaminated.

About the only sane option (other than nothing) is to create new coins out of thin air and use them to refund wallets you are sure were hacked (and maybe lock wallets you are 100% sure are still attacker controlled). Sure, the money printing will cause inflation, but inflation is potentially better than nothing, and a whole lot better than reverting a buck of legitimate transactions.

fishgoesblub 1 days ago [-]
Sue? Given that the community would have to agree to the terms of the hardfork, and switch to the updated daemons, would these companies sue each and every individual node operator who agrees to move on with the new chain?
_heimdall 1 days ago [-]
People will follow, especially when scared. The community has their money tied up in the network, if the well respected creator of the network says it was compromised and we need to roll back they will fall in line.

Its no different than the public having to agree, or at least accept, giving up their freedoms when those in charge declare a pandemic and say its necessary.

1 days ago [-]
Onavo 1 days ago [-]
Most community operators won't give a shit and just follow vitalik. It's "decentralized" in the same way most open source projects ran by Big Tech are decentralized; forking is only viable when you have resources or mindshare or political capital to match the original author see e.g. Android

For crypto bros, "code is law" is only true when it's convenient and in their interest.

tancop 14 hours ago [-]
The "code is law" people are a small minority of bitcoiners. Everyone in the Ethereum space understands that community is the actual important thing and the code needs to follow it.

If users collectively decide they want to fix security at the cost of inflation (adding back tokens to victim wallets) or losing history (rollback) then it will happen, and if they don't the network will follow the majority.

Client developers can agree on a solution and write it into their code, but if users don't want it they do a hard fork like Ethereum Classic.

Onavo 8 hours ago [-]
> Client developers can agree on a solution

My point is the downstream developers have a lot less agency than it seems. Hard forking ethereum is about at viable as hardforking Android. If you are not say Binance or Goldman Sachs, it's simply not viable. This is why crypto seems like a scam to so many people. Somebody has to underwrite the mindshare and risk.

terhechte 1 days ago [-]
Or, make the hard fork now, on the current block with some weeks of warning.
TimJRobinson 1 days ago [-]
Ethereum hard forks all the time and downstream dependencies update to match. It wouldn't be that hard to coordinate to get them all upgraded.
popol12 19 hours ago [-]
Small correction: The DAO was not Vitalik's Though he indeed had shares, as most people in the space did back in the days
echelon 1 days ago [-]
> A retroactive transaction cancellation [...]

What good does reverting do if someone else has your key?

You can't prove who the original owner was. It could be anyone.

wcoenen 1 days ago [-]
> You can't prove who the original owner was

The Vitalik post is exactly about that: how to prove who the original owner was. Apparently it's possible if the private key was derived with the BIP-32 scheme. It does assume that the involved hash algorithms have not been broken.

protocolture 1 days ago [-]
>V's own DAO screwed up

I don't recall Vitalik being part of Slock It's The DAO. Got any references?

Edit: Looks like I copped a downvote here. Let me contextualise. I put 10 eth into The DAO. (50 bucks or so at the time) I mined for a pool that voted for fund restoration, however I had strong sympathies for the opposing side. I quite enjoyed the Ethereum Classic community however they were never quite able to attract the same talent as Ethereum proper.

The DAO will be remembered for the hack, but I will always remember it for both being developed by Slock IT and then rejecting Slock IT's proposal for fund withdrawal as completely lacking detail.

My memory of this, and every other project at the time, was they wanted to cosy up to Vitalik as much as possible, but he did a lot of work to try and maintain neutrality. I think he probably committed some code to the Ethereum Foundations DAO project, but Slock IT built their own based on it and paid for the security verification.

AnotherGoodName 1 days ago [-]
The part i don’t fundamentally get and i’m not trying to argue against the post, this is an ask for my own understanding;

As stated in the article after a transaction others have your public key. If anyone tells you the public key is hashed that’s only for a coin at rest. When you make a transaction your public key is given as-is. Others likely have your public key today.

If a break occurs there’s an easy path to generate the private key given a public key. That means others now have everything you have that proves you are you right?

In reasonably simple terms; if crypto is broken at the time of the fork don’t both the real users and the thief’s have the same proof?

vagab0nd 1 days ago [-]
Most crypto wallets use a "master key" to generate the private keys actually used on chain. Think the seed phrases. He's proposing that once the private keys are compromised, you roll back the chain to revert the attack, disable the standard transaction types, and only allow using the master keys since they are never exposed.
gruntled-worker 22 hours ago [-]
Let's say we have a mathpocalypse emergency. Why is proving "I'm the only one who has a X key" safer than public-key cryptography when X=="master"?

If master is a N-meta-key, does that mean we can only entertain (N-1)-degree mathpocalypses?

AgentME 20 hours ago [-]
Hash-based signatures schemes and STARK zero-knowledge proofs (which only rely on the security of hashing) are still believed to be secure.
gruntled-worker 20 hours ago [-]
I do agree that breaking one-way functions would be a higher-degree mathpocalypse than "merely" breaking factorization and discrete log. It's not unthinkable in 2026 though.
guhcampos 23 hours ago [-]
But how do you know how far back you'd need to roll?

I'm basically ignorant of crypto currency tech, but I had the impression that the whole chain - the whole community, or a majority of it - would need to agree of what specific transaction would be the cutover?

How can you know if that particular transaction was legitimate or not? Or the other millions before it?

red369 23 hours ago [-]
Does everyone keep those seed phrases/master keys?

I've only done a few very small Bitcoin transactions to test it out, and I definitely didn't keep those for the wallets I now have (small amounts of) money in. I thought the private keys were all that was needed to own the wallet. Do other currencies work differently?

10111001 1 days ago [-]
> Most crypto wallets use a "master key" to generate the private keys actually used on chain. Think the seed phrases. He's proposing that once the private keys are compromised, you roll back the chain to revert the attack, disable the standard transaction types, and only allow using the master keys since they are never exposed.

How do you do that if the master keys are never used on the chain?

vagab0nd 1 days ago [-]
You add a new transaction type that uses a zero knowledge proof to prove that you possess a master key that generates the private key, which corresponds to the public key.

That said, with the latest development, I'm not even sure whether the STARK mentioned in the post is safe.

Kubuxu 1 days ago [-]
STARKs at the root are unaffected by QC or EC breaks because they rely on hashing as their underlying primitive. Although that is also an issue, the proofs are large and scale with the size of the statement. Many common deployments use another proving system to produce a succinct proof from the STARK. For example, RISC0 uses recursive aggregation of STARK proofs followed by a STARK verifier in Groth16, producing a small Groth16 proof (~200KiB -> 256B).
numpad0 1 days ago [-]
If I'm reading this right, their pubkeys are usually derived by f_hash(g(h(j(k(l(master_key))), and it's trivial to perform key succession by publishing {"old_pub":"$PUBKEY", "proof":"$(g(h...l(master_key))", "new_pub":"$PQ_PUBKEY"}, including in the message the last intermediate key that produces the final pubkey. The message can then be verified and vetted by the majority by evaluating (old_pub == f_hash(proof)), confirming that the last intermediate key provided in fact produces the old pubkey. This relies on the hash functions f_hash, g, h, ..., l to be intact despite the breakthrough, but as long as they are, it can even be repeated until the hashing rounds are exhausted and key bearer would have to reveal the actual master_key to do this. And apparently they think those hash functions should be plenty quantum proof.
olaird25 1 days ago [-]
It is not trivial.

What you described doesn't bind to new_pub so someone could see your transaction and then frontrun it with a replaced new_pub.

That's why you need a STARK to prove that you know $(g(h...l(master_key)) without revealing it, and this STARK has to bind new_pub.

gwillen 18 hours ago [-]
You don't totally need a STARK... you can just make a blinded commitment to new_pub and master_key, bury it deep in the chain, and then reveal it once it's sufficiently buried that it can't be reversed. (This does have the disadvantage that you reveal master_key at the end, though, so you can only do it once -- you have to sweep everything at that point.)
doublepg23 1 days ago [-]
Yes, this happened ~recently with the bad RNG on Coldcard hardware wallets.
jMyles 18 hours ago [-]
You've got your layers mixed up a bit.

The Coldcard hardware wallets had insufficient entropy in their BIP-32 hierarchical derivation material, which led to collision attacks on their keys.

Quantum or Shor-like reversal of a wallet secret does not reveal the BIP-32 derivation material or seed phrase, and these can be used to claim any wallets derived from them, to the exclusion of anyone not possessing the seed phrase and derivation material.

jMyles 18 hours ago [-]
> In reasonably simple terms; if crypto is broken at the time of the fork don’t both the real users and the thief’s have the same proof?

No.

Others have pointed to the upcoming STARK commitment which is a straightforward fix to this.

But even before this lands, wallets which implement the hierarchical determinism and seed phrase in BIP-32/39 can prove the provenance of that determination even if an attacker has the derived secrets, so long as they are the only holder of the seed phrase and derivation material.

ChrisArchitect 1 days ago [-]
Related:

Four wallets dormant for 17 years move 50 BTC each after NSA quantum alert

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

a_ba 16 hours ago [-]
Can someone explain to me why crypto in particular is getting a pounding by the prospect of encryption being at risk? I would assume that all the banking sector would suffer the same problem?
ratorx 16 hours ago [-]
Recourse under the legal system? Actual banks hold legal liability. Crypto is decentralised by nature and entirely reliant on cryptographic hardness to ensure the blockchain doesn’t contain fraudulent entries.
mattlondon 1 days ago [-]
Technically yeah fine whatever, but the value of crypto is basically just speculation.

So you might still.end up with 1000ETH in your wallet before and after, but the fiat value will be destroyed as soon as people lose faith (which will happen really fast if there is a hack).

There is probably a XKCD comic for this! The wrench-vs-cryptographt one is in a similar vein...

bgitarts 1 days ago [-]
Its also securing and settling billions of dollars in real world assets like tokenized treasuries, dollars (stablecoins) and stocks
StarlaAtNight 1 days ago [-]
So does this mean it was smart to avoid putting significant investment into Blockchain assets and only do toy investments?
red369 23 hours ago [-]
I avoided putting significant money into Blockchain assets, and only did a few Bitcoin transactions to get a feel for how it works, so similar to your situation. I bought a couple of dollars worth in 2016, and sent $1 to SDF. The change is now worth $50. That points to more optimal approaches than mine!

I would feel smarter if I had done a significant investment into Blockchain assets, and then pulled it all out towards the end of last year.

I think to know whether you did the smart thing, would have something to do with the information you had at the time. The coffee machine is broken in the office today, so I'll leave someone else to think this through more carefully, if they want to :)

They probably didn't, but I hope the SDF kept everyone's donations in Bitcoin, rather than converting it!

1 days ago [-]
gslepak 1 days ago [-]
PQC seems more and more like a psyop to me these days.

References:

- https://www.argmin.net/p/cryptopocalypse - see 1st footnote

- https://algassert.com/post/2500

Ohentis 23 hours ago [-]
The first reference is somewhat out of date considering it's already two whole days old :). There isn't any more evidence that RSA is broken, but the anthropic result is no longer evidence that it isn't (as the rumors have only gotten more credible since it's release instead of dying down).
machina_ex_deus 16 hours ago [-]
I think AI breakthrough is much more likely than quantum computer. It sounds like the NSA already knows of such breakthrough. There's no time to waste, they should start supporting post quantum cryptography right away, not because of the quantum part, but because it's simply a different algorithm that isn't vulnerable to whatever breakthrough the NSA knows about.

Every crypto still stuck without PQ signatures will go to zero when the attack becomes known.

Bitcoin in particular will go to zero anyway because of Satoshi bitcoins which will dilute all bitcoins.

RunSet 10 hours ago [-]
> Bitcoin in particular will go to zero anyway because of Satoshi bitcoins which will dilute all bitcoins.

The hardcap is 21 million BTC and whatever might be in Satoshi's wallet comes out of that.

https://www.ledger.com/academy/glossary/hard-cap

InsidiousWombat 12 hours ago [-]
but we are already using different algoritms, RSA is not the only pubkey scheme in use
1 days ago [-]
lnxsxu 1 days ago [-]
[dead]
aaron695 1 days ago [-]
[dead]
vibebingo 1 days ago [-]
[flagged]
medellin 1 days ago [-]
[flagged]
tredre3 1 days ago [-]
You're responding to a bad faith commenter. But calling them retarded seems a bit excessive. The whole value proposition of the blockchain is that nobody can shut it down, no elite controls it. Yet here we are, Vitalik pondering about his (possibly upcoming) second hard fork.

If VB and his small group of "elite" can, essentially, say "listen up, world! everything after that point never happened. sorry bros if you lose all your money, feel free to fork it yourself but people will follow us ;)" then most of the value proposition is gone.

vibebingo 14 hours ago [-]
Thanks for providing the articulate version of my snarkily delivered and perhaps cryptic viterol. spot on.

No coin is decentralized not even Bitcoin as there is a contraversial fork there. Something like Segwit vs. bigger blocks maybe IIRC.

123ahf 1 days ago [-]
[flagged]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 01:39:51 GMT+0000 (Coordinated Universal Time) with Vercel.