© Daniel van Flymen 2020
D. van FlymenLearn Blockchain by Building Onehttps://doi.org/10.1007/978-1-4842-5171-3_4

4. Proof of Work

Daniel van Flymen1  
(1)
New York, NY, USA
 

The primary goal of this chapter is to clearly explain how blocks are mined in a blockchain. Indirectly, this explains how new currency comes into being, as well as how disparate people forming a network can all reach consensus (agree on the state of the blockchain). And so, you’ll leave this chapter with a practical understanding of Proof of Work—the protocol which achieves this.

We’ll also see that due to the peer-to-peer, decentralized nature of peer-to-peer networks, there is never one single blockchain at any given time. There are many valid chains at once, but over time, ...

Get Learn Blockchain by Building One: A Concise Path to Understanding Cryptocurrencies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.