Context
ENZONA is Cuba’s national digital payments platform: an Android banking app with payments and transfers, real-time messaging and map-based location services. It is a security-critical system used across the country, with over 10 million downloads.
My role
I was a founding member of the project and its lead mobile developer for almost 8 years at Xetid. I designed and built the whole Android architecture and kept a nationwide platform stable in production.
Stack and architecture
- Native Java with an MVVM architecture.
- SQLCipher for the encrypted local database.
- MQTT and XMPP (Smack) for real-time messaging and transactions.
- Retrofit for the API, Lottie for animations and Sentry for production errors.
- WorkManager for background tasks and OpenStreetMap for maps.
- Security: biometric authentication, two-factor authentication and RSA encryption.
- Tests with JUnit and Mockito.
Technical decisions
- Encrypted local storage. In a payments app, data stored on the phone must be encrypted too. I integrated SQLCipher, backed by my background in cryptography.
- Real-time messaging with MQTT and XMPP. MQTT, because it’s lightweight, for transaction notifications: it copes well with unstable connections and slow networks. XMPP (with Smack) for chat.
- Native Java. When development started, Kotlin wasn’t yet the language Google recommended for Android.
- OpenStreetMap for maps. Some services, such as Google’s maps, are blocked in Cuba, so an open alternative was needed.