Architecture
Overview
System Architecture
┌─────────────────────────────────────────────────────────────────────────────┐
│ User/DApp │
└─────────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ Source Chain │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Gateway │ │ Vault │ │ Cross-chain │ │
│ │ Contract │───▶│ Address │───▶│ Events │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘
│
│ Observer Monitoring
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ Maintainer Network │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Maintainer │ │ Maintainer │ │ Maintainer │ │ Maintainer │ │
│ │ A │◀──▶│ B │◀──▶│ C │◀──▶│ D │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │ │ │ │ │
│ └──────────────────┴──────────────────┴──────────────────┘ │
│ │ │
│ P2P Network Communication │
│ TSS KeyGen / KeySign │
└─────────────────────────────────────────────────────────────────────────────┘
│
│ Submit Observations/Votes
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ MAP Relay Chain │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Maintainer │ │ TSS │ │ Relay │ │
│ │ Manager │ │ Manager │ │ │ │
│ │ Register/Elect/ │ │ TSS Generation/ │ │ Cross-chain │ │
│ │ Incentive/Slash │ │ Switching │ │ Flow Management │ │
│ └──────────────────┘ └──────────────────┘ └──────────────────┘ │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Vault │ │ Registry │ │ Gas │ │
│ │ Manager │ │ │ │ Service │ │
│ │ State Transition/│ │ Chain/Token/ │ │ Fee Recording/ │ │
│ │ Asset Recording │ │ Alias Registry │ │ Updating │ │
│ └──────────────────┘ └──────────────────┘ └──────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
│
┌──────────────────┴──────────────────┐
│ │
▼ ▼
┌────────────────────────────────┐ ┌────────────────────────────────┐
│ Contract Chains (EVM/Solana) │ │ Non-contract Chains (Bitcoin) │
│ │ │ │
│ TSS signature submitted to │ │ TSS builds and signs tx │
│ Relay Chain │ │ │ │
│ │ │ │ ▼ │
│ ▼ │ │ Broadcast to target chain │
│ Relayer/Anyone submits sig │ │ │ │
│ │ │ │ ▼ │
│ ▼ │ │ ┌─────────────┐ │
│ ┌─────────────┐ │ │ │ Vault │ │
│ │ Gateway │ │ │ │ Address │ │
│ │ Verify sig │ │ │ │ (TSS) │ │
│ │ Execute │ │ │ └─────────────┘ │
│ │ TSS Switch │ │ │ │
│ └─────────────┘ │ │ │
└────────────────────────────────┘ └────────────────────────────────┘Component Details
On-Chain Components (MAP Relay Chain)
Maintainer Manager
TSS Manager
Vault Manager
Relay
Registry
Gas Service
On-Chain Components (Other Chains)
Gateway
Vault Address
Off-Chain Components (Maintainer Node)
Observer
Signer
P2P Network
Data Flow
Inbound Transaction (TxIn)
Outbound Transaction (TxOut)
Security Architecture
Threshold Security
Slashing Conditions
Violation
Penalty
Key Rotation (Churn)
Integration with Light Client
Last updated