Course 11, Lesson 12: Sidechains & Federated Scaling | XRPL Performance & Scaling | XRP Academy - XRP Academy
3 free lessons remaining this month

Free preview access resets monthly

Upgrade for Unlimited
Skip to main content
beginner60 min

Course 11, Lesson 12: Sidechains & Federated Scaling

Learning Objectives

Explain XRPL sidechain architecture and its relationship to the mainnet

Analyze cross-chain bridge mechanisms and their security properties

Evaluate performance characteristics of federated consensus systems

Identify appropriate use cases for sidechain deployment

Design cross-chain applications with appropriate security considerations

XRPL was designed as a single, unified ledger—one source of truth for all transactions. This simplicity provides strong guarantees: every participant sees the same state, every transaction has global finality, and there's no fragmentation of liquidity or security.

But this design creates constraints. Every transaction competes for the same ~1,500 TPS capacity. Every feature must satisfy the entire validator network. Every use case must fit within XRPL's native capabilities.

Sidechains offer an alternative: specialized chains optimized for specific purposes, connected to XRPL through bridges that allow asset transfer between chains. Want smart contracts? Run them on an EVM sidechain. Need 10,000 TPS for a gaming application? Deploy a sidechain with faster consensus. Require privacy features? Build a privacy-focused sidechain.

The promise is flexibility without fragmenting the main network. The reality involves careful trade-offs between performance, security, and complexity. This lesson provides the technical foundation to evaluate these trade-offs intelligently.


  • Runs its own instance of rippled (or compatible software)
  • Has its own validator set and consensus
  • Can have different configuration (fee structure, reserves, features)
  • Connects to XRPL mainnet through a bridge

Architectural Relationship:

┌─────────────────────────────────────────────────────────┐
│                    XRPL Mainnet                          │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐     │
│  │ Validator 1 │  │ Validator 2 │  │ Validator N │     │
│  └─────────────┘  └─────────────┘  └─────────────┘     │
│                         │                               │
│                    Bridge Account                       │
│                         │                               │
└─────────────────────────┼───────────────────────────────┘
                          │
              Cross-Chain Messages
                          │
┌─────────────────────────┼───────────────────────────────┐
│                    Sidechain                            │
│                         │                               │
│                  Door Account                           │
│                         │                               │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐     │
│  │ Validator 1 │  │ Validator 2 │  │ Validator M │     │
│  └─────────────┘  └─────────────┘  └─────────────┘     │
└─────────────────────────────────────────────────────────┘

Native XRP on Sidechain:
When XRP moves to a sidechain, it's locked on mainnet and represented on the sidechain:

Mainnet: User sends 100 XRP → Bridge Account (locked)
Sidechain: Door Account → User receives 100 wrapped XRP

The wrapped XRP on the sidechain is a representation of XRP locked on mainnet, not actual XRP. This is similar to how WETH represents ETH on Ethereum or WBTC represents BTC.

  1. The bridge correctly locks mainnet assets
  2. The bridge correctly mints sidechain representations
  3. The bridge correctly burns representations on return
  4. The locked assets will be available for redemption

Sidechains can be configured differently from mainnet:

Parameter Mainnet Sidechain Option Trade-off
Validators 150+ 5-50 Speed vs. decentralization
Ledger Close 3-5s 1-2s Speed vs. safety margin
Reserve 10 XRP 0.1-1 XRP Accessibility vs. spam prevention
Fees Dynamic Fixed low Predictability vs. congestion handling
Features Mainnet set Extended Capability vs. audit complexity
  • Purpose: Smart contract execution
  • Consensus: Proof of Authority (faster than mainnet)
  • Features: Full EVM compatibility, Solidity support
  • Status: Devnet available, mainnet timeline TBD
  • Purpose: Native XRPL smart contracts
  • Consensus: Standard XRPL consensus
  • Features: WebAssembly-based hooks
  • Status: Testing phase
  • Purpose: Private deployments with XRPL interoperability
  • Consensus: Configurable (often smaller validator sets)
  • Features: Privacy, custom rules
  • Status: Various deployments

The bridge is the critical component connecting chains:

┌──────────────────────────────────────────────────────────────┐
│                        Bridge System                          │
│                                                              │
│  ┌─────────────────────┐     ┌─────────────────────┐        │
│  │   Mainnet Witness   │────▶│  Sidechain Witness  │        │
│  │   (Monitor Locks)   │◀────│ (Monitor Releases)  │        │
│  └─────────────────────┘     └─────────────────────┘        │
│              │                         │                     │
│              ▼                         ▼                     │
│  ┌─────────────────────┐     ┌─────────────────────┐        │
│  │   Mainnet Signer    │     │  Sidechain Signer   │        │
│  │ (Multi-sig Bridge)  │     │ (Multi-sig Door)    │        │
│  └─────────────────────┘     └─────────────────────┘        │
│                                                              │
└──────────────────────────────────────────────────────────────┘

Mainnet → Sidechain (Locking):

Step 1: User Transaction
User → Bridge Account: 100 XRP
(Memo: Destination sidechain address)

Step 2: Witness Detection
Bridge witnesses detect transaction in validated ledger
Verify: Amount, destination, memo format

Step 3: Attestation
Each witness signs attestation:
"I saw 100 XRP locked for address X on sidechain"

Step 4: Threshold Collection
Once M-of-N witnesses attest, trigger sidechain mint

Step 5: Sidechain Minting
Door Account → User Sidechain Address: 100 wrapped XRP
Multi-sig from bridge signers

Step 6: Confirmation
User can verify wrapped balance on sidechain

Sidechain → Mainnet (Unlocking):

Step 1: User Transaction
User → Door Account: 100 wrapped XRP
(Burns the wrapped asset)

Step 2: Witness Detection
Bridge witnesses detect burn transaction
Verify: Amount, destination mainnet address

Step 3: Attestation
Each witness signs attestation:
"I saw 100 wrapped XRP burned for address Y on mainnet"

Step 4: Threshold Collection
Once M-of-N witnesses attest, trigger mainnet release

Step 5: Mainnet Release
Bridge Account → User Mainnet Address: 100 XRP
Multi-sig from bridge signers

Step 6: Confirmation
User can verify XRP balance on mainnet

Latency Components:

Phase Time Notes
Source chain finality 4s (mainnet), 1-2s (sidechain) Must wait for confirmation
Witness detection 1-5s Depends on polling frequency
Attestation collection 2-10s Depends on witness count
Destination submission 4s (mainnet), 1-2s (sidechain) Standard transaction
Destination finality 4s (mainnet), 1-2s (sidechain) Final confirmation
Total 15-30 seconds typical Can be longer under load

Throughput Constraints:

Factor Limit Impact
Witness processing ~100 TPS per witness Scale witnesses to increase
Multi-sig coordination ~50-100 TPS M-of-N coordination overhead
Source chain capacity 1,500 TPS Shared with other traffic
Destination chain capacity Varies Depends on sidechain config
Practical bridge throughput 50-200 TPS Limited by coordination

Federated (Trusted) Bridges:

Trust Model:
├── N witnesses monitor both chains
├── M-of-N must agree on transfers (typically 3-of-5 to 5-of-8)
├── Bridge accounts are M-of-N multi-sig
└── Security = Trust that M witnesses won't collude
  • 3-of-5: 3 colluding witnesses can steal all funds
  • 5-of-8: 5 colluding witnesses can steal all funds
  • Byzantine tolerance: Up to (N-M) failures without fund loss

Trustless (Cryptographic) Bridges:

Trust Model:
├── Light client verification of source chain
├── Cryptographic proofs of transactions
├── Smart contract validates proofs
└── Security = Cryptographic soundness + chain security
  • XRPL sidechains use federated bridges
  • Trustless bridges require light client protocols not yet implemented
  • Research ongoing for improved bridge security

Sidechains typically run with fewer validators than mainnet:

Impact on Consensus Speed:

Validator Count Message Complexity Typical Consensus Time
5 O(25) 500-800ms
10 O(100) 800-1,200ms
20 O(400) 1,200-1,800ms
50 O(2,500) 2,000-3,000ms
150 O(22,500) 2,500-3,500ms
  1. Fewer messages to exchange (O(N²) complexity)
  2. Faster quorum achievement (fewer votes needed)
  3. Lower network latency (can colocate validators)
  4. Reduced propagation time

Quantifying the Trade-off:

Validators Byzantine Tolerance Consensus Time Security Level
5 1 malicious ~700ms Low
10 2 malicious ~1,000ms Medium-Low
20 4 malicious ~1,500ms Medium
50 10 malicious ~2,500ms Medium-High
150+ 30+ malicious ~3,000ms High

Federation Risk Matrix:

Federation Size Collusion Risk Operational Risk Appropriate For
3-of-5 High Low Testing, low-value
5-of-8 Medium-High Medium Development, gaming
7-of-12 Medium Medium Limited production
11-of-20 Low-Medium Higher Production use
21-of-35 Low High High-value production

Validator Placement:

Geographic Distribution Impact:

Scenario A: All validators in one data center
├── Network latency: <1ms
├── Consensus time: ~500ms
├── Risk: Single point of failure
└── Use case: Maximum speed, accepts centralization

Scenario B: Multi-region (same continent)
├── Network latency: 10-30ms
├── Consensus time: ~800-1,200ms
├── Risk: Regional outage vulnerability
└── Use case: Balance of speed and resilience

Scenario C: Global distribution
├── Network latency: 100-200ms
├── Consensus time: ~2,000-2,500ms
├── Risk: Lower (diverse failure modes)
└── Use case: Production requiring resilience

Sidechain-Specific Optimizations:

  1. Reduced Signature Verification

  2. Optimized State Management

  3. Custom Fee Structures


Good Fit: Gaming/NFT Platform

Requirements:
├── High transaction volume (10,000+ TPS)
├── Low value per transaction ($0.01-$10)
├── Latency sensitivity (<1 second)
├── Tolerance for reduced security
└── Closed ecosystem (same game/platform)

Solution:
├── Dedicated gaming sidechain
├── 10-validator federation (trusted game operators)
├── 500ms consensus target
├── Periodic settlement to mainnet for withdrawals
└── Game items as wrapped assets
```

Good Fit: Enterprise Private Ledger

Requirements:
├── Regulatory compliance (data residency)
├── Private transactions
├── Integration with mainnet XRP
├── Known participant set
└── High throughput for internal operations

Solution:
├── Private sidechain with permissioned access
├── Regulatory-compliant validator locations
├── Privacy features enabled
├── Bridge for XRP on/off-ramp
└── Audit logging for compliance
```

Good Fit: Smart Contract Experimentation

Requirements:
├── EVM compatibility for developer familiarity
├── Lower risk than mainnet deployment
├── Path to mainnet integration if successful
├── Faster iteration cycle
└── Accept reduced security during testing

Solution:
├── EVM sidechain deployment
├── Devnet/testnet configuration
├── Bridge for test XRP
├── Migration path to mainnet hooks when available
└── Graduated security as application matures
```

Poor Fit: High-Value Financial Settlement

Problem:
├── $100M+ daily volume
├── Regulatory requirements for finality
├── Cannot accept federation trust model
├── Need mainnet's full security
└── Latency not critical (seconds acceptable)

Why Sidechain Fails:
├── Federation risk too high for value at stake
├── Regulatory uncertainty around bridge security
├── Mainnet capacity sufficient for volume
├── Bridge latency adds no value
└── Complexity increases operational risk
```

Poor Fit: DEX Liquidity

Problem:
├── Need deep liquidity for best execution
├── Arbitrageurs connect markets
├── Price discovery requires broad participation
└── Users expect single order book

Why Sidechain Fails:
├── Fragments liquidity across chains
├── Bridge latency prevents effective arbitrage
├── Separate order books = worse prices
├── User confusion about which chain to use
└── Mainnet DEX remains the liquidity hub
```

Decision Matrix:

Factor Weight Mainnet Sidechain Score Guide
Transaction value High >$1,000 <$100 Risk tolerance
Volume needs Medium <1,000 TPS >1,000 TPS Capacity
Latency requirement Medium >2s OK <1s needed Time sensitivity
Security requirement High Critical Acceptable Finality needs
Feature needs Low Native Extended Smart contracts, etc.
Regulatory High Proven Uncertain Compliance
Ecosystem integration Medium All Limited Interoperability

Pattern 1: Hub and Spoke

                    ┌─────────────┐
                    │   XRPL      │
                    │  (Hub)      │
                    └──────┬──────┘
                           │
         ┌─────────────────┼─────────────────┐
         │                 │                 │
    ┌────┴────┐       ┌────┴────┐       ┌────┴────┐
    │ Gaming  │       │   EVM   │       │Enterprise│
    │ Chain   │       │  Chain  │       │  Chain  │
    └─────────┘       └─────────┘       └─────────┘

Characteristics:
├── XRPL is settlement layer
├── Sidechains for specialized functions
├── All cross-chain via mainnet
└── Mainnet XRP is universal asset
```

Pattern 2: Peer-to-Peer

    ┌─────────────┐         ┌─────────────┐
    │   Chain A   │◀───────▶│   Chain B   │
    └──────┬──────┘         └──────┬──────┘
           │                       │
           │    ┌─────────────┐    │
           └───▶│   Chain C   │◀───┘
                └─────────────┘

Characteristics:
├── Direct bridges between chains
├── No central hub requirement
├── Shorter path for some transfers
└── Higher complexity, more bridges to secure
```

Pattern 3: Rollup-Style

    ┌─────────────────────────────────────┐
    │            XRPL Mainnet              │
    │         (Data Availability)         │
    └───────────────┬─────────────────────┘
                    │
            Periodic State Commitment
                    │
    ┌───────────────┴─────────────────────┐
    │          Execution Layer            │
    │     (High-TPS Sidechain)            │
    └─────────────────────────────────────┘

Characteristics:
├── Sidechain executes transactions
├── Mainnet stores state commitments
├── Can prove sidechain state from mainnet
└── Enhanced security vs. pure sidechain
```

Key Design Principles:

  1. Minimize Cross-Chain Operations

Example:
├── Gaming: Daily settlement of in-game earnings
├── Trading: Net position settlement hourly
├── Enterprise: End-of-day reconciliation


1. **Handle Bridge Delays Gracefully**

1. **Plan for Bridge Failures**

1. **Maintain Audit Trail**

Multi-Chain Metrics:

Metric Mainnet Sidechain Bridge
Transaction latency p95 < 5s p95 < 1s p95 < 30s
Success rate > 99.5% > 99% > 99%
Throughput Actual vs. limit Actual vs. limit Queue depth
Finality Ledger sequence Ledger sequence Both chains confirmed

Bridge-Specific Monitoring:

Bridge Health Dashboard:
├── Witness status (online/offline)
├── Attestation latency
├── Pending transfers by age
├── Locked balance vs. minted balance (must match)
├── Recent failures by error type
└── Security alerts

  • XRPL sidechain technology exists and functions
  • Federated bridges work for controlled environments
  • Smaller validator sets do achieve faster consensus
  • Cross-chain transfers complete successfully
  • 50-200 TPS bridge throughput achievable
  • Sub-second sidechain consensus demonstrated
  • 15-30 second cross-chain transfer times typical
  • Optimal federation size for production use cases
  • Long-term bridge security under adversarial conditions
  • User adoption of multi-chain complexity
  • Regulatory treatment of bridged assets
  • Bridge protocols still maturing
  • Interoperability standards not finalized
  • Best practices emerging through experience
  • Federated bridges are trust-based, not trustless
  • Bridge attacks have resulted in billions lost across crypto
  • Multi-sig security depends on operational security
  • Smart contract bugs in bridge logic
  • Multi-chain applications harder to audit
  • Failure modes multiply with chain count
  • User confusion about asset location
  • Debugging cross-chain issues challenging

Sidechains extend XRPL's capabilities but don't eliminate trade-offs. They're appropriate for specific use cases where the benefits (speed, features, privacy) outweigh the costs (security, complexity, fragmentation).

The critical insight: Sidechains don't make XRPL faster—they create separate, faster chains that can interact with XRPL. Assets bridged to sidechains inherit the sidechain's security model, not mainnet's.

For applications requiring XRPL's full security guarantees, mainnet remains the only option. For applications that can accept reduced security for improved performance, sidechains offer a viable path.


  • Business requirements and objectives
  • Transaction volume and value profiles
  • Latency and finality requirements
  • Security and compliance requirements
  • Score mainnet vs. sidechain for each factor
  • Calculate weighted total
  • Make go/no-go recommendation with justification
  • Sidechain configuration (validators, consensus, features)
  • Bridge architecture (federation size, witness design)
  • Cross-chain transfer flows
  • Security measures and monitoring
  • Identify top 5 risks
  • Assess likelihood and impact
  • Define mitigation strategies
  • Create contingency plans

Estimated Time: 3-4 hours


What This Tests: Understanding of federation security trade-offs.

What This Tests: Detailed understanding of cross-chain transfer mechanics.

What This Tests: Ability to analyze and communicate security vs. performance trade-offs.

What This Tests: Understanding of bridge reconciliation and potential failure modes.

What This Tests: Quantitative comparison of security models.



Next Lesson: Competitive Performance Analysis — How XRPL compares to Solana, Ethereum, Aptos, and traditional payment systems


Course 11, Lesson 12 of 15 • XRPL Performance & Scaling

Key Takeaways

1

Sidechains are separate networks

— Connected to XRPL but not part of it

2

Bridge security is federated

— Trust the bridge operators, not cryptography alone

3

Smaller validator sets trade security for speed

— Choose based on value at risk

4

Cross-chain transfers have inherent latency

— 15-30 seconds minimum

5

Use case matters

— Sidechains are tools for specific problems, not universal solutions ---