This project aims to develop a robust wallet, built on top of the TBDex protocol for unlocking frictionless commerce and financial access globally, for efficient and secure cross-border payment system. OUr solution leverages modern technologies and architectural patterns to address the complexities of international money transfers, focusing on speed, cost-effectiveness, and regulatory compliance.
Traditional cross-border payments face several challenges:
- Hight fees and hidden costs
- Slow transaction speeds
- Lack of transparency in exchange rates and transaction status
- Complexity in navigating different regulatory environments
- Security concern and fraud risks Our system aims to address these issues by providing a streamlined, transparent, and secure platform for international money transfers.
We've adopted a micro-service architecture to ensure modularity, scalability, and ease of maintenance. The system is built on a cloud-native infrastructure, utilising containerisation and orchestration technologies.
+----------------+ +----------------+ +----------------+
| User | | Payment | | Currency |
| Interface | <- | Processing | <- | Exchange |
| Service | | Service | | Service |
+----------------+ +----------------+ +----------------+
^ ^ ^
| | |
v v v
+----------------+ +----------------+ +----------------+
| Authentication| | Compliance | | TbDex |
| & Authorization| | Service | | protocol |
+----------------+ +----------------+ +----------------+
^ ^ ^
| | |
v v v
+----------------+ +----------------+ +----------------+
| Notification | | TbDex pro- | | Partner Fin- |
| Service | | tocol. | | anceial Inst. |
+----------------+ +----------------+ +----------------+
- Decoupled Services: Each micro-service is responsible for a specific business capability, allowing for independent scaling and deployment.
- Event-Driven Architecture: Asynchronous communication between services using message queues ensures loose coupling and improve system resilience.
- **API Gateway: **Centralised entry point for all client requests, handling authentication, rate limiting, and request routing
- **Data Consitency: **Implementing the saga pattern for distributed transaction to maintain data consistency across services.
- **Observability: **Comprehensive logging, monitoring, and tracing across all services for easier debugging and performance optimisation.
- **Regulatory Compliance: **Built-in compliance checks and audit trails to meet international financial regulations.
- Backend: NodeJS, NextJS server actions for simplicity of implementation with the client., HonoJS for proxy services and speed.
- **Frontend: **React with Typescript.
- **Databse: **SQLite for lightweight transactional data
- **Message Broker: **NATS.io, nats-ws (websocker)
- **CI/CD: **Github actions
- **Monitoring: **Prometheus, Grafana, ELK Stack
- User interface: Handles user interactions where user chooses currency pairs to swap/convert, interact with PFI's, and presenting users with the best option in terms of their filter as well as comparability functionality for users to compare between multiple offers, and process their payments
- Payment processing service: Finalising payment is outside fo TBDex there was a need for a payment processing service to enable smooth transaction flow after an agreement has been reached with PFI
- Compliance Service: KYC/AML checks and regulatory reporting.
- TBDex Service: Create user DID's and issue verifiable credentials. Securely store user VC's. Seamlessly retrieve and provided user VC to requesting PFI
- User initiates a transaction through the UI interface.
- Transaction request is validated and routed to the TBDex service to fetch PFI offerings.
- Compliance Service performs necessary checks for new users.
- Currency Exchange Service calculates the exchange rate.
- Payment Processing Service coordinates the transaction execution.
- Notification Service keeps the user informed throughout the process.
- End-to-end encryption for all data in transit and at rest
- Multi-factor authentication for user accounts
- Regular security audits and penetration testing
- Compliance with PCI DSS for handling payment card information
- Implement rate limiting and fraud detection algorithms
- Horizontal scaling of micro-services based on load
- Database sharding for improved read/write performance
- Caching layer (e.g., Redis) for frequently accessed data
- CDN integration for static assets and improved global performance
- Integration with blockchain networks for certain payment corridors
- AI-powered fraud detection system and reputation analysis
- Expansion of supported currencies and payment methods
- Mobile app development for iOS and Android platforms
- Enhanced analytics and business intelligence features
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about the project and TBDex, take a look at the following resources:
- TBDex Developer Documentation - learn about TBDex SDKs and API.
- Learn Next.js - an interactive Next.js tutorial.
The easiest way to deploy the project is to use the Vercel Platform
Check out our Next.js deployment documentation for more details.