You are on page 1of 6

Blockchain and Smart Contracts for Internet of Things: A Systematic Literature Review

Anup Dhakal

International School of Software, Wuhan University, China


E-mail: anup.dhakal@whu.edu.cn

KEYWORDS: Internet of Things, Blockchain, Smart Contracts, Decentralized Ledger Technology, Peer-to-peer security,

ABSTRACT:

The Internet of Things (IoT) has the potential to change the way the world works. From home automation to smart cities, improved
healthcare to a good supply chain management system, IoT is increasingly becoming a reality today. Nevertheless, there are still
many challenges in IoT space that needs to be fixed. This is mainly due to the cost and complexity of IoT solutions, existing issues
regarding security and privacy as well as due to the lack of proper sustainable future plan. In order to support the growing number
of connected devices, the IoT is in a dire need of reboot. Recently, the Blockchain technology has garnered much attention in IoT
space. Despite starting as a decentralized financial solution in the form of Bitcoin, Blockchain technology possess many use cases
which can be used in most diverse areas of Information Technology. The security and privacy issues of IoT can easily be fixed by
incorporating Blockchain technology in the IoT solutions. With the integration of Blockchain and Smart Contracts in IoT solutions,
the Internet of Things world will be significantly improved in different aspects such as, decentralized system (no central governance
to control the system), facilitating interactions, new and improved transaction models, and autonomous coordination of the devices.
The goal of this paper is to showcase the challenges and problems we are facing with current IoT solutions and analyse how the
use of Blockchain and Smart Contracts can help achieve a new, more robust IoT system. Finally, we analyse some of the many
projects using Internet of Things together with Blockchain and Smart Contracts to create some new solutions that are only possible
by integrating them together.

1. INTRODUCTION

Internet of Things is an evolution of mobile, home and accident. That insight can be sent to the citywide
embedded applications that are being connected to the transportation system which can analyse the accident impact
internet integrating the greater compute capabilities and on other city systems. Recognizing the accident is near the
using data analytics to extract meaningful information. airport and two city schools, it could notify those systems so
Billions of devices will be connected to the internet, and they can adjust flight and school schedules. It can also
soon hundreds of billions of devices. As related devices analyze and derive optimal routes around the accident and
connected with each other they can become an intelligent send those instructions to the cities digital signage systems
system of systems, and when these intelligent devices and to guide drivers around the accident. That’s just one example
systems of systems share data over the cloud and analyse it, of the potential benefits that can happen when intelligent
they can transform our businesses, our lives and our world devices share insight with other systems, forming ever
in countless ways, whether it’s improving medical outcomes, expanding systems of systems.
creating better products faster with lower development costs,
making shopping more enjoyable, or optimizing energy With the IoT, various devices will autonomously exchange
generation and consumption. (Li 2015) (meaningful) information, targeting to improve our daily life,
making at the same time the boundaries between the cyber
Here’s an example of the big picture. Imagine an intelligent and the physical worlds even more blurred. (Ashton 2009)
device such as a smart traffic camera, this camera can
monitor the road for congestion, accident, and weather 1.1 Internet of Things Challenges
conditions and communicate that status to a gateway that
combines it with data from other cameras creating an With the evolution of this fascinating technology, it also
intelligent citywide transportation system. brings some challenges that cannot be solved by using
technologies designed for “traditional” internet.
Imagine that intelligent traffic system connected to other Nevertheless, overcoming these challenges is a decisive
citywide traffic system and that intelligent traffic system factor that may determine whether the IoT will eventually
connected to other citywide transportation systems that get prevail or not and to what degree. (see Figure 1) (Pureswaran
data from their own intelligent devices, creating an even and Brody 2015)
larger system of systems. Let’s say the city’s intelligent
traffic system detects massive congestion due to an
Section 3, we take a look on how the blockchain and smart
contract technology can help take IoT forward and analyse
the already existing projects and experiments that are using
these two technologies side by side to make the IoT world
more safe, secure, affordable and easier to adopt.

2. BLOCKCHAIN AND SMART CONTRACTS

A decentralized approach to IoT networking would solve


many of the questions above. Adopting a standardized peer-
to-peer communication model to process the hundreds of
billions of transactions between devices will significantly
reduce the costs associated with installing and maintaining
large centralized data centres and will distribute computation
and storage needs across the billions of devices that form IoT
networks. This will prevent failure in any single node in a
network from bringing the entire network to a halting
collapse.
Figure 1: Existing challenges with The Internet of Things 2.1 The Blockchain Technology
The Cost of Connectivity Challenge The blockchain, underlying technology that powers
bitcoin, is an undeniably ingenious invention. It was the
The high infrastructure and maintenance costs associated brainchild of a person or group of people known by the
with large server farms and centralized clouds results in pseudonym, Satoshi Nakamoto. By allowing digital
prohibitively expensive IOT solutions. It is unlikely that information to be distributed but not copied, blockchain
companies will have a good profit margin because of several technology created the backbone of a new type of internet
years of support and maintenance required for even the and the tech community is now finding other potential uses
cheap IOT devices. This cost of supporting and serving for the technology, such as the vital role it can play in the
billions of smart devices - even something as simple as IOT world. (Advisor 2015)
maintaining servers and releasing software updates. (Gubbi,
et al. 2013) A blockchain is a distributed ledger of transactions
maintained by a network of untrusted nodes. Each block of
The Security and Privacy Challenge the blockchain contains a list of transactions organized in a
Merkle tree; new blocks are added to the blockchain by the
Most IOT solutions these days are provided by centralized miners. Blockchains are often referred to as a democratic
authorities, whether it’s government, manufacturers or way of maintaining transactions as they rely on consensus
services providers. This can allow these authorities to gain for confirming transactions and require no central authority.
unauthorized access to collect and analyse user’s data. We distinguish two types of blockchains: public and private
Closed source (often described as security through obscurity) blockchains. (Swan 2015) (Greenspan 2015)
approaches are being built in current system. But these
solutions are obsolete and newer approach of open source
(security through transparency) is required to scale IOT to
the next level. Although the open source systems may be
susceptible for exploitation and accidents, it is unlikely for
governments or other targeted institutions to collect
unauthorized users’ data.

The Sustainability Challenge

While the user tends to change their personal computing


devices like their smartphones and PCs every few years, it is Figure 2: Centralized and Distributed Network
not the same case for other devices such as cars, houses,
refrigerators, door locks etc. These things are expected to last Public Blockchain
for a long time after installed. In IOT world, the cost of
software updates and maintenance of the products that have A public blockchain network is completely open and anyone
already been discontinued will weigh on in balance sheets of can join and participate in the network. The network
the company. typically has an incentivizing mechanism to encourage more
participants to join the network. One of the drawbacks of a
In the following Section 2 an existing Blockchain and Smart public blockchain is the substantial amount of computational
Contract technology is introduced with which we can power that is necessary to maintain a distributed ledger at a
overcome these challenges mentioned in Section 1. Then, in large scale. More specifically, to achieve consensus, each
node in a network must solve a complex, resource-intensive block. Once the new block is mined by miners, the
cryptographic problem called a proof of work to ensure all blockchain is added to the existing Blockchain thus making
are in sync. Two well known implementations of this type of the transaction complete and permanent.
blockchains are Bitcoin and Ethereum. (BitFury and Garzik
2015) 2.2 Smart Contract Structure

Private Blockchain The initial release of smart contracts in Ethereum was


designed to give parties that don’t trust each other a way to
A private blockchain network requires an invitation and enter into an agreement, where they can be confident that the
must be validated by either the network starter or by a set of transaction will unfold as they intend, and where they can
rules put in place by the network starter. Businesses who set verify the status of the contract or transaction at any time
up a private blockchain, will generally set up a permissioned (See Figure 4). To achieve those design goals, the initial
network. This places restrictions on who is allowed to smart contracts implementation didn’t follow the typical
participate in the network, and only in certain transactions. patterns for application development. Specifically, it
Participants need to obtain an invitation or permission to join. included the logic, properties, and data in a single package,
A well known implementation of this type of blockchain is essentially collapsing the business and data logic layers into
IBM’s Hyperledger. a single layer, which are then written to the blockchain. That
provides the immutability, deterministic execution and
Blocks: Each block is a structure consisting of a header and transparency required in untrusted environments.
a body. The header includes the hash values of the previous
and current blocks and nonce. The block data are searched
in the database using the index method (see Figure 3). Since
the hash values stored in each peer in the block are affected
by the values of the previous blocks, it is very difficult to
falsify and alter the registered data. Although data alteration
is possible if 51% of peers are hacked at the same time, the
attack scenario is realistically very difficult.

Figure 4: Smart Contract Structure of Ethereum

2.3 Blockchain Benefits

Blockchain can revolutionize many industries including


banking, education, voting healthcare, supply chain etc. And
blockchain’s key benefits can be defined as:

Decentralization: Lack of a central data hub is one of the


Figure 3: Blockchain Connection Structure main reason why blockchain is so exciting. Individual
transactions in the blockchain have their own validity and
Mining: Mining is the mechanism that allows the are authorized to enforce those constraints. The information
blockchain to be a decentralized security. It secures the in the blockchain is distributed throughout the world on
bitcoin system and enable a system without a central individual nodes so that it is near to impossible for the
authority. Miners validate new transactions and record them attacker to corrupt the data stored.
on the global ledger also known as Blockchain. In Bitcoin
Blockchain, a block (the structure containing transactions) is Efficiency: There is no involvement of middlemen to carry
mined every 10 minutes. Miners compete to solve a difficult out the transactions in the blockchain. It is done directly
mathematical problem based on a cryptographic hash between the two parties. The digitized information allows
algorithm. The solution found is called the Proof-Of-Work. the processing time of the transaction to be prompt. Added
This proof proves that a miner did spend a lot of time and is the functionality of Smart Contracts in which a action is
resources to solve the problem. As an incentive, Miners who automatically triggered when the certain laid out criteria of
solved the cryptographic puzzle are rewarded with some the contract is satisfied. This will greatly reduce the time and
bitcoins or some transaction fees. (Industries 2016) the cost for the transaction to be processed.
How A transaction is processed in the Blockchain? Auditability: Each and every transaction of the blockchain
is recorded in a permanent sequence. Due to this inerasable
The lifecycle of a transaction being processed is a set of record of transactions, it provides the complete audit trail for
multiple processes. In the blockchain, someone initiates a the life of an asset. This is essential especially in the cases
transaction. The transaction is then broadcasted to all nodes where there is a need to verify the authenticity of an asset.
of the blockchain. The miners will validate and verify the
transaction. The 51% of the miners in the blockchain have to Traceability: With the blockchain, it is possible to track the
validate the transaction for the transaction to be added on the lifecycle of the product, from the manufacturer to the
consumer. It is very advantageous to track the goods and find coming from the network of devices is first sent to a central
out whether the products are counterfeit or real. With server and only then presented to the homeowner on their
blockchain it’s also possible to transfer the ownership of cellphones, tablets or computers. It is vital to secure this
certain goods or products from one person to another. There information so that attackers can’t misuse this information.
is no need of trail of paper works. For example, a transfer of The central server or gateway is not as secure as the
ownership of car, land, house etc. can be done within the blockchain is. The security and privacy of smart home
blockchain without the need of paperwork and middlemen systems can be achieved by using blockchain. The
involved. communications between devices and control information of
the devices can be recorded in the distributed ledger as
Transparency: Lack of transparency in commercial transactions. Cryptography and hashing functions can
organization or in other business entities can sometimes lead protect the confidentiality, integrity and authenticity of the
to distrust, work delays, and loss for the company as well as network of the network of IoT as well as with the addition of
the consumers. By providing complete transparency time-stamp and proper encapsulation, a robust security is
regarding the transaction details of the commercial construct, ensured.
further trust and stable relationship can be developed among
the parties based on transparency rather than negotiation. Software Updates – Software Updating of IoT Edge
Nodes
Security: The authenticity of the information stored in the
blockchain can be assured because the multiple nodes of the Edge devices in a IoT network have low, medium, and high
network verify the transaction by using complex levels of computing power. Due to the increase of a system-
cryptography. One of the most significant keys to unlock the on-a-chip capabilities, edge devices are becoming smarter.
benefits of the Internet of Things is the assured information, Some large devices like refrigerator can be equipped with a
which is a closed look cyber autonomous process that links powerful computing system whereas a small sensor might
actions to assets. have a small chip having adequate computing power. Thus,
if all the devices in the network have some form of
3. INTEGRATING IOT AND BLOCKCHAIN computing power, the functionality of the devices can be
TECHNOLOGY reconfigured easily. Such devices can form peer-to-peer
networks and can directly communicate with each other to
Blockchain technology can be used to improve the security share IoT service functions. Device parameters related to
of IoT applications in health care, smart cities, energy grids, functionality and device management can be downloaded
public safety, education, supply chain management, and update periodically.
education, and other similar application areas. Some of the
use cases, where blockchain technology can benefit IoT, are Supply Chain Management – Smart Supply Contracts
discussed below:
The manufacturers create goods and services and delivers it
Public Health – Counterfeit Drugs to the retailer under the rules written in contract. Such
interactions begin with inquiries from buyer, which leads to
The distribution and production of counterfeit drugs is a vital contract negotiation between a seller and a buyer. The
and pressing worldwide issue. According to the WHO, shipping process begins once the contract is signed. This
currently in developing countries the distribution of may involve use of a local shipping agency, local port of exit,
counterfeit drugs is may be up to 30% whereas 10 percent of custom officials, carriers, a distant port of entry, customs
all drugs in the world are counterfeit. By using blockchain services, a distant delivery agent, and finally the customer.
and IoT elements, the spread of counterfeit drugs can be
controlled. Each legitimate drug can be stamped physically At each point, a sequence of messages and
at the location of the production and an identifier to the acknowledgements is activated culminating in the customer
stamp can be recorded into the blockchain ledger. Forged acknowledging receipt of the shipment. Current trading
drugs can be identified, traced and eliminated easily because policies on national and international trade also provide
they won’t have any record in the blockchain system. (Gupta details of the process of payment to the supplier. This chain
n.d.) of events is well suited to be adapted to using blockchain
technology for the purposes of smooth, verifiable, and secure
Smart City – Smart Homes supply chain management. All documents and events can be
recorded and verified at each stage by entering transactions
In today’s world, a home itself is a powerful computer, with into or querying the appropriate distributed ledger.
a plethora of household devices related to home security
systems (alarms, surveillance cameras, door locks etc.), Blockchain adoption in the IoT space can change the way
environmental control (Air conditioner, sensors), home IoT edge devices exchange data in a trustworthy
entertainment (audio/video equipment), and household environment, mechanizing and encoding transactions, while
electronics (electronic lights, refrigerators, dishwashers, safeguarding data exchanges and ensuring security of all
washing machine etc.) are present. devices involved.

All these smart home devices allow homeowners to observe 3.1 Case Studies
and control their home from a remote site. The information
Here are some of the projects that are already combining applications are countless. The Internet of Things, when
Blockchain Technology and Internet of Things to develop integrated with blockchain will allow you to live in a smart
new and viable solutions to existing problems: home, drive smart cars and practice smart medicine. In this
emerging world, users connect with smart devices using
Slock.it secure identification and authentication, potentially
public/private keys, and they define the rules of engagement,
Slock is where blockchain meets IoT. It is a decentralized
such as privacy, with other devices, rather than going along
platform for renting/selling your physical goods. Airbnb
with the rules of a centralized node or intermediary.
apartments become fully automated, parking spots can be
sublet on demand, vehicles can be sold or rented without Manufacturers can transfer maintenance, ownership, access,
involvement of any middlemen. Slock.it bridges the physical and responsibility to a community of self-maintaining
world and the blockchain by making smart contracts devices, future-proofing the IoT and saving infrastructure
enforceable: Slock.it has the potential to be the future costs, replacing each device exactly when it hits
infrastructure of a sharing economy. (Slock.it 2015) obsolescence.

Filament Blockchain and IoT are twin technologies that can benefit
from each other. They represent the biggest technological
Filament builds blockchain hardware and software solutions disruption since the usage of transaction processing systems
for IOT and hardware. The distributed blockchain in computing. The major innovation of devices and software,
capabilities of Filament leverage open protocols so that it’s possible to bring transaction processing and intelligence
devices can process and record transactions independently to all devices. Although there are some critical adaptability
ensuring digital trust. Filament has built a Blocklet Chip and challenges with the distributed systems, many researchers,
a new trusted application software, currently in beta which institutions, individuals are working tirelessly to solve these
are designed to natively communicate with multiple
issues and build a open source foundation for the
blockchain technology. A secure distributed ledger solution
development of this technology.
is achieved through it’s software and the blocklet chip will
allow corporations and enterprises to streamline the process
of extracting the value of recording, monetizing data assets
on the sensors themselves. (Filament 2015) 5. REFERENCES

Skuchain
Advisor, UK Government Chief Scientific. Distributed
Skuchain is a blockchain technology company catered to the Ledger Technology: Beyond Blockchain. Report, London:
B2B trade finance and supply chain finance market. The UK Government Office of Science, 2015.
company aims to solve problems in the $18 trillion global
finance market, an industry that still relies largely on paper Ashton, K. "That 'Internet of Things' Thing." RFID
for many processes. (Skuchain 2015) Journal, June 2009.
Blockchain of Things BitFury, Group, and Jeff Garzik. "Public versus Private
Blockchains." BitFury. October 20, 2015.
Blockchain of Things created Catenis Enterprise to facilitate http://bitfury.com/content/5-white-papers-research/public-
developers and organizations who wish to quickly integrate vs-private-pt1-1.pdf (accessed February 20, 2017).
Bitcoin blockchain capabilities into their software, devices,
systems, machines, sensors and other enterprise scale Blockchain of Things. The Ultimate Blockchain
applications. Catenis provides a layer that removes Technology. January 10, 2015.
technological difficulties and delivers ease of use
https://blockchainofthings.com (accessed February 20,
enhancements via standard web services for systems
2018).
messaging and end node security. Catenis allows
organizations to rapidly leverage the bitcoin blockchain for Filament. Enabling the Future of IoT. January 10, 2015.
enhanced security and reduced cost for global messaging and
https://filament.com/ (accessed February 20, 2018).
device communications. Customers can quickly generate a
vast number of Catenis virtual devices. These virtual devices Greenspan, Gideon. Ending the Bitcoin vs Blockchain
correspond to the software application sand physical real Debate. July 19, 2015.
world systems they are used by. (Blockchain of Things 2015)
https://www.multichain.com/blog/2015/07/bitcoin-vs-
blockchain-debate/ (accessed February 20, 2017).
4. CONCLUSION
Gubbi, J., R. Buyya, S. Marusic, and M. Palaniswami.
With Blockchain and IoT, empty-apartments, spare "Internet of Things(IoT): A vision, architectural elements,
bedrooms, houses, cars, or vacant conference rooms will rent and future directions." Future Generation Computer
themselves out. Patents will license themselves. Our e-mail Systems 29, no. 7 (September 2013): 1645-1660.
will be able to charge spammers for each item received. The
Gupta, Yash. "The Applicability of Blockchain in The Skuchain. Empower my Supply Chain. January 10, 2015.
Internet of Things." 2018 10th International Conference on htts://skuchain.com (accessed February 20, 2018).
Communication Systems & Networks (COMSNETS). Delhi:
Researchgate. 10. Slock.it. Rent, Sell or Share Everything. January 1, 2015.
https://slock.it/ (accessed February 2, 2018).
Industries, Eris. "Smart Contracts | Explainer." Eris
Industries Documentation. july 8, 2016. Swan, Melanie. Blockchain: Blueprint for a New Economy.
https://docs.erisindustries.com/explainers/smart_contracts/ Boston: O'Reilly Media, 2015.
(accessed February 20, 2018).

Li, S. "The Internet of Things: A Survey." Information
System Frontiers, April 2015.

Pureswaran, Veena, and Paul Brody. Device Democracy -


Saving the Future of the Internet of Things. Survey, IBM
Corporation, NY: IBM, 2015.

View publication stats

You might also like