Skip to main content

DPoS Consensus Mechanism

🌱 Energy Efficient

Delegated Proof of Stake Consensus Mechanism

Circle Layer implements a cutting-edge Delegated Proof of Stake (DPoS) consensus mechanism that ensures network security, energy efficiency, and fast finality while maintaining true decentralization.

99.9%
Less Energy
1-3s
Finality
21
Max Validators
32
Min Stake (Testnet)

🌐 Consensus Overview​

Circle Layer adopts Delegated Proof of Stake (DPoS) consensus mechanism with low transaction cost, low transaction latency, high transaction concurrency, and supports up to 21 validators.

DPoS allows anyone to become a validator by staking specified coins. It also allows delegators to stake small amounts and to participate in network security. Any address can stake to an address that qualifies to become a validator, and after the validator's staking volume ranks in the top 21, it will become an active validator in the next epoch.

πŸ”₯ Key Benefits​

🌱

Energy Efficiency

99.9%Less Energy

Consumes 99.9% less energy compared to Proof of Work consensus mechanisms

PoW
100 TWh/year
PoS
0.1 TWh/year
πŸ›‘οΈ

Enhanced Security

67%+Attack Threshold

Economic security through stake-based validation and punishment mechanisms

πŸ”’ Cryptographic Signatures
βš”οΈ punishment mechanisms
🎯 Stake Requirements
⚑

Faster Finality

1-3sFinality Time

Achieve transaction finality in seconds, not minutes or hours

Circle Layer1-3s
Ethereum12-19s
Bitcoin60min+
🌐

True Decentralization

1000+Validators

Low barriers to entry reduce centralization risks and promote participation

100,000 CLAYERMin Stake
24/7Uptime Req.
5%Hardware Cost

πŸ”„ How Consensus Works​

Validator Selection Process

πŸ’°
Stake Requirement

Validators must stake a minimum of 32 CLAYER tokens (testnet) or 100,000 CLAYER tokens (mainnet) to participate in consensus

Testnet Min Stake:32 CLAYER
Mainnet Min Stake:100,000 CLAYER
Lock Period:7 days
πŸ†
Top 21 Selection

Validators are selected based on their staking amount. The top 21 validators by stake become active validators in the next epoch.

⏰
Epoch-Based Rotation

Validator sets are updated at the end of each epoch (200 blocks). This ensures dynamic participation based on current stake rankings.

Epoch Duration:200 blocks
Block Time:3 seconds

πŸ›‘οΈ Security Features​

βš”οΈ

Slashing Conditions

Validators face economic penalties for malicious behavior

Double Signing5% Stake
Nothing at Stake2% Stake
Long Range Attack100% Stake
Extended Downtime1% Stake
Invalid Proposals0.5% Stake
πŸ”„

Validator Rotation

Regular rotation prevents centralization and censorship

Rotation Period24 hours
Selection MethodVRF + Stake
Max Consecutive3 blocks
🎯

Stake Delegation

Token holders can delegate stake without giving up custody

βœ… Non-custodial
βœ… Liquid staking
βœ… Governance rights
βœ… Flexible unbonding
🎁

Participation Incentives

Rewards encourage honest participation and network growth

Block Rewards2 CLAYER/block
Transaction FeesVariable
Uptime Bonus+20%

πŸ›‘οΈ DPoS Punishment System​

Comprehensive Slashing Conditions​

Circle Layer implements a sophisticated punishment system to maintain network integrity and security:

πŸ’€ Critical Violations (Severe Penalties)

Double Signing Attack5% Stake Slashed

Validator signs two conflicting blocks at the same height

⏱️ Detection: ImmediateπŸ”’ Jail Time: 30 daysπŸ’° Recovery: Requires re-staking
Long Range Attack100% Stake Slashed

Attempting to reorganize the blockchain from an old state

⏱️ Detection: 24-48 hoursπŸ”’ Jail Time: PermanentπŸ’° Recovery: Not possible
Nothing at Stake2% Stake Slashed

Validator participates in multiple competing chains simultaneously

⏱️ Detection: 6-12 hoursπŸ”’ Jail Time: 14 daysπŸ’° Recovery: Partial re-staking

⚠️ Performance Violations (Moderate Penalties)

Extended Downtime1% Stake Slashed

Validator offline for more than 12 consecutive hours

⏱️ Detection: 12 hoursπŸ”’ Jail Time: 7 daysπŸ’° Recovery: Automatic after jail
Invalid Block Proposals0.5% Stake Slashed

Proposing blocks with invalid transactions or format

⏱️ Detection: ImmediateπŸ”’ Jail Time: 3 daysπŸ’° Recovery: Automatic after jail
Repeated Missed Proposals0.1% per incident

Missing 5+ consecutive block proposal opportunities

⏱️ Detection: 15 minutesπŸ”’ Jail Time: 24 hoursπŸ’° Recovery: Warning system

System Contracts for Validator Management​

Circle Layer uses a comprehensive system of smart contracts to manage validator operations:

πŸ›οΈ Core Validator Contracts

ValidatorRegistry Contract
Active
Registration Functions
  • registerValidator() - Register new validator with minimum stake
  • updateValidatorInfo() - Update validator metadata and commission
  • deactivateValidator() - Voluntarily exit from validator set
Status Management
  • getValidatorStatus() - Query current validator state
  • isValidatorActive() - Check if validator is in active set
  • getValidatorMetrics() - Performance and uptime data
StakingManager Contract
Active
Staking Operations
  • stakeTokens(validatorAddress, amount) - Delegate stake to validator
  • unstakeTokens(validatorAddress, amount) - Initiate unstaking process
  • restakeRewards(validatorAddress) - Compound staking rewards
Reward Distribution
  • claimRewards(validatorAddress) - Claim accumulated rewards
  • distributeRewards() - Automated reward distribution
  • calculateRewards(address) - Preview pending rewards
SlashingManager Contract
Active
Slashing Operations
  • slashValidator(validator, evidence, penalty) - Execute slashing
  • jailValidator(validator, duration) - Jail validator temporarily
  • submitEvidence(evidence) - Submit slashing evidence
Recovery Functions
  • unjailValidator(validator) - Release from jail after term
  • appealSlashing(validator, appeal) - Appeal slashing decision
  • getSlashingHistory(validator) - Query slashing record

βš–οΈ Governance & Dispute Contracts

DisputeResolution Contract
Development

Handles appeals and disputes related to validator slashing and punishment decisions.

πŸ“‹ Evidence submissionπŸ—³οΈ Community votingβš–οΈ Arbitration systemπŸ’° Appeal bonds
ParameterGovernance Contract
Development

Manages changes to staking parameters, slashing conditions, and network settings.

πŸŽ›οΈ Parameter updates⏰ Time-locked changesπŸ” Multi-sig approvalπŸ“Š Impact analysis

Detailed Staking & Unstaking Mechanics​

πŸ” Staking Process

1
Stake Preparation
  • Minimum stake: 32 CLAYER (testnet) / 100,000 CLAYER (mainnet)
  • Wallet balance verification
  • Gas fee preparation (β‰ˆ0.01 CLAYER for staking transaction)
  • Validator selection and due diligence
⏱️ Duration: Immediate
2
Transaction Execution
  • Call stakeTokens(validatorAddress, amount)
  • Tokens transferred to staking contract
  • Staking record created with timestamp
  • Validator delegation pool updated
⏱️ Duration: 3-9 seconds (1-3 blocks)
3
Activation Period
  • Staking amount enters "pending" state
  • Becomes active in next epoch (β‰ˆ24 hours)
  • Starts earning rewards after activation
  • Delegation shows in validator's total stake
⏱️ Duration: Up to 24 hours
4
Active Staking
  • Rewards accrue automatically per block
  • Can claim rewards without unstaking
  • Voting power proportional to stake
  • Subject to slashing if validator misbehaves
⏱️ Duration: Ongoing

πŸ”“ Unstaking Process

1
Unstaking Initiation
  • Call unstakeTokens(validatorAddress, amount)
  • Specify amount to unstake (minimum 1 CLAYER)
  • Tokens enter "unbonding" state immediately
  • Stop earning rewards from this block
⏱️ Duration: 3-9 seconds (1-3 blocks)
2
Unbonding Period
  • Mandatory waiting period: 21 days
  • Tokens locked and cannot be transferred
  • Still subject to slashing if validator misbehaves
  • No rewards earned during unbonding
⏱️ Duration: 21 days (518,400 blocks)
3
Release & Withdrawal
  • Automatic release after 21 days
  • Tokens become transferable
  • Can be withdrawn to wallet or re-staked
  • No longer subject to slashing
⏱️ Duration: Immediate after unbonding

⚑ Emergency Mechanisms

🚨 Emergency Unstaking

Available during severe validator misconduct or network emergencies

⏱️ Reduced unbonding: 7 daysπŸ’° Emergency fee: 0.5% of stakeπŸ”’ Governance approval required
πŸ›‘οΈ Validator Jailing Protection

Automatic unstaking triggered when validator is jailed for critical violations

⏱️ Automatic trigger: During jailingπŸ’° No additional feesπŸ”’ Normal 21-day unbonding
πŸ”„ Validator Migration

Transfer stake between validators without unbonding period

⏱️ Instant transferπŸ’° Migration fee: 0.1% of stakeπŸ”’ Once per month limit

Advanced Slashing Protections​

πŸ›‘οΈ Delegator Protections

πŸ“Š Graduated Slashing

Slashing penalties applied gradually to minimize delegator impact:

  • First offense: 50% of total penalty
  • Second offense: 75% of total penalty
  • Third offense: 100% of total penalty
  • Grace period: 90 days between offense resets
⚠️ Early Warning System

Automated notifications for delegators when validators show concerning patterns:

  • Uptime drops below 95%
  • Missed block proposals exceed threshold
  • Commission rate changes
  • Abnormal behavior detected
πŸ”„ Auto-Migration Options

Smart contract features to protect delegator interests:

  • Auto-unstake on critical violations
  • Automatic re-delegation to backup validators
  • Insurance pool for slashing compensation
  • Community-governed protection mechanisms

πŸš€ Ready to Participate?

Circle Layer's advanced DPoS system with comprehensive punishment mechanisms ensures network security while protecting legitimate participants. Our detailed staking and slashing systems provide clear rules and fair protections for all network participants.