SECURE E-COMMERCE TRANSACTION WITH
TRACEABILITY AND TRANSPARENCY USING
CRYPTOCURRENCY
A PROJECT REPORT
Submitted by
GOWTHAM PRABHAKARAN R (110819104009)
PRABHAKARAN G (110819104024)
in partial fulfillment for the award of the degree
of
BACHELOR OF ENGINEERING
in
COMPUTER SCIENCE AND ENGINEERING
JAYA ENGINEERING COLLEGE, THIRUNINRAVUR
ANNA UNIVERSITY: CHENNAI 600 025
MAY 2023
ii
ANNA UNIVERSITY: CHENNAI 600 025
BONAFIDE CERTIFICATE
Certified that this project work “SECURE E-COMMERCE TRANSACTION
WITH TRACEABILITY AND TRANSPARENCY USING
CRYPTOCURRENCY” is the bonafide work of GOWTHAM
PRABHAKARAN R (110819104009) and PRABHAKARAN G
(110819104024), who carried out the project under my supervision.
Prof. M. KUMARAN
Supervisor & Head of the Department,
Department of CSE,
Jaya Engineering College,
Thiruninravur 602 024.
iii
ANNA UNIVERSITY: CHENNAI 600 025
VIVA VOCE EXAMINATION
The viva-voce examination of the project work titled “SECURE
E-COMMERCE TRANSACTION WITH TRACEABILITY AND
TRANSPARENCY USING CRYPTOCURRENCY” submitted by
GOWTHAM PRABHAKARAN R (110819104009) and PRABHAKARAN
G (110819104024), held on __________.
INTERNAL EXAMINER EXTERNAL EXAMINER
iv
ABSTRACT
The newest technology for developing dApps for various use cases is
blockchain. All nodes in the decentralised network can see every transaction
made using blockchain technology. For the sake of security, most applications
were created and are currently being tested on the Ethereum blockchain
platform. With blockchain technology, the nodes in the distributed network
distribute all their data to the other nodes without ever changing it. The nodes’
transactions are trusted thanks to digital signatures. During this study, one can
use the Ethereum blockchain platform to create a decentralised web application
for e-commerce. The application is deployed using smart contracts developed in
the Solidity programming language, and the front-end and back-end processes
are described. These e-commerce-related details are all kept in blocks in the
blockchain. The decentralised network’s nodes will be able to trust the web
application for online purchasing. For data security and consumer ease, other
online retail platforms like Amazon are attempting to implement the blockchain.
For upcoming work, factors like storage, scalability, and others can be
considered.
v
TABLE OF CONTENTS
PAGE NO.
ABSTRACT IV
LIST OF TABLES VII
LIST OF FIGURES VIII
LIST OF SYMBOLS, ABBREVIATIONS & DEFINITIONS IX
1. INTRODUCTION 1
1.1 System Overview 2
1.2 Objective 2
1.3 System Study 3
1.4 Organization of the Project 9
2. SOFTWARE REQUIREMENTS SPECIFICATION 10
2.1 External Interface Requirement 11
2.2 System Features 13
2.2.1 Processing Secure E-Commerce Transactions 13
2.2.2 Blockchain Technology Integration for Transparency 14
and Traceability
2.2.3 Wallet Connection and Identification of Users 16
2.2.4 Processing Payments and Preventing Fraud 18
2.3 Other Non-Functional Requirements 20
3. SOFTWARE DESIGN 23
3.1 Architectural Design 24
3.2 Decomposition Description 27
vi
3.2.1 Wallet Management 27
3.2.2 Payment Management 28
3.3 Component Design 29
3.4 Data Design 32
3.5 Human Interface Design 33
4. IMPLEMENTATION 37
5. TEST PLAN AND TESTING 45
6. RESULT AND OBSERVATION 49
7. CONCLUSION AND FUTURE WORK 51
APPENDIX 53
REFERENCES 57
vii
LIST OF TABLES
S.NO TABLE NO. TABLE NAME PAGENO.
1 5.1 Unit Testing for Wallet Management 47
2 5.2 Unit Testing for FetchDetails function 47
3 5.3 Unit Tests for the UseEffect hook in 47
the Product Component
viii
LIST OF FIGURES
S.N
FIGURE NO. FIGURE NAME PAGE NO.
O
1 3.1 Architecture Diagram 24
2 3.2 Use Case Diagram 25
3 3.3 Sequence Diagram 26
4 3.4 Flow Diagram for wallet management 27
5 3.5 Flow Diagram for Payment management 29
6 3.6 User Interface 34
7 3.7 Product Page 35
8 A1 User Interface 54
9 A2 Meta Mask Wallet 54
10 A3 Product Interface 55
11 A4 Transaction Interface 55
12 A5 Product Purchase Confirmation 56
13 A6 Receipt Interface 56
ix
LIST OF SYMBOLS, ABBREVIATIONS & DEFINITIONS
SYMBOLS
: External Entity
: Flow of Data
: : Use Case
: Decision
ABBREVIATIONS
dApp : Decentralized Application
ETH : Ethereum
IPFS : Interplanetary File System
PoS : Proof of Stake
P2P : Peer-to-Peer
DEFINITION
Blockchain: A distributed ledger technology that keeps a list of records that is
constantly expanding and connected through encryption.
Cryptocurrency: A digital or virtual money that runs without a central bank
and employs cryptography for security.
Smart Contract: Scripted on a blockchain, self-executing contracts take effect
when specific criteria are met.
x
Decentralized: A network that is maintained by several members rather than
being under the direction of a single body.
Traceability: A blockchain’s transaction history tracking feature that promotes
accountability and transparency.
Transparency: The ability to view and verify the details of a transaction or
process on a blockchain.