Rafu: An Offline-First Ledger for Small Shops with Privacy-Preserving Mobile-Money Reconciliation

Small retail shops such as kiosks, small pharmacies and hardware stores often keep stock and customer credit in paper notebooks, while a growing share of their income arrives as mobile-money transfers announced by text message. Two bookkeeping problems follow: the recorded stock drifts away from the shelf, and it is hard to tell which sale a given payment message settled. This report describes Rafu, an Android application that treats both as ledger problems under three constraints: no dependence on connectivity, no server, and no access to the phone's message inbox. Every quantity change is an append-only stock movement written in the same database transaction as the quantity, and money is represented as 64-bit integers of minor currency units with an ISO 4217 code. Mobile-money sales stay open until a payment message, shared or pasted by the owner, is read by a deterministic rule-based interpreter (English and Arabic, including Arabic-Indic digits), stored as extracted fields with the sender's phone number masked, and matched by amount, currency and time window to open sales, with the owner confirming each match. Several phones in one shop synchronise without a server through per-phone operation journals exchanged as AES-256-GCM encrypted files or over Bluetooth, with a QR code distributing the key. The report describes the algorithms as implemented and reports only quantities verifiable from the source tree; no field evaluation has been carried out. This technical report describes Rafu version 1.5.0 for Android.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-17
DOI
https://doi.org/10.5281/zenodo.24293288
Primary Topic
Mobile and Web Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Rafu: An Offline-First Ledger for Small Shops with Privacy-Preserving Mobile-Money Reconciliation

Saifuddin Ahmed
1 links
Zenodo (CERN European Organization for Nuclear Research)
Mobile and Web Applications
article

Rafu: An Offline-First Ledger for Small Shops with Privacy-Preserving Mobile-Money Reconciliation

Saifuddin Ahmed
article en

Abstract

Small retail shops such as kiosks, small pharmacies and hardware stores often keep stock and customer credit in paper notebooks, while a growing share of their income arrives as mobile-money transfers announced by text message. Two bookkeeping problems follow: the recorded stock drifts away from the shelf, and it is hard to tell which sale a given payment message settled. This report describes Rafu, an Android application that treats both as ledger problems under three constraints: no dependence on connectivity, no server, and no access to the phone's message inbox. Every quantity change is an append-only stock movement written in the same database transaction as the quantity, and money is represented as 64-bit integers of minor currency units with an ISO 4217 code. Mobile-money sales stay open until a payment message, shared or pasted by the owner, is read by a deterministic rule-based interpreter (English and Arabic, including Arabic-Indic digits), stored as extracted fields with the sender's phone number masked, and matched by amount, currency and time window to open sales, with the owner confirming each match. Several phones in one shop synchronise without a server through per-phone operation journals exchanged as AES-256-GCM encrypted files or over Bluetooth, with a QR code distributing the key. The report describes the algorithms as implemented and reports only quantities verifiable from the source tree; no field evaluation has been carried out. This technical report describes Rafu version 1.5.0 for Android.

Zenodo (CERN European Organization for Nuclear Research)
Mobile and Web Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon