How vultisig/vultiserver works
Main Components
a. External Interface Layer:
• HTTP API Server (api/server.go)
• Client Applications (Mobile/Web)
• Email Service Integration (Mandrill)
b. Core Services:
• TSS Worker Service
• Vault Management Service
• Key Management Service
• Relay Service
c. Storage Layer:
• Redis Storage
• Block Storage
d. Supporting Components:
• Chain Helpers (for different blockchain implementations)
• Wallet Core Integration
• Context Management
Component Relationships and Data Flow
[Client Applications] ←→ [API Server]
• ↓
[Service Layer (TSS, Reshare, Worker)]
• ↓
[Chain Helpers & Wallet Core]
• ↓
[Storage Layer (Redis & Block Storage)]
Specific Implementation Details
a. API Layer (Blue):
• HTTP endpoints (/vault/create, /vault/sign, /vault/reshare)
• Authentication/Authorization flow
• Request validation
b. Service Layer (Green):
• TSS Service (service/tss.go)
• Worker Service (service/worker.go)
• Reshare Service (service/reshare.go)
• Mandrill Email Service (service/mandrill.go)
c. Chain Support Layer (Yellow):
• EVM Helper
• UTXO Helper
• Cosmos Helper
• THORChain Helper
d. Storage Layer (Purple):
• Redis Storage Implementation
• Block Storage Implementation
Integration Points
• Wallet Core Integration (walletcore/)
• External Chain Interactions (chainhelper/)
• Email Service Integration
• Redis Connection
Security Components
Security-related elements:
• Encryption/Decryption flows
• Vault Share Management
• Password Protection
• Session Management
Specific Notations
Use these symbols:
• 🔒 for security-related components
• 🔄 for asynchronous operations
• 💾 for storage operations
• 🌐 for network interfaces
Implementation Details to Highlight
• 2/2 and 2/3 vault configurations
• TSS protocol flow
• Generation and signing paths
• Resharing process flow
Remember to:
• Version information
• Document all interfaces
• Error handling paths
• Monitoring points