Offline-first UPI payment system using encrypted mesh routing and deferred settlement — MERN stack with Redis idempotency and hybrid RSA+AES cryptography.

UPI Offline Mesh addresses transaction processing in remote, connectivity-challenged environments. Instead of failing when cellular networks are down, it forms an ad-hoc local peer-to-peer mesh using encrypted network hops. The system secures offline transaction intents client-side using a hybrid cryptographic envelope: encrypting the transactional payload with a fast, ephemeral symmetric AES-256 key, and wrapping that key inside an asymmetric RSA-4096 envelope targeted at the central banking gateway. Transactions propagate through mesh nodes and reside in decentralized queues until any participant touches an internet gateway, initiating deferred batch settlement.
To prevent double-spending and replay attacks in an asynchronous, disconnected environment, the network implements local transaction sequence IDs and client-side idempotency filters backed by a distributed Redis cache. An analytical React dashboard allows administrators to visualize mesh topology, transaction status, routing paths, and key rotation metrics in real time.