<blockquote>
  <p>The reason that is often stated is that you would have to re-calculate all the headers with all the hash values of the whole chain which is practically un-doable.</p>
</blockquote>

<p>It's not the mere recalculation of new headers: miners currently create about 8×10^19 block candidates every second. However, at current difficulty levels, it takes about 4.8×10^22 block candidates until a valid block is found. E.g. to change the history five blocks back, you have to find six blocks (approximately 2.9×10^23 block candidates) before the whole network together finds one more block.</p>

CC BY-SA 4.0
2019-08-03T16:28:52.267Z
2019-08-03T16:28:52.267Z
Murch
<blockquote>
<p>Is verification of blockchain computationally cheaper than recreating it?</p>
</blockquote>
<p>Yes, far easier</p>
<blockquote>
<p>How do you verify the blockchain integrity? Don't you also have to recalculate all the values to see whether they are valid?</p>
</blockquote>
<p>No.</p>
<p>The miner has to find a value for parts of the block they can choose a value for, such that a hash of the block is a number that is not bigger than a target number. This is impossible to predict without actually calculating the hash. So miners have to try a very large number of different choices before finding one that produces the hash with a numeric value smaller than the target.</p>
<p>The verifier only has to recalculate that hash once because they don't need to vary any part of the block.</p>
<p>(note, the above is a simplification but the principles apply)</p>
<hr />
<p>Reference:</p>
<ul>
<li><a href="https://en.bitcoin.it/wiki/Nonce" rel="nofollow noreferrer">Nonce</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/148/13866">What exactly is Mining?</a></li>
</ul>

CC BY-SA 4.0
2019-08-03T16:15:02.323Z
2022-11-29T11:28:27.260Z
2022-11-29T11:28:27.260Z
RedGrittyBrick
<p>One of the advantages of cryptocurrencies like Bitcoin that is often repeated is how hard it should be to manipulate past transactions. The reason that is often stated is that you would have to re-calculate all the headers with all the hash values of the whole chain which is practically un-doable.</p>

<p>My question is: How do you verify the blockchain integrity? Don't you also have to recalculate all the values to see whether they are valid? Or is the complexity class of verification different from creating a new chain? In other words is there some asymmetry at work here and if yes how does it work?  </p>

<blockchain><hash><proof-of-work><transaction-verification><algorithms>
Is verification of a blockchain computationally cheaper than recreating it?
vonjd
# Is verification of a blockchain computationally cheaper than recreating it?

(Asked by: username_0 on 2019-08-03)

One of the advantages of cryptocurrencies like Bitcoin that is often repeated is how hard it should be to manipulate past transactions. The reason that is often stated is that you would have to re-calculate all the headers with all the hash values of the whole chain which is practically un-doable.

My question is: How do you verify the blockchain integrity? Don't you also have to recalculate all the values to see whether they are valid? Or is the complexity class of verification different from creating a new chain? In other words is there some asymmetry at work here and if yes how does it work?

**Tags:** blockchain, hash, proof-of-work, transaction-verification, algorithms


---

## 2 answers

### Answer by username_2 on 2019-08-03. Score: 5 | Accepted answer

> Is verification of blockchain computationally cheaper than recreating it?

Yes, far easier

> How do you verify the blockchain integrity? Don't you also have to recalculate all the values to see whether they are valid?

No.

The miner has to find a value for parts of the block they can choose a value for, such that a hash of the block is a number that is not bigger than a target number. This is impossible to predict without actually calculating the hash. So miners have to try a very large number of different choices before finding one that produces the hash with a numeric value smaller than the target.

The verifier only has to recalculate that hash once because they don't need to vary any part of the block.

(note, the above is a simplification but the principles apply)

---

Reference:

* [Nonce](https://en.bitcoin.it/wiki/Nonce)
* [What exactly is Mining?](https://bitcoin.stackexchange.com/q/148/13866)


---

### Answer by username_1 on 2019-08-03. Score: 4

> The reason that is often stated is that you would have to re-calculate all the headers with all the hash values of the whole chain which is practically un-doable.

It's not the mere recalculation of new headers: miners currently create about 8×10^19 block candidates every second. However, at current difficulty levels, it takes about 4.8×10^22 block candidates until a valid block is found. E.g. to change the history five blocks back, you have to find six blocks (approximately 2.9×10^23 block candidates) before the whole network together finds one more block.


---

