Mesh-Routed Deferred Settlement: A Proof-of-Concept Architecture for Offline Digital Payments

Authors

  • Rimmy
  • Sumit Bachhar
  • Ujjwal
  • Shivansh Walia
  • Riyanshu Saini

Keywords:

Deferred settlement, Hybrid encryption, Idempotency, Offline payments, Optimistic concurrency control

Abstract

Digital payment systems such as India’s Unified Payments Interface (UPI) require continuous connectivity at the moment of payment, an assumption that fails in basements, remote regions, and during network outages. This study describes a proof-of-concept implementation of Mesh-Routed Deferred Settlement, focusing on offline payment creation, hop-by-hop message relay, and deferred backend settlement after connectivity is restored. Three threats in this setting are addressed: loss of confidentiality and integrity through intermediate carriers, mitigated by hybrid RSA-OAEP and AES-256-GCM encryption; duplicate settlement caused by concurrent uploads, prevented through an atomic idempotency claim based on the SHA-256 hash of the ciphertext; and replay of captured packets, mitigated by a bounded freshness window and per-payment nonces. Settlement runs in one atomic transaction with optimistic concurrency control and a database uniqueness constraint as a backstop. A Spring Boot backend with a software-simulated mesh reproduces the full packet lifecycle, and automated tests cover encryption correctness, tamper rejection, and exactly-once settlement under concurrent delivery. The central limitation of deferred settlement is that, because the backend cannot verify the payer’s balance during offline transit, multiple offline payments may collectively exceed the available funds.

References

L. Aboulaiz, B. Akintade, H. Daud, M. Lansey, M. Rodden, L. Sawyer, and M. Yip, “Offline Payments: Implications for Reliability and Resiliency in Digital Payment Systems,” FEDS Notes, Board of Governors of the Federal Reserve System, Washington, DC, USA, Aug. 16, 2024.

Press Information Bureau, Government of India, “UPI: Transforming India’s Payment Landscape,” PIB Research Factsheet, Aug. 24, 2026.

K. Fall, “A Delay-Tolerant Network Architecture for Challenged Internets,” in Proceedings of the 2003 Conference on Applications, Technologies, Architectures, and Protocols for Computer Communications, Karlsruhe, Germany, Aug. 2003, pp. 27–34.

A. Demers et al., “Epidemic algorithms for replicated database maintenance,” ACM SIGOPS Operating Systems Review, vol. 22, no. 1, pp. 8–32, Jan. 1988.

K. Moriarty, Ed., B. Kaliski, J. Jonsson, and A. Rusch, “PKCS #1: RSA Cryptography Specifications Version 2.2,” RFC 8017, Internet Engineering Task Force, Nov. 2016.

National Institute of Standards and Technology, M. J. Dworkin, M. Sonmez Turan, and N. Mouha, Advanced Encryption Standard (AES), Federal Information Processing Standards Publication (FIPS PUB) 197-upd1, May 2023.

M. J. Dworkin, Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC, NIST Special Publication 800-38D, Nov. 2007.

National Institute of Standards and Technology and Q. H. Dang, Secure Hash Standard (SHS), Federal Information Processing Standards Publication (FIPS PUB) 180-4, Aug. 2015.

P. Helland, “Idempotence is not a medical condition,” ACM Queue, vol. 10, no. 4, pp. 30–46, Apr. 2012.

H. T. Kung and J. T. Robinson, “On optimistic methods for concurrency control,” ACM Transactions on Database Systems, vol. 6, no. 2, pp. 213–226, Jun. 1981.

B. Yang, Y. Zhang and D. Tong, "DOPS: A Practical Dual Offline Payment Scheme of CBDC for Mobile Devices," 2023 IEEE 22nd International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), Exeter, United Kingdom, 2023, pp. 1835-1844.

Published

2026-10-27