Conference PaperPDF Available

Demo: A Delay-Tolerant Payment Scheme on the Ethereum Blockchain

Authors:

Abstract and Figures

Cash-less payment via a variety of credit, debit or prepaid cards is pervasive in our inter-connected society, but not so ubiquitous in remote rural regions where network connectivity is intermittent. We proposed a cash-less payment scheme for remote villages based on blockchains that allows to maintain a record of verifiable transactions in a distributed manner. We overcome the limitations of intermittent network connectivity by solely relying on blockchain mining nodes in the village for transaction processing and verification. The bank joins as a peer and monitors node behaviors, rewards miners and processes currency exchanges whenever the connectivity is available. We take advantage of the Ethereum network to develop our solution and demonstrate the feasibility of the proposed system on off-the-self computing devices. We emulate a remote village scenario with intermittent network connectivity and show the robustness and reliability of the proposed system.
Content may be subject to copyright.
Demo: A Delay-Tolerant Payment Scheme on
the Ethereum Blockchain
Ahsan Manzoor, Yining Hu∗†, Madhusanka Liyanage, Parinya Ekparinya,§, Kanchana Thilakarathna§,
Guillaume Jourjon, Aruna Seneviratne∗†, Salil Kanhereand Mika E Ylianttila,
University of Oulu, Finland, University of New South Wales, Australia,
Data61-CSIRO, Australia, §University of Sydney, Australia
Email: firstname.lastname@data61.csiro.au, firstname.lastname@oulu.fi, §pekp6601@uni.sydney.edu.au,
firstname.lastname@unsw.edu.au, §kanchana.thilakarathna@sydney.edu.au
Abstract—Cash-less payment via a variety of credit,
debit or prepaid cards is pervasive in our interconnected
society, but not so ubiquitous in remote rural regions
where network connectivity is intermittent. We proposed
a cash-less payment scheme for remote villages based on
blockchains that allow maintaining a record of verifiable
transactions in a distributed manner. We overcome the
limitations of intermittent network connectivity by solely
relying on blockchain mining nodes in the village for
transaction processing and verification. The bank joins as
a peer and monitors node behaviors, rewards miners and
processes currency exchanges whenever the connectivity
is available. We take advantage of the Ethereum network
to develop our solution and demonstrate the feasibility of
the proposed system on off-the-shelf computing devices. We
emulate a remote village scenario with intermittent network
connectivity and show the robustness and reliability of the
proposed system.
I. INTRODUCTION
Mobile operators starting businesses in rural areas
often face challenges associated with limited roadway
connectivity, high equipment maintenance and protection
costs, and high staff salaries. As a consequence, most
of the pervasive services that are taken for granted in
always-connected regions cannot be provided in real-
time in these connectivity-restricted environments. This
has led to the development of techniques to support
services masking intermittent connectivity [7], [6].
One of the services in high demand is banking. The
unreliable connectivity and high cost of transport and
infrastructure make it hard and impractical for banks to
build branches or set up ATMs in some rural regions. The
only possibilities have been to leverage the short message
service (SMS) or Unstructured Supplementary Service
Data (USSD) of cellular networks. This is exemplified
by the BAAC in Thailand [3] and the mBank in the
Philippines [1]. However, a lack of proper encryption on
SMS messages makes them insecure and hence require
additional verifications that inevitably cause more burden
for the customers, while USSD is session-based and
does not enable local storage so users can only access
their account information within certain sessions. More
recently, cryptocurrencies have received massive atten-
tion and are regarded by many as a potential revolution
of the banking industry [4]. The technology behind,
the blockchain, is secured by hard-coded programs
and enables peer democracy for transaction verification.
Global-level cryptocurrencies such as Bitcoin [5] and
Ethereum [8] rely on consistent network connectivity for
data exchange are not accessible for rural communities
with intermittent connectivity. Nonetheless, if blockchain
could be made to work in intermittently connected
environments, it will be possible to deliver augmented
banking services to remote regions.
Without being always connected to the broader Inter-
net, a reliable local connectivity could be accomplished,
for example, with the Nokia Kuha [2] small-cell base
stations that are on the one hand connected to the wider
Internet intermittently and on the other hand offering 4G
coverage within the village. In our system design, a bank,
which leads the deployment of the system, utilizes the
intermittent connectivity and only periodically accesses
the village network to monitor system operation. Instead
of building physical infrastructures such as branches or
ATMs, the bank distributes the verification and storage
tasks to villagers through a self-regulated system that
is able to process and record transactions securely. In
the case of blockchains, this can be achieved by bank
supplying mining equipment and granting permissions
to selected (trusted) volunteers1.
In this demo, we show the viability of realizing the
proposed architecture through a prototype implemen-
tation with off-the-shelf laptops and mobile devices.
Section II describes the system architecture and Section
III presents a prototype implementation. Section IV gives
an overview of the showcase we intend to present at the
Demo Session, followed by Section V which specifies a
set of technical requirements.
II. SY ST EM ARCHITECTURE
Our system design enables seamless use of cash-less
payment within a remote community that is intermit-
1A teaser video about this demonstration is published here:
https://research.csiro.au/ng/research/network-measurement-modelling/
distributed-delay-tolerant-payment-blockchains/978-1-5386-4725-7/18/$31.00 c
2018 IEEE
tently connected to the bank’s central network. Figure 1
graphically illustrates the scenario where a local operator
provides a 4G LTE cellular network coverage to the
inhabitants via a base station, similar to Nokia Kuha
[2]. The backhaul network can be an unreliable low-
bandwidth satellite or a long-range microwave connec-
tion. We propose to use a private Ethereum blockchain
[8] for transaction processing within the village, restrict-
ing mining rights to only a set of qualified (trusted) users.
We also create our own Token2for money circulation
in the local community that behave similarly to Ethers
except they are issued via a smart contract by the bank.
Figure 1: System architecture.
The proposed network consists of three types of nodes,
i.e. miners,full nodes and light nodes hosted by three
different players, i.e. the bank,vendors and regular
users. The bank distributes authorized mining equipment
to a set of selected villagers and compensates them for
the electricity power consumed leveraging the Token-
based rewarding scheme of Ethereum through a smart
contract. Vendors may choose to implement full nodes
as payment gateways and keep a complete transactional
record. Regular users with mobile devices can join the
system by running light nodes that are deployed in the
form of a customized wallet app. Miners and full nodes
require dedicated computing resources and are preferred
to always be active. In order to monitor the village
network and keep track of transactions, the bank operates
a passive full node, which does not create any forks even
in an intermittently connected, asynchronous setting.
The bank creates one fiat account and one digital
account for each user to record the user balance in
both currencies. When the connection between the bank
and the village is established, it synchronizes with other
blockchain nodes, updates user balances and processes
requests for money exchange transactions. The bank also
2https://www.ethereum.org/token
takes necessary actions in case of malicious behaviors
such as suspicious transactions, network partitioning and
misbehaving miners.
III. PROTOTYPE SETUP
We demonstrate the feasibility of the system design
with a prototype implementation containing a private
Ethereum blockchain with an intermittently connected
bank node.
Figure 2 illustrates the setup containing a bank full
node, 2 shops, and 3 regular users. Each shop runs a
mining node and in addition, Shop 1 owns two full
nodes and Shop 2 owns one full node. Regular User
3 operates a miner while the other two regular users are
light mobile clients. Table I summarizes the devices and
geth versions. We implemented NFC (Near Field Com-
munication) and QR (Quick Response) code capabilities
on full node payment gateways to improve usability.
Figure 2: Prototype implementation
We used a D-Link DSR-250N Wi-Fi router to repre-
sent the community base station and an IEEE 802.11n
Wi-Fi network to interconnect the above nodes except
the bank node which periodically joins the blockchain
via the Wi-Fi router’s public network interface. We
used the auto-discovery protocol of geth to connect
different nodes, and configured the bank node’s backhaul
bandwidth via the router’s WAN port. A summary of
devices and their capabilities are presented in Table I.
Table I: Devices and their capabilities.
Miner Full node
(incl. bank) Light node
Device Dell Latitude
6430u
Raspberry Pi
3
Google Pixel
XL
# of nodes 3 4 1
OS Ubuntu 17.04 Raspbian
Jessie
Android
v8.1.0
Geth v1.6.5 v1.6.5 v1.6.7
A. Bank Node
The bank application is developed on python 2.7.12
to update the account information. It is implemented
on a Raspberry Pi 3, which also acts as an ethereum
full node. The application is synced with the blockchain
using the Python-JSON RPC library 3. It keeps track
3https://github.com/ConsenSys/ethjsonrpc
of the connectivity and update the account balances in
SQLite database.
B. NFC and QR code enabled Payment Gateway
Payment gateway is designed by connecting an
Adafruit PN532 NFC module with a Raspberry Pi 3(Fig-
ure 3). A customized application is designed as the user
interface on python 2.7.12.
Figure 3: Payment Gateway
C. Mobile Wallet App
We developed the mobile wallet app (Figure 4) in
Android Studio 3.0. The wallet app is connected to the
blockchain as a light node, which submits and retrieves
the transactions directly to/from the blockchain. Both
NFC and QR code based payment modes are embedded
in the app. The app also shows the account balance and
recent transaction history.
Figure 4: Mobile Wallet Application
IV. DEM ON ST RATION AND IN TE RACTION
In our demonstration, we will visualize the process
from the initiation of a transaction until it is received
by the recipient. We will demonstrate the two scenarios
and attendees will be able to interact with both. First,
the update on the mobile wallet and vendor’s payment
gateway after performing a payment (via NFC or QR
code). Second, the bank node synchronization after a
disconnection period.
Figure 5: Demonstration Flowchart
A. Payment at a shop
Initially, the vendor enters the requested payment
amount in the payment gateway. Then, a mobile user
can select the preferred payment method (i.e. NFC or
QR code) based on the capabilities of his phone. Once
confirmed, the transaction is submitted to blockchain
and the amount will be deducted from the user balance.
The payment gateway receives a confirmation of the
submitted transaction from the blockchain. The vendor’s
balance is updated once the transaction is confirmed by
miners. In this scenario, the attendee will be able to
interact as a customer/user. They can either download
the developed mobile wallet application on their mobile
phone or use one of the authors mobile, with the pre-
installed wallet application.
B. Bank Node Synchronization
First, we disconnect the bank node manually for a
certain period of time (e.g. 60 seconds), during which
user account balances at the bank node are frozen.
Meanwhile, we or the attendees will perform several
transactions within the village. Then, we reconnect the
bank node to the network and show the synchronization
of the bank node as well as the updates in the recorded
user balances.
V. TECHNICAL REQUIREMENTS
We will require 3 laptops as miners, 3 Raspberry
Pis with displays (for bank node and two payment
gateways), one Wi-Fi router with Ethernet cable as the
base station and two mobile phones (to demonstrate the
mobile wallet). Authors will bring the above equipment.
In addition, we need a 24" monitor with VGA cables
from the organizers to display the vendor wallets.
REFERENCES
[1] “mbank in the philippines,” https://www.ifc.org/wps/wcm/
connect/4a31de0047c34567963ff7299ede9589/Tool+11.2+Mobil+
Finan+Serv+Philippines+1-29- 15.pdf?MOD=AJPERES, [Online;
accessed 11-November-2017].
[2] “KUHA Mobile Network,” https://www.kuha.io, 2017, [Online;
accessed 19-September-2017].
[3] D. Fitchett, “Bank for agriculture and agricultural cooperatives
(baac), thailand (case study),” Washington DC: Consultative Group
to Assist the Poorest (CGAP) Working Group on Savings Mobi-
lization, 1999.
[4] T. J. MacDonald, D. W. Allen, and J. Potts, “Blockchains and the
boundaries of self-organized economies: predictions for the future
of banking,” in Banking Beyond Banks and Money. Springer,
2016, pp. 279–296.
[5] S. Nakamoto, “Bitcoin: A peer-to-peer electronic cash system,”
2008.
[6] A. S. Pentland, R. Fletcher, and A. Hasson, “Daknet: Rethinking
connectivity in developing nations,Computer, vol. 37, no. 1, pp.
78–83, Jan. 2004. [Online]. Available: http://dx.doi.org/10.1109/
MC.2004.1260729
[7] R. C. Shah, S. Roy, S. Jain, and W. Brunette, “Data mules:
modeling a three-tier architecture for sparse sensor networks,” in
Proceedings of the First IEEE International Workshop on Sensor
Network Protocols and Applications, 2003., May 2003, pp. 30–41.
[8] G. Wood, “Ethereum: A secure decentralised generalised transac-
tion ledger,Ethereum Project Yellow Paper, vol. 151, 2014.
... As a fully decentralized technology, blockchain can play a significant role in the provision of such medical services. The healthcare industry benefits significantly from blockchain-based, which guarantees safe data storage and sharing between stakeholders, countrywide data interoperability, and customizable and rapid invoicing modalities [4]. ...
Article
Full-text available
The medical sector actively changes and implements innovative features in response to technical development and revolutions. Many of the most crucial elements in IoT-connected health services are safeguarding critical patient records from prospective attackers. As a result, BlockChain (BC) is gaining traction in the business sector owing to its large implementations. As a result, BC can efficiently handle everyday life activities as a distributed and decentralized technology. Compared to other industries, the medical sector is one of the most prominent areas where the BC network might be valuable. It generates a wide range of possibilities and probabilities in existing medical institutions. So, throughout this study, we address BC technology's widespread application and influence in modern medical systems, focusing on the critical requirements for such systems, such as trustworthiness, security, and safety. Furthermore, we built the shared ledger for blockchain-based healthcare providers for patient information, contractual between several other parties. The study's findings demonstrate the usefulness of BC technology in IoHT for keeping patient health data. The BDSA-IoHT eliminates 2.01 seconds of service delay and 1.9 seconds of processing time, enhancing efficiency by nearly 30%.
... All transactions are stored in a blockchain during the disconnection periods. The bank updates the fiat currency accounts based on the blockchain entries when connected [150,120]. Charity Embed a geo-location signature on digital currencies in donation [207,126]. ...
Chapter
Blockchains are decentralized, distributed, and immutable ledgers that can execute contracts on the blockchain, called smart contracts. Blockchain-based smart contracts have different challenges, opportunities, and applications in various fields like cryptocurrency systems, real estate, agriculture, logistics, and fire industry. The codes that can be executed and which operate on top of a blockchain to facilitate, implement, and enforce agreements between numerous parties in the absence of a trusted third party are called smart contracts. This chapter uses a taxonomy to classify different processes, such as comparing and contrasting the strengths and weaknesses of various methods and identifying research gaps and unanswered questions. The chapter also outlines some promising research guidelines for blockchain-based smart contracts and discusses the benefits and challenges. Researchers and practitioners in the field of blockchain-based smart contracts may find this chapter useful because it offers an overview of current and emerging developments in the field.
Chapter
Blockchains are decentralized, distributed, and immutable ledgers that can execute contracts on the blockchain, called smart contracts. Blockchain-based smart contracts have different challenges, opportunities, and applications in various fields like cryptocurrency systems, real estate, agriculture, logistics, and fire industry. The codes that can be executed and which operate on top of a blockchain to facilitate, implement, and enforce agreements between numerous parties in the absence of a trusted third party are called smart contracts. This chapter uses a taxonomy to classify different processes, such as comparing and contrasting the strengths and weaknesses of various methods and identifying research gaps and unanswered questions. The chapter also outlines some promising research guidelines for blockchain-based smart contracts and discusses the benefits and challenges. Researchers and practitioners in the field of blockchain-based smart contracts may find this chapter useful because it offers an overview of current and emerging developments in the field.
Article
Blockchain platforms and languages for writing smart contracts are becoming increasingly popular. However, smart contracts and blockchain applications are developed through non-standard software life-cycles, in which, for instance, delivered applications can hardly be updated or bugs resolved by releasing a new version of the software. Therefore, this systematic literature review oriented to software engineering aims at highlighting current problems and possible solutions concerning smart contracts and blockchain applications development. In this paper, we analyze 96 articles (written from 2016 to 2020) presenting solutions to tackle software engineering-specific challenges related to the development, test, and security assessment of blockchain-oriented software. In particular, we review papers (that appeared in international journals and conferences) relating to six specific topics: smart contract testing, smart contract code analysis, smart contract metrics, smart contract security, Dapp performance, and blockchain applications. Beyond the systematic review of the techniques, tools, and approaches that have been proposed in the literature to address the issues posed by the development of blockchain-based software, for each of the six aforementioned topics, we identify open challenges that require further research.
Article
Full-text available
The current e-commerce payment systems for credit or check cards require a payment gateway (PG). This incurs PG fees, which in turn increases the cost of engaging in e-commerce. This paper proposes a simple payment model that uses basic cryptocurrency features, such as public key, private key, and digital signature, to eliminate the need for transaction intermediaries such as public key certificate and PG. This model can process e-commerce payments without registering additional public key certificate, public key, or private key. The use of a digital signature guarantees the integrity and nonrepudiation of electronic payments, besides eliminating the fees for intermediary services such as PG, thereby reducing the overall cost of operating e-commerce services. This proposal is crucial as it is the first attempt to apply blockchain technology to e-commerce payment services. In addition, our model is important because it not only supports the evolution of e-commerce payment technology but also enhances the competitive advantage of using e-commerce.
Article
Full-text available
Blockchain is one of the disruptive technical innovation in the recent computing paradigm. Many applications already notoriously hard and complex are fortunate to ameliorate the service with the blessings of blockchain and smart contracts. The decentralized and autonomous execution with in-built transparency of blockchain based smart contracts revolutionize most of the applications with optimum and effective functionality. The paper explores the significant applications which already benefited from the smart contracts. We also highlight the future potential of the blockchain based smart contracts in these applications perspective.
Article
Full-text available
With the rapid development of Information Technology (IT) industries, data or information security has become one of the critical issues. Nowadays, Blockchain technology is widely using for improving data security. It is a tool for the individual and organization to interchange the digital asset without the intervention of a trusted third party i.e. a central administrator. This technology has given the ability to create digital tokens for representing assets, innovation and likely reshaping the scenery of entrepreneurship. Blockchain has several key properties, such as decentralization, immutability and transparency without using a trusted third party. It can be used in several fields, such as healthcare, digital voting, Internet of Things (IoT) and many more. This study aims to discuss the fundamentals of Blockchain. In this paper, the technology or working procedure of Blockchain including many applications in several fields are discussed. Finally, future work directions and open research challenges in the domain of Blockchain have been also discussed in detail.
Article
Full-text available
Despite the growing interest in cryptocurrencies, the delays incurred to confirm transactions are one of the factors that hamper the wide adoption of systems such as Bitcoin. Bitcoin transactions usually are confirmed in short periods (minutes), but still much larger than conventional credit card systems (seconds). In this work, we propose a framework encompassing machine learning and a queueing theory model to (i) identify which transactions will be confirmed; and (ii) characterize the confirmation time of confirmed transactions. The proposed queueing theory model accounts for factors such as the activity time of blocks and the mean time between transactions. We parameterize the model for transactions that are confirmed within minutes, suggesting that its integration into a more general framework is a step towards building scalability to Bitcoin.
Chapter
This chapter uses economic theory to explore the implications of blockchain technology on the future of banking. We apply an economic analysis of blockchains based on both new institutional economics and public choice economics. Our main focus is on the economics of why banks exist as organizations (rather than a world in which all financial transactions occurring in markets), and how banks are then impacted by technological change that affects transaction costs. Our core argument is that blockchains are more than just a new technology to be applied by banks, but rather compete with banks as organizations, enabling banking transactions to shift out of centralized hierarchical organizations and back into decentralized markets. Blockchains are a new institutional technology—because of how they affect transaction costs in financial markets—that will fundamentally re-order the governance of the production of banking services. We then explore this implication through broader political economy lens in which banking moves out of organizations and deeper into markets. We examine this as a form of institutional economic evolution in which the boundary of catallaxy—i.e., a self-organized economy—is enlarged, at the margin of the banking sector. Such institutional competition enables evolutionary discovery in the institutions of banking.
Article
A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. Digital signatures provide part of the solution, but the main benefits are lost if a trusted third party is still required to prevent double-spending. We propose a solution to the double-spending problem using a peer-to-peer network. The network timestamps transactions by hashing them into an ongoing chain of hash-based proof-of-work, forming a record that cannot be changed without redoing the proof-of-work. The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power. As long as a majority of CPU power is controlled by nodes that are not cooperating to attack the network, they'll generate the longest chain and outpace attackers. The network itself requires minimal structure. Messages are broadcast on a best effort basis, and nodes can leave and rejoin the network at will, accepting the longest proof-of-work chain as proof of what happened while they were gone.
Conference Paper
This paper presents and analyzes an architecture to collect sensor data in sparse sensor networks. Our approach exploits the presence of mobile entities (called MULEs) present in the environment. MULEs pick up data from the sensors when in close range, buffer it, and drop off the data to wired access points. This can lead to substantial power savings at the sensors as they only have to transmit over a short range. This paper focuses on a simple analytical model for understanding performance as system parameters are scaled. Our model assumes two-dimensional random walk for mobility and incorporates key system variables such as number of MULEs, sensors and access points. The performance metrics observed are the data success rate (the fraction of generated data that reaches the access points) and the required buffer capacities on the sensors and the MULEs. The modeling along with simulation results can be used for further analysis and provide certain guidelines for deployment of such systems.
Article
DakNet provides extraordinarily low-cost digital communication, letting remote villages leapfrog past the expense of traditional connectivity solutions and begin development of a full-coverage broadband wireless infrastructure. What is the basis for a progressive, market-driven migration from e-governance to universal broadband connectivity that local users will pay for? DakNet, an ad hoc network that uses wireless technology to provide asynchronous digital connectivity, is evidence that the marriage of wireless and asynchronous service may indeed be the beginning of a road to universal broadband connectivity. DakNet has been successfully deployed in remote parts of both India and Cambodia at a cost two orders of magnitude less than that of traditional landline solutions.
Ethereum: A secure decentralised generalised transaction ledger
  • wood
G. Wood, "Ethereum: A secure decentralised generalised transaction ledger," Ethereum Project Yellow Paper, vol. 151, 2014.