© 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  
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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.