The reactions to BIP-361 revealed that many believe the appearance of a quantum computer would only result in temporary market volatility.
Unfortunately, it’s not that simple. This is my attempt to comprehensively catalog what could happen. Feedback is appreciated!
Curious about the math - what’s the standard approach to getting this formula?
Also, for
doesn’t this discount the blocks that are found if you win? The opportunity cost of chasing a failed attempt to reorg involves lost block rewards if you don’t win - but you don’t pay that cost if you do win.
This is by far the most complex part of my post because I don’t think there is a “standard” way of calculating the Expected Value in this scenario. The Bitcoin Whitepaper does have a formula for calculating the ability for an miner with a given hashrate to be able to reorganize the blockchain after X blocks, for which I even wrote a web app tool a few years ago.
I started off with that formula and then concluded it was a poor fit for this scenario because the “race” is happening in parallel with the rest of the network.
So I ended up writing a different tool to try to model this fee sniping scenario.
It looks like you’re focusing on the “initial decision” for mining privately which means that there’s effectively no additional advantage in terms of block subsidy if your privately mined chain wins vs if you just mined on the tip of the chain. Future “step” decisions as the length of your privately mined chain increases will then add “B*R” back into the expected value and thus the decision whether or not to continue mining your private chain fork.
I modeled this in my book a few years back and it was quite involved. I don’t know if there’s an easier way to do it. See https://pages.uoregon.edu/micahw/bitcoin/double_spend.pdf I didn’t even bother writing out formulas for (5.24) and (5.25) because it was such a ginormous mess.
The underlying probability philosophy for comparing the “try to steal fee” versus “mine the tip” involves a coupling argument that the two underlying probability spaces are isomorphic thus you only need to subtract the situation win you lose the race, not when you win.