Solidity Case Study
Solidity Case Study
of the degree of
Bachelor of Technology
by
Aatif Shaikh
November 2024
School of Engineering
Ajeenkya D Y Patil University, Pune
November 2024
CERTIFICATE
This is to certify that the report entitled “Blockchain Technology and Its
Applications: Case Studies” is a Bonafide work of “Aatif Shaikh” (URN No.
2021-B-30102003) submitted to the Ajeenkya D Y Patil University, Pune in
partial fulfilment of the requirement for the award of the degree of “Bachelor of
Technology (B.Tech) of Information Technology”.
Internal-Examiner
2
Blockchain Technology and Its Applications: Case
Studies
Abstract. Blockchain technology is expected to bring about exciting
developments across a variety of fields, such as politics, economy, culture, industry,
and business model. Blockchain is no doubt one key infrastructure technology to
lead the Fourth Industrial Revolution. This paper is a general overview of the main
features of blockchain technology. Three types of blockchains (public, private, and
consortium) will be presented within a discussion of their major case studies. In
addition, the latest trends and developments in blockchain technology will be
briefly reviewed. The terminology of blockchain infrastructure technology has the
potential to foster technological innovation across various industrial sectors as well
as improve mutual harmony and understanding of complex structures and diverse
phenomena in human society, especially antagonism, confrontation, and ideological
conflict. With such progress in social innovation, blockchain technology will result
in a fairer and more transparent human society. Greater attention will also be given
to a blockchain-based mobile voting system that will enable the realization of direct
democracy in a representative democracy. Furthermore, this paper offers solutions
to a trilemma of problems (scalability, security, decentralization) in blockchain.
1. Introduction
Blockchain is a distributed computing-based technology on a trusted network in
which data blocks to be managed are stored in distributed databases hosted on peerto-
peer (P2P) networks. Chains are formed between the blocks so that the blocks cannot
be arbitrarily revised, and the results of any changes can be accessed. In other words,
blockchain is a Distributed Ledger Technology (DLT). The ledger (all the data to be
managed) stores and manages transaction information on the computers of
participants connected to the P2P network instead of on a centralized server of a
certain organization (Kim, 2019; Lin, 2017; IRS, 2019; Nomura Research Institute,
2016).
1
The left image in Figure 1 illustrates a current and traditional computer network
on Internet; the right image shows a blockchain network.
Major features of blockchain technology include decentralization, invariance,
reliability achieved through consensus processes in untrusted environments, security,
economic efficiency, agility, decentralization, the absence of intermediaries,
transparency, efficiency, and scalability. Security is achieved as data are commonly
owned by multiple participants to prevent hacking. The use of open software and cost
reduction related to system development and maintenance, database operations, and
security creates economic efficiency. Decentralization is achieved by storing and
managing transaction histories on distributed computers to prevent forgery or illegal
use. Non-intermediacy is achieved by enabling transactions between individuals
without certification of any specific third party, and this reduces complexity caused
by intermediation and the burden of intermediary fees. When inquiries are allowed to
access all information, this results in transparency, which in turn enhances reliability.
Last, scalability is achieved by enabling changes in the blockchain system to fit the
use case. Open sources are employed so that the blockchain system can be easily
reconstructed and utilized.
Blockchains can be divided into three types: public blockchain, private
blockchain, and consortium blockchain. Each type has its own characteristics, and
they differ slightly in their functions and structures (Public Blockchain vs Private
Blockchain 2018).
1.1. Public blockchain
A public blockchain is a decentralized distributed system in which an unspecified
number of participants can share and mutually verify transaction information
occurring in the system. There is no separate managing entity. Anyone can participate
anonymously, and there is no restriction on authority. One current application of the
public blockchain lies in the foundational technology behind Bitcoin, a well-known
cryptocurrency (i.e. virtual money) currently in circulation around the world.
Naturally, public blockchains are being actively researched in finance (Ripple Labs
Inc 2018, S. Nakamoto 2008). DLT is at the core of public blockchains. Public
blockchains may be effectively used in the financial sector through transactions such
as cryptocurrencies and overseas remittances but also in other areas such as
crowdfunding and transportation. This is because a public blockchain enables the
authentication process to be carried out without a trusted, third party. Additionally,
public blockchain is an open blockchain that enables anyone to create transactions
and participate as a node. It also provides high reliability and integrity through the
verification of participants’ work. Despite these strengths, however, there is a
disadvantage: recording and processing speeds may decrease as the transaction
records of all participants are stored and shared.
2
1.2. Private blockchain
A private blockchain is related to a public blockchain; yet, it differs in that it limits
participation to only those individuals that the service provider (enterprise or
organization) has approved. A private blockchain is a centralized blockchain. This
type employs blockchain technology in a centralized structure as a method to enhance
security and transaction speed. Unlike a public blockchain, the private type is
managed independently by one entity. Only the nodes that have been verified through
the authentication method created on the network can participate in this type of
blockchain. Thus, to access transactions, each participant must have received
appropriate permissions. In a private blockchain, only those entities that take legal
responsibilities can create transactions, and only approved and verified entities may
validate transaction histories and data as well as approve transactions. In private
blockchains, the time for block creation cycles or verification is short because only
authorized nodes participate. This renders the approval and verification progress of
other unauthorized nodes unnecessary. However, since the users of private
blockchains must depend entirely on the service provider, the reliability of private
blockchains is limited in comparison to public blockchains.
1.3. Consortium blockchain
A consortium blockchain is one in which only those users who satisfy certain
requirements or have been agreed on in advance (e.g. companies, organizations) may
participate. The levels of authorization assigned to users in this blockchain type differ:
for example, allowing only some participants to see all or part of transaction
information or performing transactions with the authority to add new blocks to some
other participants. It is a semi-centralized blockchain composed of many companies
or organizations as joint entities. As with private blockchains, only the nodes
(computers) of authorized users can participate in this type of blockchain.
What might an ideal blockchain network look like? Figure 2 represents an ideal
blockchain network. One sees that the various blockchain networks are
interconnected.
3
2. Major Technologies in Blockchain
In blockchain, transaction histories (“blocks”) are stored and managed in a chain
where a cryptographic technique links all past transactions into one sequence.
2.1. Peer-to-peer (P2P) network system
A P2P network is a distributed computer network in which multiple computers
communicate directly with each other in a one-to-one manner. Information is
distributed, stored, and managed on all computers connected to the network. It is a
very reliable system because even if several computers were to crash, the entire
system is not affected.
2.2. Digital signatures using private keys and public keys
Secret keys in the form of passwords grant users the authority to access the blockchain
system, and public keys are used to secure safe, anonymous transactions.
2.3. Hash Function Encryption
This is a core technology used to rapidly detect data manipulation or damage to data
using hash values from “hash functions” that map data of arbitrary lengths with fixed
data. Put another way, it is a technology that always creates the same hash values
when the input data are the same.
It is possible to use the site http://www.blockchain-basics.com/Hashing.html for
a simple test and the site http://www.convertstring.com/ko/Hash/SHA256 to view the
SHA256 hash algorithm.
2.4. Decentralized system
This is a system that can reduce the risk of external hacking attacks because it uses
distributed computers instead of a centralized server computer.
2.5. Disintermediation
This is a system that requires no intermediary because all transactions are done
automatically through smart contracts.
2.6. Distributed ledger
All transaction information is stored and managed on individual computers
participating on a P2P network instead of being stored and managed on a centralized
server computer.
2.7. Smart contracts
This is a system in which contracting parties preprogram contents agreed upon in
advance. The parties then register electronic contracts whose contents are
automatically executed when the contract conditions are met so that certain
transactions are automatically processed according to the previous arrangements.
4
2.8. Consensus algorithms
To properly form agreements among an unspecified number of participants, there are
consensus algorithms such as Proof of Work (PoW), Proof of Stake (PoS), Delegated
Proof of Stake (DPoS), Proof of Importance (PoI), Proof of Authority (PoA), Practical
Byzantine Fault Tolerance (PBFT), and so on.
5
to access certain content (e.g. music, films) for a set number of times or a set duration
of use.
3.5. Medical treatment and healthcare sector
Hospitals and clinics have challenges to manage, maintain, and repair medical
treatment systems, resulting in the allocation of massive financial and human
resources. It is estimated that the introduction of blockchains can remarkably reduce
the costs that medical institutions incur. One important contribution would be the
recording of medical records on blockchain so that patients’ unique medical records
can be easily accessed from anywhere within the industry (Pirtle, 2018; Dan et al.,
2016).
3.6. Copyright management sector
The use of blockchain technology will foster great change in copyright management
as it tracks ownership and prevents forgery. For example, blockchain technology can
digitize concert tickets to prevent scalping, the unauthorized resale of tickets. In the
same way, it can prevent the illegal copying and sharing of computer and video game
software. Both instances further reinforce copyright protections for a variety of
creative works.
3.7. Electronic government, public sector
Central and local governments can employ blockchain-based administrative services
for a variety of tasks: official record keeping, online electronic voting, education,
taxation, national defense, new and renewable energy management and related
transactions. For real estate specifically, the services that will benefit from such
improvements are sale and registration, transfers of ownership, and records of
reconstruction and repair. In all cases, blockchain technology will play a great role in
cost reduction. With such administrative changes, society can become fairer and more
transparent, leading to greater convenience and quality of life for all citizens (Kim,
2018; Lee, 2019; Islam et al., 2019).
6
3.9. Eco-friendly management system sector
By using artificial intelligence and big data technologies running on Internet of Things
(IoT) blockchain platforms, it is possible to refine current methods of managing and
improving water and air pollution indexes. One such promoted use of blockchain
technology interlocks sensors for light, air temperature, humidity, and environmental
pollutants such as fine dust, greenhouse gases, soil contaminants, and wastewater
(Lee, 2018).
3.10. Sharing economy sector
As key players in the sharing economy, Uber and Airbnb have both created significant
changes in the transportation and accommodation industries, respectively. In like
vein, one influencer on the medical industry is Folding Coin, a project in which
participants exchange the processing power of their computers to help cure cancer
and other diseases in return for cryptocurrency coins. From this example, it is
expected that blockchain technology will catalyze the acceleration of entities in the
sharing economy. For example, every individual who produces value-added goods
(e.g. electric power, artwork) will become a business operator. Accordingly, it is
expected that this will usher in new era of global bartering and distribution of products
and goods. As more stable transaction systems are established, the necessity for
cryptocurrencies will also rise (Lee, 2018; Kyu-hwang, 2018; Kim, 2018).
3.11. Other fields for blockchain technology utilization
Other applications of blockchain technology include the continuous and permanent
management of reliable press releases, the accelerated growth of advertisements and
travel products to attract tourists, the enlargement of a trustworthy and utilizable
rental industry, the minimization of exhausting and unnecessary legal disputes or
ideological conflicts, and widespread donation culture.
3.12. Problems that must be solved
There are several problems related to the extension of blockchain technologies.
They are represented in Figure 3.
7
Second, legal and regulatory guidelines must be considered. Current legal and
institutional regulations regrettably fail to provide appropriate support for the
blockchain ecosystem. Establishing the correct levels of support will be required for
the blockchain ecosystem to take hold and flourish.
Third, a lack of human resources creates barriers to the full development of
blockchain services.
Fourth, there is still a need for secure user authentication; thus, it is important to
consider a variety of methods including multi-modal biometrics as well as
identification cards or passwords that will enhance the user authentication process.
8
5.3. Hyperledger Fabric
Hyperledger Fabric is a blockchain technology developed by the Hyperledger Project
(https://www.hyperledger.org), which is a collaborative project of the Linux
Foundation. Provided through open source, Hyperledger Fabric has a characteristic
which enables strict identity management and the firsthand selection of agreement
algorithms. It does not have a platform specific to a particular business model, yet it
does present a technology standard that can be universally employed in many
industries. Hyperledger Fabric uses “chain codes” to execute transactions, and these
can be implemented in programming languages such as Go and Java. More than 150
enterprises and organizations around the world such as IBM, Accenture and JP
Morgan are participating in this project.
6. Conclusions
This paper has provided a general overview of key features of blockchain technology
and its three types: public, private, and consortium. In addition, current uses and
possible future uses of blockchain technology were discussed alongside major case
applications. Recent blockchain technology development trends and development
methods with key programming languages (e.g. Go, C ++, Python, Java, Solidity)
were also briefly reviewed.
Certainly, blockchain is a technological breakthrough that can deliver and manage
critical digital assets on highly reliable network environments; however, if users
employ a rudimentary security authentication scheme—such as passwords— when
they want to access a blockchain network, it can cause vulnerability to leakage and
illegal or fraudulent use. In such cases, trust in the network will collapse. In order to
address these problems, we intend to study and present a method for enhanced user
authentication security technology that incorporates other technologies such as
biometric authentication. We will also pay greater attention to a blockchain-based
mobile voting system that will enable the realization of direct democracy in a
representative democracy. Furthermore, we are interested in solving blockchain’s
challenging trilemma: scalability, security, and decentralization.
It is clear that blockchain technology is emerging as a key infrastructure
technology that will lead the Fourth Industrial Revolution. Blockchain infrastructure
technology is expected to become very important in promoting mutual harmony and
understanding of the complex structure and various social and human phenomena.
This technology will lead to a more transparent and fairer society as creators innovate
developments in various fields such as politics, economy, culture, education, business,
and industry.
9
References
Dan, et al. (2016). Blockchain in health. Ernst & Young,
https://www.hyperledger.org/wp-content/uploads/2016/10/ey-
blockchaininhealth.pdf.
IRS Global. (2019). Blockchain related global market and business trends. Market
Report.
Islam, A., Kader, M. & Shin, S. Y. (2019). A blockchain-based smart and secured
scheme for question sharing in the smart education system. Journal of information
and communication convergence engineering, 17(3).
Kim, E. (2018). A study for the innovativeness of blockchain. The Journal of Society
for e-Business Studies, 23(3), 173-187.
Kim, J. (2019). Latest trends and major case studies of blockchain technology.
International Journal of Hybrid Information Technology, 12(2), 1-6.
Lin, I. C. & Liao, T. C. (2017). A survey of blockchain security issues and challenges,”
international journal of network security, 19(5), 653-659.
Lee, I. (2018). A study on blockchain networking for internet of things. Journal of
Digital Convergence, 16(8), 201-210.
Lee, R. & Lim, J. Electronic voting systems using the blockchain. Journal of the
Korea Institute of Information and Communication Engineering, 23(1), 103-110.
10