Interim Report FYP21036
Interim Report FYP21036
FYP21036 2021-22
Interim Report
Rapid globalisation and advancing technologies have connected the world, leading to
businesses constantly trying to improve their supply chain for customer satisfaction and
financial growth. Current solutions lack traceability and transparency with companies facing
a 20% loss in goods every year. This report offers a potential solution by providing a
blockchain-powered platform comprising a web and mobile application that utilises the
power of NFTs. The supply chain member will transfer and accept the goods through the
application that inherently conducts this process through tokenization of goods into NFTs.
The Ethereum Blockchain is used because of its immutable nature, decentralisation and
support of NFTs which further assist in the traceability of ownership. The businesses will be
able to track the goods through another web portal offered as a part of the platform. The
consumers will also be able to view and trace the origin of products at a store through the
mobile application. Certain limitations have been identified in the platform, the key one
revolving around the traceability of homogeneous goods from different suppliers. The current
progress has revolved around research regarding the technical implementation, development
of the mobile application for the supply chain members, and the tokenization of products into
NFTs. The next steps involve integration of the application with the NFT tokenization
process and creating the web dashboard for the supply chain managers. The report highlights
the implementation, feasibility as well as the schedule for project development. Additionally,
future plans include integration with Enterprise Resource Planning to create a trusted and
traceable supply chain management system with features of accounting and smart analytics.
1
Acknowledgement
We would like to express our gratitude to the supervisor of this final year project, Dr. John
Yuen, for his guidance and support. We are also thankful to the Department of Computer
Science, HKU for providing us with this opportunity.
2
List of Figures
3
List of Tables
Table 1. Schedule 16
4
Abbreviations
5
Table of Contents
List of Figures 3
List of Tables 4
Abbreviations 5
1. Introduction 7
1.1 Background 7
1.2 Objective 8
1.3 Scope and Deliverables 8
1.4 Outline 8
2. Literature Review 10
2.1 Technology Review 10
2.1.1 Blockchain 10
2.1.2 NFT - Non-Fungible Tokens 11
2.2 Related Works 11
3. Proposed Methodology 13
3.1 Application Workflow 13
3.2 Implementation & Feasibility 13
3.2.1 Blockchain: Ethereum 14
3.2.2 Backend: Express, NodeJS & Solidity 15
3.2.3 Database: MongoDB 15
3.2.4 Frontend: React Native & ReactJS 15
4. Project Progress 16
4.1 Schedule 16
4.2 Technical Research 16
4.3 Mobile Application Development 17
4.3.1 Major Screens 17
4.3.2 Frontend Development 17
4.3.3 Backend Development 18
4.3.4 Database Development 18
4.4 Tokenization of Goods 19
5. Discussion 20
5.1 Limitations 20
5.2 Challenges 20
5.3 Next Steps 20
5.4 Future Plan 21
6. Conclusion 22
References 23
6
1. Introduction
With rising globalisation and advancing technologies, businesses across the world are
becoming increasingly connected [1]. Supply chain management (SCM) plays an integral role
in this and needs to suffice the needs of the companies for their better growth. Additionally,
the end consumer also benefits from the supply chains since the product reaches them faster.
Hence, a trusted SCM platform that improves on existing solutions is required.
1.1. Background
A supply chain does not solely consist of a producer (company) and consumer (customer). It
can be defined as a network of different “entities” that are involved in the transfer or
movement of goods and services from a source to the end consumer [2]. This can include
different kinds of producers as well as suppliers. For example, Wellcome will need to interact
with different kinds of manufacturers and suppliers for its vast variety of products. Hence, for
efficient management, all the entities need to collaborate and cooperate with each other.
Successful SCM increases customer satisfaction, reduces operating expenses and improves
the financial position of a company [3]. In the current competitive scenario, SCM seems to be
becoming increasingly necessary. There has been a paradigm shift from “store versus store”
to “supply chain versus supply chain” [4]. Alongside the consumers, businesses also want the
goods readily available, authentic and cost-effective. Consequently, a robust management
system which manages risk, is traceable, and provides “visibility” to all members of the chain
is becoming essential [5].
The importance of the SCM market can also be quantified through its market size. From
being worth 15.85 billion USD in 2020, it is expected to double in size by 2026 [6]. Any loss
of goods incurred in the supply chain can have a drastic impact on the business. According to
[7], companies suffer around 20% loss in their inventory every year due to mismanagement
and untraceability of their products in the supply chain. Therefore, businesses across the
world are investing highly in their supply chains to improve their processes.
7
1.2. Objective
This project aims to develop a substitute for the current SCM systems which provides
traceability and transparency, not only to the companies involved but also to the consumers. It
will be a blockchain-based application that will utilise Non-Fungible Tokens (NFTs) for
tracking the goods being transferred in the supply chain. A web application will be developed
to serve the companies specifically as well as a mobile application to cater to the needs of
both consumers and companies.
From the perspective of the companies, the application will provide a one-stop shop to
improve the SCM. The management can track every product on the application with each
good being an NFT and present on the blockchain. The consumer will not only be able to
view the products in a particular store through the mobile application, but also have these two
advantages: first, trace the origin of items to confirm ethical sourcing practices are met and
second, confirm the authenticity of luxury goods to combat the circulation of counterfeit
goods in the supply chain.
1.4. Outline
The purpose of this report is to present a technologically driven solution for SCM. It first
specifies the problems in SCM followed by introducing a blockchain-powered application
that will be beneficial to both producers and consumers. Having highlighted the scope of the
project, it expands upon the technology behind the solution which then leads on to the
8
proposed implementation of the product. Furthermore, it gives an account of the current
progress and limitations of the project. Lastly, it describes the future improvements and plans
of the project.
9
2. Literature Review
To further understand the importance as well as the need of the solution, this section
elaborates upon core technical components of the application followed by an explanation of
related works in the field of SCM.
2.1.1. Blockchain
Blockchain is a digital ledger that acts as a shared database of all the transactions (data being
injected on the blockchain) [8]. There is not just one location where data is stored but rather
multiple locations because of which it is known as a “decentralised” database. Furthermore,
all these transactions are immutable and non-editable. An additional feature of blockchain is
inbuilt security since it makes use of cryptography [9].
All features can be accredited to the anatomy of the blockchain (Fig. 1). It consists of many
blocks, the first one being the genesis block. All blocks have a hash value that represents their
uniqueness. Apart from the first block, each of them also contains the stored data and the
hash value of the previous block [10]. Consequently, if any data is tampered with, the hash
value of the block changes, the chain breaks and the participants of the network can identify
this issue. Since blockchain is distributed and based on a majority consensus, a hacker will
require a massive amount of computational power to modify the blockchain [9].
10
In our project, the exchange of goods needs to be recorded and maintained for all members of
the supply chain at multiple locations but having the same information. A member should
have a record of the previous transactions but not be able to tamper with them. The
importance of SCM for a business also demands the system to be secure. All of these
requirements are fulfilled by the aforementioned features of the blockchain.
NFTs enable one to “buy and sell ownership” of items, the record of which is on the
blockchain [11]. For the purposes of this project, all the products of the supply chain will be
tokenized as NFTs and stored on the blockchain. Subsequently, through each step of the
chain, the ownership of the product will be transferred by agreement between both parties.
Additionally, the companies can trace the ownership of any product easily.
Blockchain has the power to solve the problems of ERP systems by providing traceability and
a uniform solution [14]. There are giants like IBM who have developed a solution for SCM
using blockchain. Their partnership with TradeLens (a company trading globally) wherein all
trade transactions are continuously updated on the blockchain successfully reduced the
11
companies’ shipping time by 40% [15]. Nevertheless, blockchain solutions have limitations.
Firstly, they are powered by “smart contracts” which provide traceability across all members
but it is a difficult process [16]. Secondly, data stored on them can also be false data that has
been added without mutual agreement.
To overcome the above limitations, this project aims to use NFTs along with blockchain
technology wherein each product acts as an NFT. As mentioned earlier, since NFTs dictate
ownership, they will be easily traceable. Moreover, the exchange of NFTs will require the
participation of two members (sending and receiving) preventing the issue of false data.
12
3. Proposed Methodology
This section details the workflow of the application followed by explaining and justifying the
technology implementation.
13
3.2.1. Blockchain: Ethereum
Blockchain forms the base of the application. We needed to decide between a custom or an
existing blockchain. After extensive research, Ethereum was chosen. This was based on its
support for NFTs, extensive library functions and built-in features of smart contracts and state
databases. A lower fee for each transaction was also taken into consideration.
The modules for tokenization of goods and further transactions based on it have been built
using the truffle suite on top of a node.js framework. Truffle is a development environment
utilizing the EVM (Ethereum Virtual Machine) as a basis. The environment specializes in
smart contract development and it features numerous functionalities that help dApp
developers tremendously.
The code base contains different sections responsible for the tokenization of goods (Fig. 3):
● Assets: Contains any image, gif or other form of media to be associated with the NFT.
● Contracts: Contains all solidity files used to make migrations and interact with the
blockchain network.
● Data: Contains the metadata for each NFT to be minted. All files are in JSON format.
● Scripts: Helper javascript files used to interact with third party services essential to
create the NFT.
14
3.2.2. Backend: Express, NodeJS & Solidity
The backend server will be created using Express, a Javascript framework based on NodeJS,
a server-side programming language with vast built-in functionality. Solidity, an Ethereum
supported language, will be on the server to create and execute contracts on the blockchain
for NFT creation and transfer. We will be storing metadata about the goods such as type and
quantity in the NFT. Homogenous items can also be grouped into one NFT thereby saving
gas fees. The backend will not only interface with Ethereum and MongoDB libraries such as
web3.js but also provide an application programming interface (API) for the frontend.
15
4. Project Progress
This section introduces the development plan of the project. It then states the current progress
of the application followed by discussing next steps.
4.1. Schedule
The project is divided into six different stages where each stage is considered an iteration to
adhere to an Agile development process (Table 1). Every stage marks the completion of an
important task essential for starting future tasks. The team is currently completing Stage 4.
Table 1. Schedule
16
since NFTs are majorly supported on two blockchain platforms, Ethereum and Hyperledger,
we analysed the two and selected Ethereum owing to an extensive developer community.
17
4.3.3. Backend Development
The backend was developed using the Express framework using a modularised structure for
better development (Fig. 5). The ‘server.js’ file sets up the process and connects with the
database. The ‘models’ folder contains the schema of the database whereas the ‘routes’ folder
houses different routes for all API calls made from the frontend.
18
4.4. Tokenization of Goods
The creation and transfer of NFTs play a major role in the application workflow. The NFTs
are the goods being transferred in the supply chain. Consequently, the team prioritized the
task of developing a module that will store the information of the products as an NFT on the
blockchain. The module was created using the Truffle Suite with tools like Ganache and
Truffle. Ganache is a personal Ethereum blockchain that provides free testing and Truffle is a
development framework for Ethereum which assists in creating and executing the module.
The team initially minted the NFT on a personal blockchain network which was setup using
Ganache CLI. Thereafter, the team minted NFTs on the Rinkeby network, an online test
network which is a clone of ethereum mainnet used by developers for testing (Fig. 7).
The transfer process was also performed on the Rinkeby network (Fig. 8). This process of
tokenization forms the basis for the future development of the application.
19
5. Discussion
This section discusses the limitations and challenges faced by the application and lays out the
future plan for the project.
5.1. Limitations
The biggest limitations are the environmental impact and cost of the solution. Both the
creation and transfer of NFTs requires large amounts of gas fees and electricity. However,
these could be mitigated with the expected launch of Ethereum 2.0 in June 2022.
Furthermore, tokenization is conducted for the goods selected by the members of the supply
chain which creates the possibility of human error and rogue actors. Apart from this, if the
quality of goods degrades in the supply chain due to external factors like weather, the
application can detect the point of degradation but not determine the exact reason for it.
5.2. Challenges
Operational challenges arise in implementing the blockchain. All the team members are new
to blockchain and hence self-learning and research will play a crucial role in overcoming this
challenge. From a technical perspective, tracing homogenous products in a store arriving
from different supply chains is the biggest challenge. This creates a problem for both
consumers and businesses and can lead to the misrepresentation of information.
20
5.4. Future Plan
Apart from the current objective and deliverables, the team believes in a wide scope of the
application. The primary task post the completion of the project will be to remove the current
limitations and challenges. Hardware solutions like QR codes could be used to tackle
traceability of homogeneous goods as well as reduce human error. Integration with existing
ERP solutions to provide accounting, inventory management, and especially smart analytics
could assist in recommending both natural and man-made reasons for degradation of goods
whilst also decentralising the existing ERP solutions.
21
6. Conclusion
SCM has developed into an industry of billions of dollars that needs to improve every day to
handle the rising complexity. A successful SCM leads to customer satisfaction and a better
financial position. Current solutions are either tedious or lack traceability or both. This report
presents a potential solution to this problem in the form of a blockchain-powered platform.
The application aims to provide transparency and traceability in the supply chain by
combining the traceability of ownership offered by NFTs with the immutable and
decentralised nature of blockchain. The product comprises a web application that is utilised
by companies to enter the products they exchange. In the supply chain, the first member
selects the products to be transferred through the mobile application. These are tokenized into
NFTs and stored on the blockchain. Every successive member will transfer or accept the NFT
through the application, thereby relieving or taking ownership of the goods. The business
management can review and track each step through the web application which can detect
any inconsistency. Once it reaches the final store, the consumers can view all the products in
that store, trace the origin of the product and hence be able to verify its authenticity.
Ethereum is used as the preferred blockchain for its compatibility with NFTs whereas the
MERN stack is used for smooth internal and external integration for all applications. The
current progress has involved research on implementation and feasibility of technologies, the
development of the mobile application for supply chain members, and tokenization of
products into NFTs.
The project is limited by operational inefficiencies such as human error during selection of
goods and degradation of the quality of goods. Additionally, the creation and transfer of NFTs
impact the carbon footprint. Lastly, traceability of homogeneous goods reaching one store
from different suppliers can lead to incorrect tracking.
Owing to the rising demand for technologically advanced SCM, future work will involve
mitigating the limitations by reducing human effort. Additionally, integration with ERP
systems would assist in providing features of accounting and smart analytics in a trusted and
decentralised manner.
22
7. References
[1] “How globalization impacts supply chain management,” Flowspace Blog, 23-Sep-2021.
[Online]. Available: https://www.flow.space/blog/globalization-supply-chain/. [Accessed:
27-Oct-2021].
[2] J. T. Mentzer et al, "Defining supply chain management," Journal of Business Logistics,
vol. 22, (2), pp. 1-26, 2001. Available:
http://eproxy.lib.hku.hk/login?url=https://www.proquest.com/scholarly-journals/defining-sup
ply-chain-management/docview/212663354/se-2?accountid=14548.
[3] “The Importance of Supply Chain Management,” The importance of Supply Chain
Management. [Online]. Available:
https://cscmp.org/CSCMP/Develop/Starting_Your_Career/Importance_of_Supply_Chain_Ma
nagement.aspx. [Accessed: 27-Oct-2021].
[5] B. Cooksey, “Why is supply chain visibility so important?,” C.H. Robinson Blog,
08-Dec-2017. [Online]. Available:
https://www.chrobinson.com/blog/why-is-supply-chain-visibility-so-important/. [Accessed:
27-Oct-2021].
[6] E. Mazareanu, “Topic: Global Supply Chain Management,” Statista. [Online]. Available:
https://www.statista.com/topics/7150/global-supply-chain-management/. [Accessed:
03-Oct-2021].
23
[7] Y. Lemma, “Loss in perishable food supply chain: An Optimization Approach Literature
Review,” Academia.edu. [Online]. Available:
https://www.academia.edu/45463716/Loss_in_Perishable_Food_Supply_Chain_An_Optimiz
ation_Approach_Literature_Review. [Accessed: 03-Oct-2021].
[9] C. Miles, “Blockchain security: What keeps your transaction data safe?,” IBM Supply
Chain and Blockchain Blog, 18-Dec-2020. [Online]. Available:
https://www.ibm.com/blogs/blockchain/2017/12/blockchain-security-what-keeps-your-transa
ction-data-safe/. [Accessed: 27-Oct-2021].
[10] “The anatomy of a block in a Blockchain,” Burr & Forman, 17-May-2018. [Online].
Available:
https://www.burr.com/blogs/blockchain-law/2017/11/07/the-anatomy-of-a-block-in-a-blockch
ain/. [Accessed: 27-Oct-2021].
[13] Harvard Business Review, “Blockchain and ERP systems: Future of Supply Chain
Management,” Atom Insights | Blockchain And ERP Systems: Future Of Supply Chain
Management. [Online]. Available:
24
https://www.atominc.com/post/blockchain-and-erp-systems-the-integrated-future-of-supply-c
hain-management. [Accessed: 27-Oct-2021].
[14] V. Gaur and A. Gaiha, “Building a transparent supply chain,” Harvard Business Review,
14-Apr-2020. [Online]. Available:
https://hbr.org/2020/05/building-a-transparent-supply-chain. [Accessed: 27-Oct-2021].
[15] V. Chawla, “IBM blockchain: How big blue is using distributed ledgers to dominate
global supply chains,” Analytics India Magazine, 01-Jul-2020. [Online]. Available:
https://analyticsindiamag.com/ibm-blockchain-supply-chain/. [Accessed: 27-Oct-2021].
25