For the complete documentation index, see llms.txt. This page is also available as Markdown.

How SSP Components Work Together

The Complete SSP Ecosystem

SSP consists of three core components working together to provide secure, user-friendly cryptocurrency management using traditional 2-of-2 multisignature technology:

Component Deep Dive

🌐 SSP Wallet (Browser Extension)

Primary Key Holder & User Interface

  • Purpose: Main interface for wallet management and transaction initiation

  • Key Role: Holds first private key (Key #1) of the 2-of-2 multisig pair

  • Platforms: Chrome, Firefox, Brave, Edge

  • Built With: React 19, TypeScript, Vite

  • Architecture: Manifest v3 browser extension

Core Responsibilities:

  • πŸ‘€ User interface for all wallet operations across 12+ blockchains

  • πŸ”‘ Generate and securely store first BIP48-derived private key

  • πŸ’Έ Construct transactions for UTXO and EVM networks

  • πŸ”„ Coordinate with SSP Key for transaction approval

  • 🌍 Multi-blockchain support with network-specific optimizations

  • πŸ”— WalletConnect v2 integration for dApp connectivity

Supported Address Types:

  • Bitcoin/UTXO: P2SH, P2WSH (SegWit) multisignature addresses

  • Ethereum/EVM: ERC-4337 smart-contract accounts (CREATE2-derived), controlled by a 2-of-2 Schnorr multisig β€” not EOAs

  • Account Abstraction: The native and only EVM mode; every EVM address is an ERC-4337 smart account signed by both keys

πŸ“± SSP Key (Mobile App)

Secondary Key Holder & Transaction Authorizer

  • Purpose: Secure mobile 2FA device for transaction authorization

  • Key Role: Holds second private key (Key #2) of the 2-of-2 multisig pair

  • Platforms: iOS 15.1+, Android 7+

  • Built With: React Native 0.78, TypeScript

  • Security: React Native Keychain + MMKV encrypted storage

Core Responsibilities:

  • πŸ” Generate and store second BIP48-derived private key independently

  • βœ… Review transaction details and approve/reject on mobile interface

  • πŸ“± Receive push notifications for transaction requests (FCM/APNS)

  • πŸ”„ Synchronize with SSP Wallet via QR codes or optional relay server

  • πŸ“€ Complete multisignature transactions using Schnorr signatures

  • πŸ›‘οΈ Independent security layer with biometric authentication

Key Security Features:

  • iOS: Keychain Services integration with Face ID/Touch ID

  • Android: Android Keystore with fingerprint authentication

  • Encryption: AES-256 with device fingerprinting

  • Offline Capable: Full functionality via QR code scanning

⚑ SSP Relay (Communication Server)

Optional Zero-Knowledge Communication Bridge

  • Purpose: Optional server to facilitate communication between devices

  • Key Role: Message relay only - never accesses or stores private keys

  • Infrastructure: Node.js 20+, MongoDB, WebSocket, REST API

  • Security: Zero-knowledge architecture, end-to-end encryption

  • Alternative: Full offline operation available via QR codes

Core Responsibilities:

  • πŸ“‘ Relay encrypted messages between SSP Wallet and SSP Key

  • πŸ”„ Coordinate device synchronization process (optional)

  • πŸ“Š Provide blockchain data, network fees, and UTXO information

  • 🌐 Support for 12+ blockchain networks via various APIs

  • πŸš€ WebSocket connections for real-time communication

  • πŸ“ˆ Caching and performance optimization

Zero-Knowledge Design:

  • ❌ Never sees: Private keys, seed phrases, transaction details

  • βœ… Only handles: Encrypted message passing and public blockchain data

  • βœ… Alternative: Users can operate completely offline with QR codes

Communication Flow

Initial Setup & Synchronization

Online Synchronization (via SSP Relay)

Offline Synchronization (QR Code Only)

Transaction Process

Online Transaction Flow

Offline Transaction Flow

Security Architecture

πŸ” Traditional Multisignature Security

  • True 2-of-2: Both private keys required for every transaction

  • BIP48 Derivation: Industry-standard hierarchical deterministic keys

  • Network Native: Uses each blockchain's native multisig capabilities

  • No Single Point of Failure: Compromise of one device doesn't affect funds

πŸ›‘οΈ Device-Level Protection

  1. SSP Wallet: Browser extension with encrypted local storage

  2. SSP Key: Mobile app with hardware-backed key storage

  3. Communication: Optional relay server with zero-knowledge design

  4. Backup: User-controlled seed phrase backup (no cloud storage)

πŸ”„ Redundant Verification

  • Address validation on both devices during setup

  • Transaction details verification before signing

  • Network-specific validation before broadcast

  • Optional offline operation for maximum security

Data Flow & Storage

SSP Wallet Storage (Browser Extension)

  • βœ… Encrypted with AES-256: BIP48 private key with password-based encryption

  • βœ… Device Fingerprinted: Encryption tied to specific browser and device

  • βœ… Local Storage: Transaction history, contacts via LocalForage

  • βœ… Session Storage: Temporary password caching for user convenience

  • βœ… No Cloud Sync: All data remains on user's local device

SSP Key Storage (Mobile App)

  • βœ… React Native Keychain: iOS Keychain Services/Android Keystore

  • βœ… MMKV Encrypted: High-performance encrypted local database

  • βœ… Device-Specific Encryption: Uses device fingerprint + user PIN/biometric

  • βœ… Biometric Integration: Face ID/Touch ID/Fingerprint authentication

  • βœ… User-Controlled Backup: Seed phrase backup managed by user

SSP Relay Storage (Zero-Knowledge)

  • ❌ No Private Keys: Never sees, stores, or accesses private keys

  • ❌ No Seed Phrases: No access to wallet recovery information

  • βœ… Message Queue: Temporary encrypted message passing only

  • βœ… Blockchain Data: Public UTXO and network information caching

  • βœ… Performance Data: Network fees and transaction estimation

Integration Points

Blockchain Networks (Actual Implementation)

Based on /src/storage/blockchains.ts:

UTXO Networks (Native Multisignature)

  • Bitcoin: P2WSH multisig addresses, RBF support, SegWit optimization

  • Litecoin: P2WSH multisig, 2.5-minute blocks, low fees

  • Dogecoin: P2SH multisig, high throughput, meme-friendly

  • Bitcoin Cash: P2SH multisig, cashaddr format, BCH-specific features

  • Ravencoin: P2SH multisig, asset creation and transfers

  • Zcash: P2SH multisig, transparent addresses (shielded coming)

  • Flux: P2SH multisig, native integration with Flux ecosystem

EVM Networks (ERC-4337 Smart Accounts + Schnorr Signing)

  • Ethereum (Chain ID: 1): Schnorr multisig message signing, Account Abstraction

  • Polygon (Chain ID: 137): Low-cost transactions, full EVM compatibility

  • BSC (Chain ID: 56): High throughput, Binance ecosystem integration

  • Base (Chain ID: 8453): Coinbase L2, optimized user experience

  • Avalanche (Chain ID: 43114): Sub-second finality, C-Chain compatibility

External Service Integration

  • WalletConnect v2: Full protocol support with Schnorr multisig compatibility

  • Onramper: Integrated fiat-to-crypto onramp services

  • Blockbook/Insight: UTXO network APIs for Bitcoin-like chains

  • Alchemy: Premium Ethereum infrastructure provider

  • Etherspot: Account Abstraction bundler services

Performance Characteristics

Network-Specific Optimization

  • UTXO Networks: Efficient UTXO selection and fee optimization

  • EVM Networks: Gas price optimization and transaction batching

  • Cross-Chain: Unified interface across different blockchain architectures

Scaling Capabilities

  • Concurrent Users: Thousands per relay instance

  • Transaction Throughput: Limited by blockchain networks, not SSP

  • Network Efficiency: Optimized API calls and caching strategies

  • Offline Operations: Full functionality without internet connectivity

Monitoring & Health

System Health Indicators

  • 🟒 Device Sync Status: Real-time synchronization between wallet and key

  • 🟒 Network Connectivity: Blockchain node and API endpoint health

  • 🟒 Relay Server Status: Optional communication server availability

  • 🟒 Transaction Queue: Pending and confirmed transaction status

Error Recovery Mechanisms

  • Automatic Reconnection: Network interruption handling

  • State Synchronization: Consistent state across devices and sessions

  • Offline Mode Activation: Seamless QR code fallback

  • Transaction Retry Logic: Failed transaction recovery procedures

Next Steps

Last updated