Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

Stellar Consensus Protocol

2 min read
Pronunciation
[stel-er kuhn-sen-suhs proh-tuh-kol]
Analogy
Think of the Stellar Consensus Protocol as a decentralized judicial system where judges (nodes) don't all need to trust each other directly. Instead, each judge chooses their own network of trusted colleagues (quorum slices) whose opinions they value. When deciding a case (transaction validity), judges consult their trusted circle, who in turn consult theirs. A decision becomes final when enough interconnected trust circles reach the same conclusion, even if some judges are corrupt or unreliable. This creates a system where global agreement emerges from overlapping local trust relationships, without requiring every participant to trust everyone else.
Definition
A consensus mechanism developed by the Stellar Development Foundation that enables fast, efficient, and decentralized agreement on transaction validity without requiring mining. SCP implements a Federated Byzantine Agreement system where nodes reach consensus through configurable quorum slices, allowing the network to remain robust while providing flexibility in trust relationships.
Key Points Intro
The Stellar Consensus Protocol operates on four key principles that define its federated approach to consensus.
Key Points

Configurable Trust: Nodes independently choose which other nodes to trust through user-defined quorum slices.

Federated Voting: Consensus emerges from overlapping trust networks rather than requiring global agreement on trusted validators.

Low Latency: Achieves confirmation finality within seconds without energy-intensive mining or staking requirements.

Safety over Liveness: Prioritizes system consistency, preferring to halt temporarily rather than risk conflicting outcomes when trust assumptions are violated.

Example
A cross-border payment network uses the Stellar Consensus Protocol to process international transfers. When a bank in Japan sends funds to a recipient in Brazil, the transaction is submitted to the Stellar network. Nodes in the network, including those operated by financial institutions, exchanges, and community stakeholders, each consult their configured quorum slices to determine the transaction's validity. As consensus statements propagate through these overlapping trust networks, the transaction quickly achieves network-wide agreement. The Brazilian bank sees confirmation within seconds, allowing them to credit the recipient's account with minimal delay, all while participating nodes maintain only the trust relationships they've explicitly configured rather than being forced to trust the entire validator set.
Technical Deep Dive
The Stellar Consensus Protocol implements a Federated Byzantine Agreement System (FBAS) through a two-phase consensus mechanism: nomination and balloting. During nomination, nodes propose transaction sets as candidates for consensus. The balloting phase then federated voting on a specific ballot number and transaction set, proceeding through prepare, commit, and externalize stages. Each node configures one or more quorum slices—sets of nodes sufficient to convince that node of an agreement. A quorum is a set of nodes containing at least one quorum slice for each member node, creating transitive trust relationships. SCP introduces the concept of quorum intersection, where any two quorums must share at least one honest node to prevent divergent consensus outcomes. The protocol provides flexible fault tolerance, where the failure threshold isn't a global network property but depends on each node's specific configuration. SCP achieves optimal asymptotic message complexity of O(n²) where n is the number of participants, while providing safety guarantees as long as quorum intersection holds and using bounded exponential delays to ensure liveness.
Security Warning
SCP's security depends critically on proper quorum slice configuration. Nodes must carefully select their trusted peers to ensure quorum intersection is maintained. Failing to configure diverse and reliable quorum slices can make nodes vulnerable to being isolated in network partitions or subject to influence by malicious validators.
Caveat
While SCP offers flexibility through configurable trust, this creates a significant burden on node operators to properly configure and maintain appropriate quorum slices. Poor configuration choices can lead to consensus failures or trust centralization. The protocol's safety-over-liveness preference means the network may temporarily halt if trust assumptions are violated, potentially affecting time-sensitive applications. Additionally, the permissionless nature of SCP is sometimes questioned, as practical deployment often leads to a relatively small set of widely-trusted validators due to the complexity of proper quorum slice configuration.

Stellar Consensus Protocol - Related Articles

No related articles for this term.