⛧ Sacred Bridge Protocol

🗝️ Bridge Overview

The Sacred Bridge enables secure asset and message transfer between Solana L1 and the Oasis L2, utilizing optimistic rollup technology with fraud proofs.

Key Features

  • Trustless bridging
  • Fraud proof system
  • Challenge mechanism
  • Fast finality

Supported Assets

  • Native SOL
  • SPL Tokens
  • NFTs
  • Messages

⚔️ Bridge Architecture


                    Solana L1
                        ↕
              ┌─────────────────────┐
              │    Bridge Portal    │
              └─────────────────────┘
                        ↕
                    Oasis L2
                    
Components:
- L1 Bridge Contract
- L2 Bridge Contract
- Message Queue
- Validator Network
- Challenge System

📓 Bridge Operations

Deposit Flow

1. Lock assets in L1 contract
2. Generate deposit proof
3. Submit proof to L2
4. Wait for confirmation
5. Receive assets on L2

Withdrawal Flow

1. Burn assets on L2
2. Generate withdrawal proof
3. Wait challenge period
4. Submit proof to L1
5. Claim assets on L1

⚡ Message Protocol

Message Structure

pub struct BridgeMessage {
    // Message identifier
    id: Hash,
    // Source chain
    source: ChainId,
    // Destination chain
    destination: ChainId,
    // Message sender
    sender: Address,
    // Message recipient
    recipient: Address,
    // Message payload
    payload: Vec<u8>,
    // Nonce for uniqueness
    nonce: u64,
}

🌒 Security Measures

Validation

  • Proof verification
  • Signature checks
  • State validation

Challenge System

  • 7-day window
  • Fraud detection
  • Slashing

Emergency

  • Pause mechanism
  • Emergency exit
  • Fund recovery