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

Clique

2 min read
Pronunciation
[kleek]
Analogy
Think of Clique as a round-table conference where a select group of trusted officials take turns speaking and recording meeting minutes according to a predetermined schedule. Unlike a debate where anyone can participate if they solve difficult puzzles (proof-of-work) or put up financial stakes (proof-of-stake), only officials with recognized authority can add to the official record. Each official knows exactly when their turn comes, creating a predictable and energy-efficient process. If an official becomes untrustworthy, the majority of other officials can vote to remove them from the table.
Definition
A proof-of-authority consensus algorithm designed for Ethereum-compatible blockchains, where a predefined set of authorized validators (signers) take turns creating blocks in a deterministic sequence. Clique provides a lightweight, efficient alternative to proof-of-work for permissioned or private networks, offering faster block times and transaction finality without the energy consumption of mining.
Key Points Intro
Clique consensus operates on four fundamental principles that balance efficiency with security for permissioned networks.
Key Points

Authority-Based: Relies on a known set of trusted validators (signers) with explicitly granted block creation rights.

Rotation Mechanism: Implements a deterministic round-robin selection process for block proposers, with in-turn and out-of-turn validation rules.

Voting System: Enables adding or removing validators through a simple majority voting mechanism embedded in block headers.

Lightweight Design: Provides consensus with minimal computational overhead and network communication, optimized for enterprise use cases.

Example
A government agency establishes a private blockchain for tracking property title transfers using Clique consensus. They designate seven department servers as authorized validators, each with a unique signing key. These validators take turns producing blocks in a predictable sequence every 5 seconds. When a citizen registers a property transfer, the transaction is broadcast to the network and included in the next block by the current validator in rotation. If a validator consistently fails to produce blocks during its allocated slots, the other validators can vote to remove it by including special voting information in their block headers. This system provides fast, energy-efficient record-keeping with clear accountability, as each block is cryptographically signed by its validator.
Technical Deep Dive
Clique implements a proof-of-authority variant designed specifically for Ethereum-compatible chains, using standard Ethereum block structures with modified header fields to accommodate consensus information. The protocol re-purposes the "extraData" field in block headers to store the validator's signature and voting data. Block sealing requires ECDSA signing rather than proof-of-work computation, dramatically reducing computational requirements. Validator selection follows a deterministic algorithm where the block producer for height h is calculated as validators[h % len(validators)]. To prevent clock drift issues, validators are allowed to propose blocks slightly out of turn after a delay period, enabling the network to continue functioning despite minor timing discrepancies. The protocol implements a simple m/2+1 majority voting system for validator management, where each validator can cast one vote per epoch (typically 30,000 blocks) to add or remove another validator. Clique inherits Ethereum's uncle mechanism to handle temporary network partitions but modifies the scoring rules to maintain fair validator rotation.
Security Warning
Clique's security relies entirely on the integrity of validators and their key management practices. Unlike economically secured consensus methods, there is no direct financial penalty for misbehavior. When implementing Clique networks, establish robust validator key security procedures and implement additional monitoring to detect potential compromise of validator nodes.
Caveat
While Clique offers significant efficiency advantages, its security model makes it suitable primarily for permissioned networks with trusted validators rather than public blockchains. The consensus mechanism provides only probabilistic finality, with the possibility of reorganizations if network partitioning occurs, though the risk decreases as blocks accumulate. Additionally, Clique's voting mechanism lacks formal governance procedures around validator addition/removal, requiring off-chain coordination for major validator set changes. The deterministic block producer selection can also potentially make targeted attacks against specific validators more predictable compared to random selection methods.

Clique - Related Articles

No related articles for this term.