SDK Architecture
SDK Architecture - Technical Deep Dive
Architecture Overview
SDK Structure
┌─────────────────────────────────────────┐
│ Application Layer │
│ (Your Application Code) │
└──────────────┬────────────────────────────┘
│
┌──────────────▼────────────────────────────┐
│ API Layer │
│ - TransactionBuilder │
│ - Wallet API │
│ - ProofGenerator │
│ - StateSync │
│ - OfflineTransfer │
└──────────────┬────────────────────────────┘
│
┌──────────────▼────────────────────────────┐
│ Core Layer │
│ - Note Management │
│ - Commitment Operations │
│ - Nullifier Generation │
│ - Merkle Tree Operations │
│ - Key Management │
└──────────────┬────────────────────────────┘
│
┌──────────────▼────────────────────────────┐
│ Protocol Layer │
│ - Shielded State Tree │
│ - ZK Circuit Execution │
│ - Proof Generation/Verification │
│ - Transaction Validation │
└──────────────┬────────────────────────────┘
│
┌──────────────▼────────────────────────────┐
│ Network Layer │
│ - Encrypted RPC Client │
│ - WebSocket Connections │
│ - State Synchronization │
│ - Transaction Broadcasting │
└────────────────────────────────────────────┘Layer Responsibilities
Core Components
RoruClient
Wallet
Module Structure
Transaction Module
Proof Module
State Module
Network Module
Data Flow
Transaction Creation Flow
State Synchronization Flow
Configuration
ClientConfig
Error Handling
Error Types
Performance Considerations
Caching
Optimization
Conclusion
Last updated
