2023 4th International Conference for Emerging Technology (INCET)
Belgaum, India. May 26-28, 2023
BlockChain Based Chat Application
Ishan Lokhande Dr. Nilesh Deotale Bharat Mali
Depertment of Computer Engineering Depertment of Computer Engineering Depertment of Computer Engineering
St. John College of Engineering and St. John College of Engineering and St. John College of Engineering and
Management Management Management
Palghar, India Palghar, India Palghar, India
2023 4th International Conference for Emerging Technology (INCET) | 979-8-3503-3575-0/23/$31.00 ©2023 IEEE | DOI: 10.1109/INCET57972.2023.10170739
ishanlokhande20@gmail.com nileshd@sjcem.edu.in b.b.mali610@gmail.com
Sneha Chauhan Jayesh Dhuri
Depertment of Computer Engineering Depertment of Computer Engineering
St. John College of Engineering and St. John College of Engineering and
Management Management
Palghar, India Palghar, India
chauhansneha663@gmail.com jayeshdhuri25@gmail.com
Abstract—Peer-to-peer networks are used by decentralized the future. In our project, every user data is kept on a block
applications to ensure that no network failure can be caused by that is chained together with other blocks to build a whole. A
a failing central node. Today's environment, where holding decentralised programme lacks a centralised server, as the
data on a centralized server might be unsafe and expensive, name suggests. Essentially, it is a peer-to-peer network with
requires a decentralized application for communication and a mesh topology that is decentralised and made up of many
resource sharing. We developed a programme that uses nodes connecting to one another. Blockchain is a series of
blockchain technology and decentralized networks to blocks that, like a traditional public ledger, contains a full list
guarantee user privacy and make it simple for blockchain of transaction data.
administrators to track down the source of false rumors that
circulate throughout the network. The workload for file II. PROBLEM DEFINITION
synchronization and sharing is distributed among a service, a
client and a provider. This paper focuses on how To create a blockchain-based chat application for
decentralization could assist in successfully overcoming such digitally stamping electronic communications and messages
problems. Decentralization would result in an increase in so that their source, date, time, and spread can be known.
workers who will transfer data from a client node to a server Using this application, we can identify the source of the false
node. When sharing data, blockchain would guarantee rumour that started the message and track it in the ledger.
security. The suggested model can be utilized to move large Law enforcement in cyberspace will be ensured by this
data in a comparatively faster time frame. Additionally, the tracing, which will also aid in lowering crime. Text message,
study elaborates on the design implications and factors, a user email, voice message, and video attachments are all part of
must comprehend in order to use this model properly and to the retracing communications. Additionally, a decentralised
obtain better outcomes when deployed onto the systems. application's POS is developed. It guarantees a safer setting
for communicating and sharing resources.
Keywords— Blockchain, Ethereum, Solidity
The application offers all the functionality offered by the
I. INTRODUCTION already accessible chat applications and fixes their flaws.
Decentralized systems are beginning to suffer in the web Compared to what is currently accessible, it will be more
2.0 age, which causes a transition to web 3.0. Social media trustworthy.
companies stand to gain significantly from the rise in The adoption of blockchain ensures record transparency,
demand for decentralised systems in industries like security, leading to the efficient management of records. This concept
tracking, and stamping. a rise in weaknesses such as has a lot of potential in government organisations because it
impersonation, bogus news, and the conundrum of different guarantees excellent data protection.
elements.
Rumours and other types of misinformation are III. RELATED WORK
circulated using social media sites. If ignored, these rumours Fausto Spoto [1] hypothesised a link between smart
can have major repercussions, especially if they are untrue. contracts and the Java programming language. This article
Although there are a few sections under several statutes that outlines a framework for creating smart contracts on the
apply in cases of misinformation, India currently lacks a blockchain using Java. The framework is made up of a
particular law to combat cybercrimes and deal with rumours constrained runtime, an instrumentation process for classes
and other types of false information. The Indian government, that need to be stored on blockchains, payment contract
social media platforms, and the police are all taking various methods, and gas metering. explains the fundamental
actions to stop these rumours. Therefore, we decided to concepts of what may be called a Java framework because it
create a chat application using Blockchain, which employs a leverages Java and its toolkit as the development language
decentralised network, to aid them and deal with it quickly. for smart contracts. Although java is also utilised in the
construction of Android, no method of connecting them to
Decentralized systems strive to deliver a safer, better smart contracts was suggested.
system than web 2.0 by preventing any attacks today or in
979-8-3503-3575-0/23/$31.00 ©2023 IEEE 1
Authorized licensed use limited to: K K Wagh Inst of Engg Education and Research. Downloaded on March 12,2025 at 08:40:58 UTC from IEEE Xplore. Restrictions apply.
Rishabh Bhatangar ,Vivian Brian Lobo [2] It is possible to the Next framework. Js manages the tooling and settings
for two peers to transfer data and communicate with ease. In required for React and offers our application extra structure,
order to promote the transfer of massive data via threads in a features, and optimizations. Ethereum's testnet is based on
multithreaded environment and decrease the effective Hardhat. It enables us to run tests, deploy contracts, and
transmission time needed for sharing a large file, [p2p]. Aims debug code all on our local PC. As of the crypto wallet, we
to create a novel concept of multihop concurrent used the Metamask wallet and the blockchain language
communication between blockchain network participants. An Solidity, which can be used with Remix or Webstorm.
efficient data channelling to numerous receivers in a network
is ensured by a concurrent multithreading architecture. The
study does not demonstrate the current working or
implementation of such a system.
R. Vishnu Prasad, Ram Dantu, Aditya Paul, Paula Mears
[3] It is now possible to create applications that users can
trust with their money because the problem of user trust in
decentralised applications that operate on a blockchain
platform has recently been studied and developed. These
innovations could have a big impact on the world of online
markets. However, it is conceivable to have each user protect
their own data in a decentralised system. The application's
transactions' computing complexity was tested, and the gas
consumption was assessed. The amount of gas used in each
transaction was recalculated and converted to a dollar
amount, which was then used to calculate the price of selling
and buying an item through the application and compare it to
the sums consented upon by both the buyer and the seller.
The Ethereum framework protects the user information by
guaranteeing that no user can get hold of the information of
some other user.
Ishwarlal Hingorani, Rushabh Khara, Deepika
Pomendkar, Nataasha Rau [4] In this the system will provide
transparency and also ensure the confidentiality of data
stores. It will also benefit the police officers by simplifying
the tedious of filing reports. They propose a system That will
protect against the corruption of police activity and provide
justice.
Securing Medical Forensic System Using Hyperledger
Based Private Blockchain [5] They explain in this that the
Hyperledger blockchain has made it far more secure and
reliable than other blockchain-based platforms. Ethereum
requires cryptocurrency to carry out any type of transaction,
which it does. As a result, it is unsuitable for securing
forensic data. The Historian Record of the decentralised
Network, in which a recorded transaction cannot be altered,
is used in this Hyperledger-based forensic system.
Participants face restrictions based on their roles in the
system. This is not possible with a permissionless blockchain
system.
IV. PROPOSED SYSTEM
Prior to carrying out a subsequent operation, our method
appends the Client ID, Owner ID, and Timestamp and hashes
them. Sending emails, messages, and plaintext over a web
app or text service application is part of the sender's role. The
recipient receives the plaintext, message, or email via a web
app or text service application. Our programme plays the role
of an administrator, deploying the smart contract, handling
payments, and monitoring Ethereum gas.
The REACT/Next JS framework, which provides Fig. 1. (a.) Flow chart of Proposed System
building blocks to create web apps, was used by us. We refer
2
Authorized licensed use limited to: K K Wagh Inst of Engg Education and Research. Downloaded on March 12,2025 at 08:40:58 UTC from IEEE Xplore. Restrictions apply.
false information and track down people who make hate
speeches.
So, if a particular message is being forwarded many
times in chats and it's falsified or fake and is affecting an
individual or organisation’s reputation then the authorities
(like Digital forensics, Cybersecurity departments, and
Police Force etc,.) using our application have full rights to
demand for call of origin of the message to track down the
person who sent the message first. This will indeed help
society and government bodies. The application will get a
request from formal authorities and if it is valid then only the
administration of the smart contract will allow access to
blocks but will not allow tampering with the same.
Metamask ID ensures single login on a system, as our
blockchain application requires the MetaMask ID. If a user
tries to login in to multiple systems then the other system
which is signed in first the session will log out and the app
will return to the login page/ home page.
V. FAILURE AND CHECKPOINTING
Reasons for the failure of an ongoing transmission are as
follows:
A. Decentralised system
Problem:In centralised chatting systems, decisions made
at the top take a long time to take effect, and then the job is
completed, making the process of communication between
users slow.
Solution:There is no centralised server for conversation
in a decentralised structure. Users communicate with other
Users directly. By allowing chat ,users discover and establish
connections with one another, there will be no disruption in
user communications unless the physical network hardware
or power supply is disrupted.
B. User privacy and cost reduction
Problem:Users are required to Login using their personal
information like mobile number,email,etc. High translation
requires high cost.
Solution:Users are not required to submit the personal
Fig.. 1. (b). Flow chart of Proposed System information in order to use any application-specific
functionality. DApps offer high translation speed which
Our application's new interface was created entirely with reduces cost.
REACT and Solidity programming. The smart contract has
been embedded and is fully operational. When the C. Multiple logins and access
application starts, the local host requests the Blockchain ID Problem: Users try to use dual or multiple logins in chat
[i.e. meta mask wallet ID] for login. If the user is new to the applications allowing them ease of functionality with
app, he or she will create a new Metamask wallet ID and log systems(cross platforms).This compromises safety and
in using new credentials. The user has been authorised to privacy.
chat and send messages using Meta mask ID. Once logged
in, the home screen is accessible. The home screen includes a Solution: Our application does not allow multiple logins
chat app interface (Whatsapp or Slack) that displays all and uses MetaMask ID to log in so it logs out from another
Users, Chat, and Contact tabs. Users can add new friends system
who use this technology here. Users can communicate with D. Backtracking
one another. The app inserts userX and userY, as well as
Problem: In a centralised system/ chat application it is
messages and timestamps, into the smart contract database
impossible to fetch data like user credentials, past messages,
and hashes them before storing them in an Ethereum block.
meta data, origin of fake messages, etc.
After the administration has granted authorised access, these
blocks can be traced back using the IDs and timestamps. Solution: Our system being a decentralised chat
application makes it easier to backtrack messages, get origin
The proposed system can be useful for Digital forensics,
of messages, and find the first user to initiate the false
Cybersecurity departments, Police Force as well as in Civil
message. The application also gives access to nodes and find
services to track the origin of messages, stop the spread of
metadata.
3
Authorized licensed use limited to: K K Wagh Inst of Engg Education and Research. Downloaded on March 12,2025 at 08:40:58 UTC from IEEE Xplore. Restrictions apply.
VI. RESULTS AND DISCUSSION 4. As we can see in the chat area below, User1 chose
Blockchain being a new technology uses a new User2 as a friend with whom to begin chatting.
framework of javascript known as Web3js. This framework
can be used for various website building, smart contract
connection, development and deployment. The same
framework was used to develop a Web application along
with the Frontend and backend of the proposed system. The
Web application is connected to a decentralised system also
known as Blockchain with the use of smart contracts. The
smart contract is a piece of code that runs natively on a
decentralised system. This is mainly written in solidity, a
programming language developed on Solano Blockchain.
The contract ensures a connection between the sender and
the receiver through the backend of the web application. the
contact also works on updating the Blockchain by; Fig. 5. Dashboard of Chat Area
1. Mining Blocks 2. Updating ledger 3. Noting 5. User3 also chose User2 as a friend with whom to
transactions 4. Charging Transaction Fees. begin a chat.
Below are the result of our proposed system:
1. The login screen, where the registered user logs in to
his or her account by entering their name and the
key, then click to the submit button.
Fig. 6. Chat between User3 and User2
6. We can now see Usere2's screen as he can see that
User1 and User3 have added him as a friend.
Fig. 2. Home page
2. After logging in, we can see the user's name in the
top right corner; by clicking 'All Users,' we can see
all other users/friends and add them to our account.
Fig. 7. Dashboard of User2
7. Here User1 start the chat by sending "Hi jayesh" as a
text message.
Fig. 3. Friends list page
3. On the chat screen, we can see our friends and
choose one to begin chatting with. Assume user 1 is
Ishan, user 2 is Jayesh, and user 3 is Bharat.
Fig. 4. Selecting a User
Fig. 8. Text message send
4
Authorized licensed use limited to: K K Wagh Inst of Engg Education and Research. Downloaded on March 12,2025 at 08:40:58 UTC from IEEE Xplore. Restrictions apply.
8. User2 receives the message.
Fig. 9. Message received
9. There is a conversation between User2 and User3.
Fig. 10. UI of a conversation
10. The Transaction key (Text message send), From as
User2 key and To as User3 key, the value of
Ethereum gas cost to that particular message, and the
gas used are all visible here.
Fig. 12. Backtracking of Message
REFERENCES
[1] Fausto Spoto “A Java Framework for Smart Contracts- Fausto Spoto
Universit`a d Verona, Italy” Published in: February 22, 2019
Department of Computer Science, Universit`a di Verona, Italy-DOI:
10.1007/978-3-030-43725-1_10
[2] Rishabh Bhatangar ,Vivian Brian Lobo “IEEE_Multihop Concurrent
Big Data Sharing via Multithreading using Blockchain on a
Decentralized Network” Published in : December 18, 2020 2nd
International Conference on Advances in Computing, Communication
Control and Networking (ICACCCN) -DOI:
Fig. 11. Transaction Details 10.1109/ICACCCN51052.2020.9362977
[3] R. Vishnu Prasad,Ram Dantu,Aditya Paul,Paula Mears “A
Decentralized Marketplace Application on The Ethereum
Blockchain” Published in: 2018 IEEE 4th International Conference on
11. Following are the key pairs indicating the Collaboration and Internet Computing-DOI 10.1109/CIC.2018.00023
conversation between the users ,using which we can [4] Ishwarlal Hingorani, Rushabh Khara, Deepika Pomendkar, Nataasha
backtrack the particular message origin. Rau “Police Complaint Management System using Blockchain
Technology” Published in:Conference: 2020 3rd International
Conference on Intelligent Sustainable Systems (ICISS)-
DOI:10.1109/ICISS49785.2020.9315884
5
Authorized licensed use limited to: K K Wagh Inst of Engg Education and Research. Downloaded on March 12,2025 at 08:40:58 UTC from IEEE Xplore. Restrictions apply.
[5] Mamun Ahmed; Saha Reno; Nelofa Akter; Fahmida Haque “Securing
Medical Forensic System Using Hyperledger Based Private
Blockchain” Published in: 2020 23rd International Conference on
Computer and Information Technology (ICCIT)-DOI:
10.1109/ICCIT51783.2020.9392686
6
Authorized licensed use limited to: K K Wagh Inst of Engg Education and Research. Downloaded on March 12,2025 at 08:40:58 UTC from IEEE Xplore. Restrictions apply.