Documentation
Documentation
org) 403
Secured
Document
Storing Using
Blockchain
urnal for Research Trends and Innovation (www.ijrti.org) 404
1
Sakshi Jha, 2Govind Dhingra, 3Gagan Mittal, 4Harsh Vardan
1
Assistant Professor, 2Student, 3Student, 4Student
Department of Computer Science and Engineering,
Maharaja Agrasen Institute of Technology, Delhi, India
Abstract:
With the rapid advancement of technology and the growing number of
information records, there is a significant risk of data leakage and record
tampering, posing a serious threat to the privacy and accuracy of research
records. When this information is stored on a centralized server, security
and reliability issues may arise. As a result, a distributed system that is both
efficient and secure is required.
Blockchain is the arising innovation which endeavors to tackle these issues by
making carefully designed occasion of records in a distributed environment.
So, we are proposing a secured decentralized document storing and sharing
option in which we are using IPFS which enables us to store large files and
put immutable, permanent links in transactions. Our solution uses Huffman
compression for file size optimization and RSA encryption is used for data
security purposes.
I. INTRODUCTION
Changes in the technology used to create and retain records are nothing new
for information workers. Several such shifts have occurred over the last few
decades, resulting in new types of records, such as web or social media records,
as well as recordkeeping solutions, such as electronic records management
systems and cloud-based software services. Blockchains, which can be defined as
ledgers with entries organized in an append-only, sequential chain using
cryptographic links and distributed and stored on a peer-to- peer computer
network, are an emerging recordkeeping technology that is producing new types
of records and new recordkeeping modalities with which records and information
professionals will need to engage.
urnal for Research Trends and Innovation (www.ijrti.org) 405
Motivation
The motivation was the existing issue of data breaches which results in losses
of millions of dollars to develop system resistant to such breaches. The structure
of data in a blockchain differs from that of a traditional database. A blockchain
organizes data into groupings called blocks, each of which contains a collection
of data. Blocks have specific storage capabilities, and when they are filled, they
are closed and linked to the preceding block, producing a data chain known as the
blockchain. All additional information added after that newly added block is
compiled into a new block, which is then added to the chain after it is filled.
A database organizes data into tables, whereas a blockchain organizes data into
chunks (blocks) that are strung together, as the name suggests. When
implemented in a decentralized manner, this data structure creates an irreversible
data time line. When a block is filled, it becomes permanent and part of the
timeline. When each block is added to the chain, it is given a specific time stamp.
In a scenario where a hacker wants to change a blockchain and take
cryptocurrency from everyone else, if they changed their single copy, it would no
longer match the copy of everyone else. When everyone else compares their
copies, they'll notice that this one stands out, and that hacker's version of the
chain will be discarded as invalid.
The cost of accomplishing such a feat would almost certainly be impossible,
given the scale of many cryptocurrency networks and how quickly they are
developing. Not only would this be prohibitively expensive, but it would also be
futile. Such behavior would not go unnoticed by network participants, who
would notice the blockchain's significant changes.
urnal for Research Trends and Innovation (www.ijrti.org) 406
Challenges
Integration of IPFS
1.
We learned about smart contracts, which are special programs that may be run
automatically on the blockchain. Its distinguishing feature is that the computer
code and data are both stored on the chain, making it highly tamper-proof and
decentralized. Transactions are used to design and execute smart contracts.
Because the contract programe runs on all nodes in the distributed network, any
node failure has no impact on the contract program's operation. Ethereum and
Hyperledger Fabric are the two most popular blockchains for smart contracts
right now.
Block number - Simply displays the index number of the block. Block 0
refers to the genesis block.
Timestamp - This field indicates as to when the block was created and
added to the blockchain.
Proof - Also called a nonce, it stands for "number only used once,"
which is a number added to a hashed—or encrypted—block in a
blockchain that, when rehashed, meets the difficulty level restrictions i.e
by varying the proof we can vary the hash generated so that a new block
can be created.
Previous hash - This field represents the hash of the previous block. (In
this case block index 2). The hash of the entire block is generated using
the SHA-256 hashing algorithm. This field creates a chain of blocks and
is the main element behind blockchain architecture’s security.
Sender - The person who uploads the file enters his identity proof or
name when he uploads the file.
Hash of the file shared - The uploaded file is first encrypted with the
file key given by the uploader using the AES encryption mechanism and
subsequently using the SHA-256 hashing algorithm when it is uploaded
to ipfs. The hash, then received from the IPFS after the encryption is the
hash of the shared file which is added to the block.
national Journal for Research Trends and Innovation (www.ijrti.org) 416
Design of interface:
An interactive interface is needed for easy access and seamless usage.
We explored different web frameworks which can be used to make a
working interface for our project. After comparing some of the
frameworks like React, Angular, Vue. etc., we decided to use react over
other because of its advantages like
1. Speed
2. Flexibility
3. Performance
4. Usability
When user signup, backend code runs and generate 2 keys: public and private
key (RSA). Public key is stored at IPFS of that user which create a public hash,
which triggers the smart contract of backend and authenticate the user to proceed
into the application.
Upon entering the username and password, the user can access the smart contracts
to access the shared files page.
To The selected file then passes
through the IPFS. IPFS uses
three main functions:
Node.js
React
React is a JavaScript toolkit for creating user interfaces that makes creating
interactive UIs a breeze. Create basic views for each of our application's states.
Because React is solely concerned with state management and rendering that
information to the DOM, building React apps frequently necessitates the usage
of extra frameworks for routing and client-side functionality.
IPFS
The Interplanetary File System (IPFS) is a distributed file system protocol and
peer-to-peer network for storing and sharing data.
In a global namespace connecting all computing devices, IPFS uses content-
addressing to uniquely identify each file.
The developed solution provides confidentiality, access control, data privacy, and
document integrity. Using the immutability and tamper-proof capabilities of the
Ethereum blockchain, the proposed system stores transactions that hold user
details, meta-information about uploading the document, granting and
distributing read permission, and so on. The issuer authorization, which is
responsible for issuing documents to residents, can be added to this application to
improve it.
.
REFERENCES
[1] Jai Singhal, Ankit Singh Gautam, Ashutosh Bhatia, Ankit Agrawal "
DD-Locker: Blockchain based Decentralized Personal Document
Locker" International Conference on Information Networking
(ICOIN), 68-73 Jan, 2022
[2] Enchang Sun, Kang Meng, Ruizhe Yang, Yanhua Zhang and Meng Li
"Distributed Data Sharing System based on Internet of Things and
Blockchain " Journal of Systems Science and Information Volume 119
No. 15 2018, 1437-1442.
[4] Ajay Kumar Shrestha, Julita Vassileva and Ralph Deters, "A
Blockchain Platform for User Data Sharing Ensuring User Control and
Incentives", October 2020.
[5] Enchang Sun, Kang Meng, Ruizhe Yang, Yanhua Zhang and Meng Li,
" Research on Distributed Data Sharing System based on Internet of
Things and Blockchain", Journal of Systems Science and Information,
July 2021.
[6] Mihir Nevpurkar, Chetan Bandgar, Ranjeet Deshmukh, Jay Thombre,
Rajashri Sadafule,
[7] Suhasini Bhat, "Decentralized File Storing and Sharing System using
Blockchain and IPFS", International Research Journal of Engineering
and Technology (IRJET), Volume: 07 Issue: 05 | May 2020.
[8] Ian Zhou, Imran Makhdoom, Mehran Abolhasa "A Blockchain-based File-
sharing System for Academic Paper Review", Conference: International
Conferences on Signal Processing and Communication, October 2019.
[9] Alevtina Dubovitskaya, Petr Novotny, Zhigang Xu, Fusheng Wange, "
Applications of Blockchain Technology for Data-Sharing in Oncology: Results
from a Systematic Literature Review", December 2019.