Skip to content

Latest commit

ย 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ‰ SOPAN WALLET

Bridging the Divide: Build Anywhere. Pay Offline

Sopan Wallet Logo

Stellar Soroban React Native License

The world's first mobile wallet combining offline-first payments with AI-powered smart contract migration.


๏ฟฝ Quick Links

Download App ย ย ย ย  Watch Demo

Smart Contract ย ย  Live Server


๏ฟฝ๐Ÿ“– What is Sopan?

Sopan Wallet is a revolutionary dual-purpose crypto platform that solves two critical problems in blockchain adoption:

๐ŸŒ Problem 1: Connectivity Barriers

Billions of people live in areas with unreliable internet. Traditional crypto wallets become useless the moment you lose signal, leaving entire communities excluded from the digital economy.

๐Ÿ”ง Problem 2: Developer Migration Friction

The blockchain ecosystem is fragmented. Developers who've built on Ethereum (Solidity) face months of work to migrate their dApps to high-performance networks like Stellar.

โœจ Sopan's Solution

A unified platform that enables offline payments for users and instant smart contract migration for developers.


๐Ÿš€ Dual-Engine Architecture

Sopan is powered by two groundbreaking engines working in tandem:

1๏ธโƒฃ SOPAN CORE (Offline Payments Engine)

The lifeline for unconnected economies.

How It Works:

๐Ÿ“ฑ User A (Offline) โ”€โ”€Bluetoothโ”€โ”€> ๐Ÿ“ฑ User B (Offline)
         โ”‚                                    โ”‚
         โ”‚ (Signs Transaction)                โ”‚ (Verifies Signature)
         โ”‚                                    โ”‚
         โ–ผ                                    โ–ผ
    [Local Queue]                        [Local Queue]
         โ”‚                                    โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Internet Restored โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                          โ”‚
                          โ–ผ
                  ๐ŸŒ Stellar Blockchain
                  (Final Settlement)

Key Features:

  • ๐Ÿ“ก True Offline Mode: Send XLM via Bluetooth Low Energy (BLE) when cellular networks fail
  • ๐Ÿ” Cryptographic Security: Transactions are signed with Ed25519 keys, verified locally
  • ๐Ÿ”„ Intelligent Auto-Sync: The SyncService queues signed transactions and auto-submits when online
  • โšก Near-Instant Finality: Settles on Stellar in 3-5 seconds once broadcasted
  • ๐Ÿ›ก๏ธ Conflict Resolution: Handles sequence number mismatches and balance conflicts automatically

Real-World Use Cases:

  • ๐Ÿ”๏ธ Remote Villages: Farmers transact without cell towers
  • ๐Ÿš‡ Underground Transit: Commuters pay for tickets in subway tunnels
  • ๐ŸŒŠ Maritime Commerce: Fishermen settle payments at sea
  • ๐Ÿš๏ธ Disaster Zones: Emergency aid distribution during network outages

2๏ธโƒฃ SOLUST AI (Smart Contract Bridge)

A powerful AI assistant designed to migrate the world's dApps to Stellar.

How It Works:

๐Ÿ“„ Solidity Contract (.sol)
         โ”‚
         โ–ผ
   ๐Ÿค– Groq AI Analysis
   (Function Extraction)
         โ”‚
         โ–ผ
   ๐Ÿง  Intelligent Transpilation
   (Solidity โ†’ Rust/Soroban)
         โ”‚
         โ–ผ
   ๐Ÿ“ฆ WASM Compilation
         โ”‚
         โ–ผ
   ๐Ÿš€ One-Click Deployment
   (Testnet/Mainnet)
         โ”‚
         โ–ผ
   โœ… Contract ID Generated

Key Features:

  • ๐Ÿง  AI-Powered Analysis: Upload any Solidity contract; Groq AI extracts functions and logic
  • ๐Ÿ”„ Intelligent Conversion: Automatically transpiles to optimized Stellar Rust (Soroban) code
  • ๐Ÿ› ๏ธ Mobile Deployment: Deploy contracts directly from your phoneโ€”no desktop IDE needed
  • ๐Ÿ“ฑ Developer-Friendly: Select specific functions to convert; preview before deployment
  • ๐ŸŒ‰ Ecosystem Bridge: Lowers the barrier for Ethereum developers to enter Stellar

Supported Patterns:

  • โœ… ERC-20 Token Standards โ†’ Stellar Assets
  • โœ… Payment Splitters โ†’ Multi-Operation Transactions
  • โœ… Escrow Contracts โ†’ Time-Locked Payments
  • โœ… DAO Voting โ†’ Weighted Signatures

๐Ÿ’Ž Why Sopan? (Unique Selling Propositions)

For End Users ๐Ÿ‘ฅ

Traditional Wallets Sopan Wallet
โŒ Requires constant internet โœ… Works 100% offline via Bluetooth
โŒ Centralized mobile money (trust required) โœ… Fully decentralized (you hold keys)
โŒ High fees (remittance services) โœ… Fraction-of-a-cent fees (Stellar)
โŒ Vulnerable to SIM swapping โœ… Cryptographically secured

For Developers ๐Ÿ‘จโ€๐Ÿ’ป

Manual Migration Solust AI
โŒ Weeks of rewriting code โœ… 5-second AI conversion
โŒ Requires Rust expertise โœ… No Rust knowledge needed
โŒ Desktop IDE mandatory โœ… Deploy from mobile device
โŒ Trial-and-error debugging โœ… AI-optimized output

๐Ÿ”— Smart Contract Details

Sopan runs on custom Soroban logic for fee routing and treasury management.

  • Contract ID: CBV5C5JWPKNZKR6TZN7K65P7WRN2OCRUUT7ZCGL5O4A3YBXU4SKS3524
  • Network: Stellar Testnet
  • Language: Rust (Soroban SDK)
  • Purpose: Automatic 0.01% fee distribution to sustain the ecosystem

This contract ensures that for every offline transaction synced, a micro-fee is transparently routed to the service treasury, creating a sustainable economic model.


๐Ÿ› ๏ธ Technology Stack

Mobile Application

Component Technology
Framework React Native (Expo SDK 54)
Language TypeScript 5.3.0
Communication react-native-ble-plx (Bluetooth)
Storage expo-secure-store (Keys), AsyncStorage (Metadata)
UI/UX expo-linear-gradient, react-native-reanimated
QR Codes expo-camera, react-native-qrcode-svg
Biometrics expo-local-authentication

Blockchain Layer

Component Technology
Network Stellar (Testnet/Mainnet)
SDK @stellar/stellar-sdk 13.0.0
Smart Contracts Rust + Soroban SDK
Cryptography tweetnacl (Ed25519), @noble/hashes

AI & Backend

Component Technology
AI Model Groq (Llama 3.1 70B)
Server Node.js / Express
Containerization Docker
Deployment Railway (Production)
Live API https://sopan-wallet-production.up.railway.app

๐ŸŽฏ Feature Comparison

Feature Sopan Traditional Wallets Mobile Money Apps
Offline Payments โœ… โŒ โš ๏ธ (Centralized)
Decentralized โœ… โœ… โŒ
Low Fees (<$0.01) โœ… โš ๏ธ (Varies) โŒ
Smart Contract Support โœ… โš ๏ธ (Limited) โŒ
AI Dev Tools โœ… โŒ โŒ
Mobile Deployment โœ… โŒ โŒ
Biometric Security โœ… โš ๏ธ (Some) โš ๏ธ (Some)

๐Ÿ”ฎ Future Roadmap

Phase 1: Foundation (โœ… Completed)

  • Offline BLE payments
  • Stellar integration
  • Solust AI transpilation
  • Mobile deployment

Phase 2: Enhancement (๐Ÿšง In Progress)

  • Mesh networking (multi-hop offline transactions)
  • Hardware wallet support (Ledger/Trezor)
  • Cross-border remittance anchors
  • Advanced conflict resolution algorithms

Phase 3: Ecosystem (๐Ÿ“… Planned)

  • Merchant POS mode
  • Multi-signature wallets
  • Decentralized identity (DID) integration
  • NFT support on Stellar

๐Ÿ“ฆ Quick Start

Prerequisites

  • Node.js 18+
  • Expo CLI
  • Android Studio (for Android builds)

Installation

# Clone the repository
git clone https://github.com/Anidipta/Sopan-Wallet.git
cd Sopan-Wallet/mobile

# Install dependencies
npm install

# Start development server
npx expo start

# Build for Android
eas build -p android --profile preview

Environment Variables

Create a .env file in /mobile:

GROQ_API_KEY=your_groq_api_key
SERVER_URL=https://sopan-wallet-production.up.railway.app

๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐ŸŒŸ Acknowledgments

  • Stellar Development Foundation for the robust blockchain infrastructure
  • Groq for lightning-fast AI inference
  • Expo Team for the incredible mobile development platform
  • Open Source Community for the libraries that power this project

Empowering the Unconnected Economy
Built with โค๏ธ by the Sopan Team

โญ Star us on GitHub โ€ข ๐Ÿ› Report Bug โ€ข ๐Ÿ’ก Request Feature