Polkadot Consensus Part 1: Introduction

This series will be a discussion about security and consensus in Polkadot. In part 1, we will define some terms before getting into the details of how Polkadot creates and secures blocks.

By Joe PetrowskiDecember 18, 2019

This series will be a discussion about security and consensus in Polkadot. In part 1, we will define some terms before getting into the details of how Polkadot creates and secures blocks.

Consensus algorithms help a network of computers operate like a single computer. In practice, this means that almost every computer in the network must agree on some initial state and then agree on a log of deterministic operations to the initial state, such that they arrive at the same final state.

While blockchains bring some interesting tools to this domain, this coordination problem is nothing new. It originated in aerospace, where computers on satellites or high-altitude airplanes might behave arbitrarily due to the inhospitable nature of space. Imagine that you have a network of flight computers and you want to know what direction your airplane is going. It shouldn’t matter which computer in the network you ask, you should always get the same response.

What does this have to do with blockchain? We want a network of computers to agree on some value. That value could be the balance of an account, the outcome of a vote or the execution result of a smart contract.

In fact, some pre-existing consensus algorithms resembled blockchains. In a 2001 lecture, MIT professor Barbara Liskov talked about batching transactions to improve Practical Byzantine Fault Tolerance (PBFT) performance, well before Bitcoin existed.

“Imagine a very busy primary who is getting hit with request after request after request; it doesn’t actually start the protocol for each request. Instead, it collects a batch of requests and does one protocol for the bunch of them. … It isn’t really necessary for everybody to send a reply to the client. It’s OK if all but one of them send digests of the reply because this will be sufficient to allow the client to tell whether it has identical replies.”

PBFT provided a set of rules to agree on state changes — even a batch (read: block) — of state changes.

Breaking Down Blockchain Consensus

In a distributed system like a blockchain, you need to answer a few questions:

  1. Who can propose the next change?
  2. Which set of changes is final?
  3. What happens if someone breaks the rules?

It’s important to make these distinctions early because many blockchain consensus protocols unite them into one. Proof of work, for example, uses the proof to select the proper author of a block; the longest chain to decide which chain is final; and the cost of making that proof as the punishment for breaking the rules. In Polkadot, these questions are all answered in isolation.

Non-blockchain systems still answer these questions. For example, one could make the assumption that all computers run the same software. In most cases, this is fine. If Boeing makes an airplane, it’s safe to assume that they program all the computers on it.

In a public network, however, we can’t make such an assumption. Blockchains let us chisel down some of our network assumptions by using economics. All consensus systems have notions of “good” and “bad” behavior. The intrinsic economic properties in blockchains allow us to reward good behavior or punish bad behavior. A proof-of-stake network uses economics as the direct means of securing its consensus.

Security in a blockchain system is a measure of the difficulty of breaking consensus. In proof of authority, security is the difficulty to take control of the authorities. In proof of work, security is the cost to acquire and operate enough hash power to create a longer chain than the network. And in proof of stake, security is the value staked and the value at risk.

Members of Parity Technologies and Web3 Foundation developed and implemented a library of algorithms to tackle consensus and security. In this series, we will start with GRANDPA, our finality algorithm, because all block production algorithms must respect this finality. Then we will move on to BABE, our block-production engine, and discuss how we add blocks to the chain. Finally, we will end with a discussion on how we use economics to secure GRANDPA and BABE.

Read part 2 about GRANDPA ->

From the blog

The best Web3 games to play in 2025

2025 is shaping up to be a breakthrough year for Web3 games. These are the top titles delivering fun, ownership, and real rewards—with no hype required.

What is decentralized AI? A beginner’s guide to blockchain-powered intelligence

Decentralized AI distributes data, compute, and control. It makes AI more open, private, and community-driven. Learn how Polkadot supports this shift.

How to get involved with Polkadot DAO: A beginner’s guide to OpenGov and Polkassembly

A step-by-step Polkassembly guide for beginners looking to vote, delegate, and participate in Polkadot’s onchain governance system.

Identity on your terms: How decentralized digital identity works

Explore how decentralized identity works and why Polkadot is powering the next era of user-controlled credentials.

Build your own chain, your way: Meet the Polkadot SDK

The Polkadot SDK gives builders full control over blockchain development. Learn how teams use this modular, open-source framework to launch fast, secure, and interoperable networks.

Polkadot's Web3 Philosophy: A legacy of digital freedom from Jobs to Wood

Web3 is the next evolution of personal technology and digital freedom. From Steve Jobs and personal computing to Gavin Wood's vision, explore how Web3 vs Web2 represents individual empowerment over corporate control.

Polkadot at Consensus 2025: Demos, DAO talk, and new audiences

Consensus 2025 leaned into real-world adoption with a crowd that cared about practical use cases and tangible outcomes. Polkadot showed up with demos, onboarding, and a message that kept things grounded.

The gamer’s guide to blockchain: Ownership, influence, and what comes next

Web3 gaming is redefining ownership, player agency, and game design. Discover what’s changing and how Polkadot is helping build more immersive, community-first experiences.

How DePIN is bringing real infrastructure and real users to Web3

Decentralized Mic brought together leaders from Silencio, Acurast, and DePIN Hub to explore how decentralized infrastructure networks are creating real-world utility, rewarding users, and reviving Web3’s original values.

What is the Polkadot DAO? A beginner’s guide to decentralized governance

Get a high-level overview of the Polkadot DAO, including how it coordinates funding, decision-making, and participation across the ecosystem, and how you can get involved.

Chain abstraction and the future of Web3 UX: Insights from Decentralized Mic

Discover how chain abstraction can remove complexity from Web3, improving user experience and enabling multichain applications. Featuring insights from Agoric, Polytope Labs, Sommelier, and Polkadot.

The rise of AI agents in crypto: how DeFAI is reshaping finance

AI agents are transforming DeFi into a more intelligent, autonomous system. Discover how DeFAI is redefining finance, and how Polkadot’s modular design supports this shift.