So how does Stellar’s consensus protocol work? In this post I explain all you need to know.

Stellar Lumens is one of the most popular crypto digital currencies in the world today. It is the native coin that is minted on the Stellar network using the Stellar consensus protocol.

Stellar Lumens (XLM) popularity is derived from the fact that it was designed to be a cross-border payment alternative to fiat currencies.

So, how does Stellar’s consensus protocol work? This is the answer that I am going to provide to you through the course of this post.

The key elements of the Stellar consensus protocol

Stellar Lumens
Stellar Lumens

Both the fiat currency protocols and the cryptocurrency protocols do share a lot in common – their monetary properties. The following are the key elements of a monetary consensus protocol:

1. Common exchange value

For a monetary system to be effective, there should be a common exchange value that other values are measured against.

In the case of the Stellar’s consensus protocol, this common exchange value is the Stellar Lumens (XML).

2. Medium of exchange

In our case, a medium of exchange is simply a system through which transaction flows from the sender to the recipient. Thus, the entire Stellar Payment Network is a medium of exchange, not just the XML alone. On this cryptocurrency network, an exchange of value can take place.

3. Transaction generation

Financial transactions are triggered by an exchange of value. In this case, buyers and sellers meet to exchange value that is measurable in monetary terms.

These transactions take place through Stellar decentralized exchange.

4. The exchange markets

A market is simply a place where buyers and sellers meet to exchange value. The Stellar Network works as a linkage between various cryptocurrency markets.

Since Stellar Network is a global decentralized financial network, there is no single market but rather a myriad of interconnected markets operating through Stellar decentralized exchange.

5. Proofing and validation

The lack of a centralized market governed by a central authority means that proofing and validating transactions cannot be done by a single entity. Rather, it is done by a multitude of entities on the Stellar blockchain network.

6. Record keeping

Just like banks keep records of fiat currency transactions, cryptocurrencies also need to have proper record-keeping. Luckily, blockchain technology ensures that the record keeping of cryptocurrency financial transactions is immutable.

This blockchain ledger is a public register available on Stellar nodes on the global exchange network. Since this register resides on a decentralized network, anyone can download it and view it. This ensures the transparency and integrity of the records.

How Stellar’s consensus protocol works

Stellar Payments System
Stellar Payments System

Unlike Bitcoin and similar blockchain networks that use the Proof of Work consensus algorithm, or Ethereum and similar networks that use the Proof-of-Stake consensus algorithm, Stellar’s consensus protocol (SCP) uses the Proof-of-Agreement (PoA) consensus algorithm.

1. The rationale

SCP is a subset of the Federated Byzantine Agreement (FBA) that arose out of the desire to make proofing as fast as possible so that applications that require fast transaction processing and speeds can be implemented. Coupled with the ability to handle different currencies – both fiat currencies and cryptocurrencies, this makes SCP ideal for cross-border payment systems.

2. The concept

The conceptual framework of the Stellar’s consensus protocol is explained in detail in its SCP whitepaper as authored by Jed McCaleb, the founder of Stellar Network and co-founder of the Stellar Development Foundation.

In summary, SCP seeks to overcome major problems encountered by the Proof of Work (PoW) consensus algorithm. Some of these bottlenecks include:

All the above bottlenecks mean that the PoW protocol cannot be effectively used to process financial transactions.

SCP is not only fast but also cheap due to its much lower costs of proofing. The biggest advantage is that it is designed to work with other digital currencies including fiat currencies.

3. The mechanism

In explaining the Stellar consensus mechanism, I am going to demonstrate how Stellar works to achieve its purpose and objectives.

I am going to analogously illustrate this in a simplified and less technical way.  It is important to get the gist of it first. Thereafter, you can easily process the technical aspects.

This mechanism includes the facilities, processes, phases, and the entities involved.

The facilities

The following are the key resources that enable SCP work:

The process

The SCP is trust-based. Thus, the entire process is about finding trust validators. The Stellar consensus process involves the following key steps:

  1. Establish a Stellar node – anyone can create a node on the Stellar network. This node becomes a Stellar node once it achieves a quorum set.
  2. Build a quorum set – The Stellar node invites trusted nodes to form a quorum set. This quorum set will be under the leadership of the Stellar node.
  3. Create a quorum slice – A quorum slice is a trusted group dedicated to performing a certain task or function within the quorum set. A quorum slice is free to interact with other quorum slices outside their parent quorum set. Several quorum slices can also join to form a new quorum set independent of their parent quorum sets.
  4. Connect quorum intersections – The point at which several quorum slices concur becomes a quorum intersection. This point can be a point of agreement or a consensus point.
  5. Vote – A vote is a decision-making power. It is based on the federated voting system.

4. The voting

Since SCP employs an open network membership model with no central authority, voting is the only way decisions can be made on this decentralized network.

The process of federated voting is similar to that of a Referendum voting in a political system. It involves the following phases:

(a) Statement formulation

Any node can formulate a statement. A statement is an expression of an idea, point of view, or decision. This is similar to a Referendum statement.

(b) Declaration

In this phase, a node declares a formulated statement and thus becomes the initiator node of that statement.

(c) Nomination

In this nomination phase, the following happens;

(d) Campaigning

Once a clean quorum set is formed, a quorum slice is created to seek more endorsements and acceptance of the statement across the network. This campaigning aims to achieve a bigger and more significant quorum enough to influence the balloting outcome and hence a majority decision. Each nominee can form their own quorum slice. And the formation of each quorum slice also undergoes the nomination process.

(e) Balloting

After successful campaigning, the initiator prepares a ballot. Functionally, this is just similar to the conventional ballot in a political referendum.

(f) Voting

Once the ballot is prepared, it is subjected to network-wide voting. Several rounds of federated voting can take place until a sufficient network-wide quorum is achieved.

(g) Adoption

After the network-wide quorum is achieved, that is, a majority quorum, the statement is adopted as having passed.

Stellar features, applications, and benefits

Stellar's SCP potential
Stellar’s SCP potential

The Stellar Network has several features, applications, and benefits that distinguish it from other blockchain networks.

1. The features

The following are key features that characterize the SCP:

2. The entities involved

While SCP is uniquely different from conventional blockchain networks, the entities involved are not much different from those of other decentralized and distributed blockchain networks. These entities include:

3. The applications

The SCP has several use cases. The following are some of the major ones:

4. Benefits

The actual and potential benefits of SCP are many. The following are just but a few of them:

Up Next

What Is a Bitcoin and How Does It Work? A Beginner’s Guide

What Is a Bitcoin and How Does It Work

In this post, I will explain what a bitcoin is and how it works in as simple a language as possible. I will help you understand how Bitcoin works conceptually without dragging you through complicated maths and terminology. However, I am going to go into detail. Read more.