The subject of our piece for today’s debunking (April 21st, 2019), is a post that Craig Wright uploaded on the blogging website, Medium.com on November 26th, 2018, titled, ‘Why I troll’.
In specific, it appears that Craig Wright took particular offense to a tweet from Bitcoin ABC developer, Peter Rizun.
Here is a screenshot of the tweet response from Peter Rizun that Craig Wright posted up:
Craig Wright begins by stating:
Although this should be pretty clear from the screenshot that Craig Wright posted of the conversation between Peter Rizun and himself, we’ll reiterate it for anyone that is lost — Peter and Craig were discussing the probability of orphan blocks occurring.
Simply put, on the Bitcoin protocol (and in other PoW currencies), there exists a possibility that two miners find a block at roughly the same time. Since both blocks are technically correct (if the correct PoW has been done), both sets of miners (Miner 1 and Miner 2 we’ll call them) will propagate this information to the network and claim their reward.
This results in some nodes accepting a block from Miner 1 and other nodes accepting a block from Miner 2. In essence the chain has been “split” (although not literally).
Eventually the network decides the ‘winner’, because the block that has the greatest amount of hash power to continue the network will be the version of the blockchain that pervades while the other submitted block that “loses” will essentially be discarded — making it an ‘orphan block’.
In his tweet (from the screenshot above), Craig Wright has argued that the chances of such an event happening are 0.01%. In the Medium piece that were are dissecting, Craig Wright actually adjusts his initial calculations to state that the chances of such an event occurring on the blockchain are less than 0.01% by saying, “No, it is not close to 0.01% — it is far less… Sorry, Peter.”
Peter Rizun’s essentially argues that the possibility of an orphan block occurring on the chain is much greater than what Craig Wright has proposed and he puts forth an equation in his refutation to Craig Wright.
When cross-referencing the math provided by Peter Rizun [P=100%(1-e^(-20s/600s))] in Woflram Alpha, a powerful online computational program, it does appear that the math checks out:
Surprisingly, both Peter Rizun and Craig Wright are wrong in their calculations.
Craig Wright does not provide any objective calculations/work for us to assess, so we’ll just keep his answer of 0.01% or less in mind while we examine Peter Rizun’s logic.
One of the central flaws in Peter Rizun’s logic is the use of ‘100%’ in the equation that he puts forth on Twitter in response to Craig Wright:
The use of ‘100%’ implies that there is a 100% probability that a block will be found within or at the 10 minute mark.
Even a cursory glance at the blockchain will tell us that this is actually not the case.
In order for us to arrive at the true number, there are a few more numbers that we’re going to have to crunch.
So here is the word problem:
Despite this question’s appearance of simplicity, there are several steps that must be taken before solving. We’ll go through all of them below before we dissect Craig Wright’s logic.
In solving this problem, our first objective will be to dissect the actual probability of a block being solved in 10 minutes or less. As stated above, that probability is not 100% and it should not be considered to be such.
As noted in Craig Wright’s response to Peter Rizun, Bitcoin’s retargeting algorithm does utilize a Poisson distribution.
The retargeting formula is as follows:
For coders and math wizards out there, you’ll be able to see from the screenshot above that Bitcoin “target” block creation within 10 minutes based on a probabilistic formula of how long it should take the network to discover the correct nonce value for the next block creation.
At the time of writing, the current hashrate is estimated to be approximately 42.9 million TH/s (data per blockchain.com):
In order to simplify the metrics here, we will not look at these 42.9 million TH on an individual basis.
Instead, we will borrow a concept from our good friend Charles Hoskinson from Cardano and divide each second into an ‘epoch’ to simplify our process moving forward in the first part of our equation.
Since the Bitcoin blockchain retargets every 2016 blocks by adjusting its difficulty so that it takes, on average, 10 minutes for the entire network to find a solution — we know that there are 600 ‘epochs’ or seconds that we’re looking at here.
So every second worth of trials on the blockchain (currently) = an attempt because we’re looking at the network holisitically and assuming that all miners will continue mining within that 20 second time frame (on the north side of that time frame; between 10 minutes and 10 minutes 20 seconds). Craig argues that this would not be the case, but we’ll get to that part of the argument and debunk it later.
For now, we will continue under the premise that every second represents an opportunity.
So let’s break it down:
n = 620 trials (assuming we set an upper bound limit of 620 seconds, which = 10 minutes 20 seconds)
Probability of success within 600 trials = 1/600.
However, to really calculate this we want the chances of success in a given trial (assuming perfect retargeting and consistent hash rate), which would be (1/600)⁶⁰⁰ (for 600 trials; now you see why we needed to simplify this slightly).
Since these are Bernoulli’s trials (i.e., each second worth of hashes are independent ‘attempts’), we need to use the formula:
X=1-(1-p)^n, where n = # of trials & p = probability of success.
In this case, that leaves us with:
X = 1 — (1–1/600)⁶⁰⁰
The result = .632 (approximately), which means there is a 63.2% chance that we come up with the solution within the 10 minute time frame.
So, p = .632 (per block; each block = 600 seconds)
.632 converts to a 63.2% chance of the network successfully finding the next block.
Now that we have this information, we can solve this riddle once and for all.
Here are the following steps that were undertaken to figure out the solution to the question:
Below is the intermediate solution for #8:
The caveat here though is that this is not a +/- 20 second time frame (i.e., the block must be found at exactly 10 minutes in this example and the second one found within 600s — 620s).
If a block is found within, let’s say, 9 minutes, then the probabilities of a second block being found within 20 seconds drops dramatically. If a block is found later than 20 seconds, then the probability of a second block being found within 20 seconds actually decreases as well because the targeting creates a Gaussian distribution.
The actual frequency (from what we’ve seen) is between .01%-.1%, but we have to count on mining pools to report that so there’s no telling how accurate those numbers are really as well — but that’s the best we really have to go by.
So Craig Wright is wrong, but not nearly as wrong as Peter Rizun in this case. Readers can take that however they want. This article was not written in defense of Craig Wright or Peter Rizun and certainly not in opposition of either.
However, in the end, it appears that Peter oversimplified this problem and so did Craig.
Cardano is ranked at #12, right after Stellar Lumens and above Monero on coinmarketcap. According to the latest available data,… Read More
We are often told that the verification of bitcoin transactions eats a lot of energy. The largely inaccurate comparison to… Read More
Bitcoin mining is about to become mainstream and legal in Iran | Source: Lars Hagberg / AFP The government of… Read More
SummaryI believe that IDEX is a company without a clear identity and vision.IDEX's transition towards blockchain and fintech is bewildering.Currently,… Read More
Over the past couple of years, there have been a number of fast-growing industries that have caught the attention of… Read More
In around 300 days, Bitcoin (BTC) will experience what is known as a “halving” or “halvening”. This event, which occurs… Read More