How rshakib/dpt works
DPT is a mobile digital-wallet and banking app. Users activate or log in, reach a dashboard, and use flows for transfers, QR/NFC payments, bills, recharge, and cash-out; transaction screens lead to processing and results. Auth, security, local storage, and background synchronization support those flows, while Android code provides NFC host-card emulation and keystore capabilities. The map reflects the sampled sources and SOURCE INDEX references; several route implementations and native registration details were not inspected, so uncertain connections are omitted.
Main entry points: db.ts Local wallet database · AuthContext.tsx Session management · TransactionProcessingView.tsx Transaction processing · sync.ts Offline synchronization
Components 24
Wallet experience
- Onboarding and login
src/app/login.tsx - Wallet dashboard
src/app/dashboard.tsx - Money movement
src/app/send-money.tsx - QR payments
src/app/qr-pay.tsx - NFC transfers
src/app/nfc-transfer.tsx - Bills and recharge
src/app/bills.tsx - Transaction processing
src/components/TransactionProcessingView.tsx - Transaction results
src/app/transaction-result.tsx
Identity and security
- Transaction authorization
src/components/TransactionAuthScreen.tsx - Session management
src/context/AuthContext.tsx - PIN security
src/utils/security.ts - Device cryptography
src/services/crypto.ts
Wallet services
- Backend API
src/services/api.ts - Offline synchronization
src/services/sync.ts - Local wallet database
src/services/db.ts - Transaction mapping
src/utils/transactionMapper.ts - NFC service
src/services/nfc.ts
Android capabilities
- HCE bridge
android/app/src/main/java/com/riajulshakib/dptapp/DptHceModule.kt - Card emulation service
android/app/src/main/java/com/riajulshakib/dptapp/DptHceService.kt - Android keystore
android/app/src/main/java/com/riajulshakib/dptapp/DptKeystoreModule.kt
Other components
- Wallet user
- Wallet backend
- SQLite
- Platform secure storage
Connections 39
- Wallet user → Onboarding and login: starts
- Wallet user → Wallet dashboard: uses
- Wallet dashboard → Backend API: fetches wallet data
src/app/dashboard.tsx - Wallet dashboard → Local wallet database: reads cached data
src/app/dashboard.tsx - Wallet dashboard → Offline synchronization: subscribes to sync
src/app/dashboard.tsx - Wallet dashboard → Transaction mapping: maps transactions
src/app/dashboard.tsx - Onboarding and login → Session management: authenticates
- Session management → Backend API: calls API
src/context/AuthContext.tsx - Session management → Local wallet database: clears user cache
src/context/AuthContext.tsx - Session management → Offline synchronization: starts sync
src/context/AuthContext.tsx - Session management → PIN security: saves PIN hash
src/context/AuthContext.tsx - Session management → Device cryptography: generates keys
src/context/AuthContext.tsx - Money movement → Transaction processing: submits transaction
- QR payments → Backend API: calls API
src/app/qr-pay.tsx - QR payments → Local wallet database: uses local data
src/app/qr-pay.tsx - QR payments → Device cryptography: uses cryptography
src/app/qr-pay.tsx - QR payments → Offline synchronization: uses synchronization
src/app/qr-pay.tsx - NFC transfers → NFC service: uses NFC
src/app/nfc-transfer.tsx - NFC transfers → Local wallet database: uses local data
src/app/nfc-transfer.tsx - NFC transfers → Offline synchronization: uses synchronization
src/app/nfc-transfer.tsx - NFC transfers → PIN security: checks security
src/app/nfc-transfer.tsx - NFC transfers → Transaction authorization: renders authorization
src/app/nfc-transfer.tsx - Bills and recharge → Transaction processing: submits transaction
- Transaction processing → Backend API: calls API
src/components/TransactionProcessingView.tsx - Transaction processing → Device cryptography: uses cryptography
src/components/TransactionProcessingView.tsx - Transaction processing → Local wallet database: uses local data
src/components/TransactionProcessingView.tsx - Transaction processing → Offline synchronization: uses synchronization
src/components/TransactionProcessingView.tsx - Transaction processing → PIN security: checks security
src/components/TransactionProcessingView.tsx - Transaction authorization → PIN security: verifies PIN
src/components/TransactionAuthScreen.tsx - Transaction authorization → Backend API: uses API
- Transaction results → Wallet user: shows outcome
- Backend API → Wallet backend: sends requests
src/services/api.ts - Offline synchronization → Backend API: fetches and submits
src/services/sync.ts - Offline synchronization → Local wallet database: reads and updates
src/services/sync.ts - Local wallet database → SQLite: stores wallet data
src/services/db.ts - Local wallet database → Platform secure storage: stores queued secrets
src/services/db.ts - HCE bridge → Card emulation service: uses service
android/app/src/main/java/com/riajulshakib/dptapp/DptHceModule.kt - NFC service → HCE bridge: bridges to native NFC
- Session management → Android keystore: uses native keys