0% found this document useful (0 votes)
3 views29 pages

Blockchain Report

skfnufbtkleloree

Uploaded by

Anam Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views29 pages

Blockchain Report

skfnufbtkleloree

Uploaded by

Anam Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

MINI PROJECT REPORT

ON

“Decentralized Chat App”


SUBMITTED IN PARTIAL FULLFILLMENT OF THE REQUIREMENTS
OF DEGREE OF
BACHELOR OF
ENGINEERING BY
Anam Khan
Janhavi Shirke
SUPERVISOR

Mr.Sagar Yeshwantrao

DEPARTMENT OF COMPUTER ENGINEERING

PILLAI HOC COLLEGE OF ENGINEERING AND TECHNOLOGY,


PILLAI’S HOC EDUCATIONAL CAMPUS, HOCL COLONY,
RASAYANI, TAL: KHALAPUR, DIST RAIGAD 410207
UNIVERSITY OF MUMBAI
[2024-25]
Mahatma Education Society’s

Pillai HOC College of Engineering and


Technology, Rasayani-410207
2024-25

Certificate
This is to certify that the Mini Project-B entitled “Decentralized Chat
App” I a bonafide work of Anam Khan Janhavi Shirke submitted to the
University of Mumbai in partial fulfillment of the requirement for the
award of the degree of “Undergraduate” in “Computer
Engineering”.

____________________ ________________________
Mr. Sagar Yashwantrao Dr. Rajashree Gadhave

(Supervisor) (Head Of department )


Mini Project-B Report Approval

This project report entitled “Decentralized Chatting App ” submitted


by Anam Khan , Janhavi Shirke is approved for the degree of
Bachelor of Engineering in Computer Engineering.

Examiners

1.

Date:

Place:
Declaration
We declare that this written submission represents our ideas in our
own words and where others ideas or words have been included. We have
adequately cited and referenced the original sources. We also declare that
we have adhered to all principles of academic honesty and integrity and
have not misrepresented or fabricated or falsified any idea/data/fact/source
in our submission. We understand that any violation of the above will
because for disciplinary action by the Institute and can also evoke penal
action from the sources which have thus not been properly cited or from
whom proper permission has not been taken when needed.

________________________
Anam khan

_____________________________
Janhavi Shirke

Date:
Abstract

In today's digital age, privacy and data security in communication have


become significant concerns. Traditional centralized chatting platforms
are susceptible to data breaches and offer limited user control over
personal information. This project introduces a decentralized chatting
application built on block chain technology, utilizing Solidity smart
contracts and MetaMask for secure authentication. By leveraging the
decentralized nature of block chain, the app ensures secure, transparent,
and private communication without reliance on third-party
intermediaries. Users can send and receive messages directly through the
Ethereum block chain, with the assurance that their data remains private
and immutable. The integration of MetaMask facilitates secure user
authentication and transaction management. This decentralized approach
addresses the growing need for privacy-focused communication
solutions in a world where centralized systems are vulnerable to
exploitation.

Keywords: Block chain, Decentralized Application (DApp), Solidity,


MetaMask, Smart Contracts, Ethereum, Privacy, Secure
Communication, Immutable Data.

i
List of Figures

Figure Figure Name Page


No.
No.
1 System Architecture 22

2 Level 0 data flow diagram 23

3 Level 1 data flow diagram 23

4 Level 2 data flow diagram 24

5 ER Diagram 25

6 Use Case Diagram 26

ii
TABLE OF CONTENTS

Content Page No.

Abstract i
List of Figures ii

1. Introduction 1
1.1 Background 2
1.2 Motivation 3

2. Literature Survey 4

2.1 Basic Terminologies 5


2.2 Existing System 6
2.3 Problem Statement 7

3. Requirement Gathering 8

3.1 Software and Hardware Requirements 9

4. Plan of Project 10

4.1 System Architecture 11


4.2 Methodology 11

5. Result Analysis (Only for half yearly project) 16


5.1 Results and discussion 17

6. Conclusion 19
References 21
Decentralised Voting System

Chapter 1

Introduction

Pillai HOC College of Engineering and Technology, Rasayani


1
Decentralized Voting System

1. Introduction
Blockchain technology has transformed multiple industries, including communication,
by offering enhanced security and privacy. Traditional centralized chat platforms store
user data on central servers, making them prone to privacy breaches, data misuse, and
cyberattacks. In contrast, a decentralized chatting app leverages blockchain to
eliminate the need for intermediaries, ensuring that messages remain private, secure,
and immutable. By using smart contracts built with Solidity and integrated with
MetaMask for authentication, this app allows users to communicate directly on the
Ethereum blockchain. Each message is securely encrypted and stored, offering
transparency, data ownership, and resistance to tampering. This decentralized
approach not only improves user privacy but also addresses issues of trust and security
commonly associated with centralized communication platforms.

1.1 .Background
In today’s digital landscape, data privacy has become a critical concern as users
increasingly demand more control over their personal information. Centralized
messaging platforms, which rely on servers owned and managed by a single entity,
often expose users to privacy risks, data misuse, and potential breaches. Decentralized
applications (DApps) offer a powerful solution by placing control directly in the hands
of users. Unlike traditional systems, DApps operate on blockchain technology, which
removes the need for intermediaries and ensures that no central authority can access,
manipulate, or exploit user data. Blockchain-based chatting apps, in particular, provide
a secure and private communication framework, allowing users to send and receive
messages without the fear of surveillance or unauthorized data access. Each message
sent is encrypted and recorded immutably on the blockchain, ensuring that
Pillai HOC College of Engineering and Technology, Rasayani
2
Decentralized Voting System

communications cannot be altered or deleted. With the integration of smart contracts,


users can engage in transparent, secure interactions, where their privacy is prioritized.
This decentralized model not only addresses modern concerns around data ownership
and security but also establishes a more trustworthy and resilient approach to online
communication, ensuring that users maintain full control over their conversations and
personal information.

1.2 Motivation

The primary motivation for this project is to eliminate the reliance on intermediaries in
online communication, giving users full control over their messages and data.
Traditional messaging platforms often depend on centralized servers, where user
privacy and security can be compromised. By using blockchain technology, this
decentralized chatting app ensures that users can communicate directly, without
needing a third party to manage or store their messages. The integration of MetaMask
provides secure, user-friendly authentication, allowing individuals to connect their
wallets for identity verification without exposing personal data. Solidity smart contracts
are employed to manage message transactions, ensuring that every message is securely
encrypted, stored, and accessible only by the intended recipients. This approach
guarantees not only privacy and security but also transparency, as all transactions are
recorded immutably on the blockchain. The project ultimately empowers users by
giving them control over their communication, with no central authority involved

Pillai HOC College of Engineering and Technology, Rasayani

3
Decentralized Voting System

Chapter 2

Literature Survey

3 Pillai HOC College of Engineering and Technology, Rasayani


4
Decentralized Voting System

2.1 Basic Terminologies

 Blockchain: Blockchain is a decentralized ledger technology that enables secure


and transparent recording of transactions across multiple systems. Each transaction is
grouped into a block, which is then cryptographically linked to the previous block,
forming a chain. This structure ensures that the data cannot be altered retroactively,
providing a high level of security. The decentralized nature of blockchain means that
no single entity has control over the entire network, reducing the risk of fraud and
corruption. Each participant in the network maintains a copy of the entire ledger,
allowing for transparency and trust among users. As a result, blockchain technology
has applications beyond cryptocurrencies, extending to sectors such as finance, supply
chain, and communication.

 Solidity: Solidity is a high-level programming language designed specifically for


writing smart contracts on the Ethereum blockchain. It is statically typed and allows
developers to create self-executing contracts with predefined rules that automatically
enforce agreements between parties. Solidity’s syntax is influenced by JavaScript, C++,
and Python, making it accessible to many developers. It supports inheritance, libraries,
and complex user-defined types, enabling the creation of sophisticated decentralized
applications (DApps). With Solidity, developers can implement various functionalities,
such as token creation, decentralized finance protocols, and more. Its growing
popularity is driven by the increasing adoption of blockchain technology across various
industries.

7 Pillai HOC College of Engineering and Technology, Rasayani


5
Decentralized Voting System

 MetaMask: MetaMask is a crypto wallet and browser extension that facilitates


interaction with Ethereum-based applications. It acts as a bridge between users and the
Ethereum blockchain, allowing them to manage their cryptocurrencies securely and
conveniently. With MetaMask, users can create wallets, store their private keys, and
access decentralized applications (DApps) without the need for a centralized authority.
It provides a user-friendly interface for sending and receiving Ether and tokens, as well
as interacting with smart contracts. MetaMask also enhances security by enabling users
to sign transactions directly from their wallets, ensuring that their private keys are never
exposed to external threats.

 DApp (Decentralized Application): A Decentralized Application, or DApp, is


an application that runs on a peer-to-peer network instead of relying on a single
server. DApps utilize blockchain technology to provide transparency, security,
and resilience against censorship. Unlike traditional applications, DApps are
open-source and operate autonomously, governed by smart contracts that
dictate their functionality. Users can interact directly with the blockchain
without intermediaries, enhancing privacy and control over their data.
DApps can serve various purposes, including finance, gaming, and social
networking, and they offer innovative solutions that challenge conventional
business models by prioritizing user empowerment and decentralization.

2.2 Existing system


Existing messaging platforms predominantly rely on centralized servers, where
user messages and data are stored and managed by a single authority. This
architecture poses significant risks to user privacy and data security, as the central

7 Pillai HOC College of Engineering and Technology, Rasayani


6
Decentralized Voting System

server becomes a single point of failure. If compromised, attackers can gain


unauthorized access to sensitive information, leading to data breaches and privacy
violations. Additionally, centralized platforms often lack transparency, making it
difficult for users to understand how their data is being used and managed. Users
may be subject to data monetization practices without their consent, raising ethical
concerns. Moreover, these platforms can censor content or limit access based on
arbitrary policies, undermining free speech. The reliance on central authorities also
creates a trust deficit among users, as they must depend on these entities to protect
their information. Overall, the existing centralized messaging systems highlight the
need for innovative solutions that prioritize user privacy and data security.

2.3 Problem Statement

The centralized nature of most communication platforms leaves users’ private data
vulnerable to misuse, surveillance, and censorship. In these systems, user information
is often stored on central servers that can be compromised, leading to data breaches
and unauthorized access. This vulnerability raises concerns about the safety of
personal conversations, sensitive information, and the overall integrity of the
communication process. Furthermore, centralized platforms can impose restrictions
on what users can say or share, limiting their freedom of expression. As a result, there
is a pressing need for a solution that provides secure, private, and transparent
communication. This project aims to create a decentralized messaging application
that utilizes blockchain technology to address these issues. By removing
intermediaries and enabling direct peer-to-peer communication, the application
empowers users to control their data while ensuring that their messages are secure
and tamper-proof.
Through this decentralized approach, the project seeks to enhance privacy, foster

7 Pillai HOC College of Engineering and Technology, Rasayani

7
Decentralized Voting System
trust, and provide a robust alternative to conventional messaging systems.

7 Pillai HOC College of Engineering and Technology, Rasayani


Decentralized Voting System

Chapter 3

Requirement Gathering

7 Pillai HOC College of Engineering and Technology, Rasayani


8
Decentralized Voting System

3.1 Software and Hardware Requirements


Here we will discuss everything we will need in order to execute. Below we list the necessary
hardware and software requirements.
1. Software Requirements:
o Node.js (version – 18.14.0)
o Web3.js (version – 1.8.2)
o Truffle (version – 5.7.6)
o Solidity (version – 0.5.16)
o Ganache (version – 7.7.3)
o Metamask
o Python (version – 3.9)
o FastAPI
o MySQL Database (port – 3306)

2. Hardware Requirements:
o Processor – 2 GHz or more
o RAM – 4 GB or more
o Disk Space – 100 GB or more

Pillai HOC College of Engineering and Technology, Rasayani

9
Decentralized Voting System

Chapter 4

Plan of

Project

Pillai HOC College of Engineering and Technology, Rasayani


10
Decentralized Voting System

4.1 System Architecture

Figure 1: System Architecture

4.2 Methodology

Literature Review

1. Study of Blockchain and Cryptographic Protocols

Blockchain technology is a decentralized ledger system that enables secure and


transparent transactions. Research has shown that the implementation of cryptographic
protocols within blockchain enhances security by ensuring data integrity and
authenticity. Studies highlight the importance of consensus mechanisms, such as Proof
of Work and Proof of Stake, in maintaining the integrity of blockchain networks.
Additionally, the role of smart contracts, written in languages like Solidity, facilitates
automated and trustless interactions between users, further bolstering the security of
applications such as decentralized chatting platforms.

Pillai HOC College of Engineering and Technology, Rasayani

11
Decentralized Voting System

2. Review of Legal Frameworks


Legal frameworks governing data privacy and security, such as the General Data
Protection Regulation (GDPR), are critical in the development of blockchain
applications. These regulations dictate how user data should be handled,
emphasizing the need for privacy-preserving techniques in decentralized
systems. Furthermore, election laws and regulations can provide insights into
ensuring the legality and ethical considerations of data handling, which can be
applied to user interactions in chatting apps.

Requirement Analysis
1. Identifying Stakeholders and Their Needs

Stakeholders in a decentralized chatting app include users, developers, and regulators.


Users seek a secure and private communication platform, developers require
flexible and scalable technology, and regulators demand compliance with legal
frameworks.

2. Defining Requirements

Functional Requirements:
Voter authentication through secure wallets (like MetaMask).
Sending and receiving messages.

Storing messages on a decentralized ledger for transparency.

Non-Functional Requirements:
Security measures to prevent unauthorized access.

Scalability to accommodate a growing user base.

User-friendly interfaces to enhance user experience.


Pillai HOC College of Engineering and Technology, Rasayani


12
Decentralized Voting System

Level 0 data flow diagram

∙ Level 1 data flow diagram

Figure 3 Level 1 Data Flow Diagram


∙ Level 2 data flow diagram

Pillai HOC College of Engineering and Technology, Rasayani

13
Decentralized Voting System

Figure 4 Level 2 Data Flow Diagram

Pillai HOC College of Engineering and Technology, Rasayani


14
Decentralized Voting System

Use Case Diagram

Figure 6 Use Case Diagram

Pillai HOC College of Engineering and Technology, Rasayani


15
Decentralized Voting System

Chapter 5

Result Analysis

Pillai HOC College of Engineering and Technology,


Rasayani
16
Decentralized Voting System

5.1 Results and Discussion

Fig 5.1.1 inbox for chatting

Pillai HOC College of Engineering and Technology, Rasayani


17
Decentralized Voting System

Fig 5.1.2 Add new friends

Pillai HOC College of Engineering and Technology, Rasayani

18
Decentralized Voting System

Chapter 6

Conclusion

Pillai HOC College of Engineering and Technology, Rasayani


19
Decentralized Voting System

Conclusion

The decentralized chatting app developed in this project demonstrates the potential
of blockchain technology in secure communication. It eliminates the need for
intermediaries and offers users greater control over their data, paving the way for a
more secure and transparent future in online communication.

Pillai HOC College of Engineering and Technology, Rasayani

20
Decentralized Voting System

References
[1] G. Zyskind, O. Nathan, and A. Pentland (2015). Decentralizing Privacy: Using Blockchain
to Protect Personal Data. In Proceedings of the 2015 IEEE Security and Privacy Workshops
(SPW), pp. 180-184.

[2] S. Nakamoto(2008). Bitcoin: A Peer-to-Peer Electronic Cash System.

[3] A. Kiayias, O. Panagiotakos(2016). On Stake-Based Blockchain Protocols: A Formal


Treatment. International Association for Cryptologic Research (IACR).

[4] MIT Media Lab(2018). Voatz Blockchain Voting in the 2018 West Virginia Elections.

[5]Estonian National Electoral Committee(2020). I-voting System in Estonia: A Decade of


Experience.

[6] Zhou, Q., Wang, C., & Sun, Y. (2020). "A Blockchain-Based Voting System for
Distributed Voting.”

[7] Rabbani, M., Shojafar, M., & Tafazolli, R. (2021). "Securing Decentralized Voting
Systems Using Cryptographic Proofs and Blockchain.”

[8] Yi, S., & Jung, Y. (2020). "A Secure and Verifiable Blockchain-Based E-Voting System.”

[9] Bistarelli, S., & Santini, F. (2020). "Decentralized E-Voting on Blockchain: Challenges
and Open Issues.”

[10]Kshetri, N., & Voas, J. (2021). "Blockchain-Enabled E-Voting: Security and Privacy
Challenges.”

Pillai HOC College of Engineering and Technology, Rasayani

21

You might also like