BlockvotingAn Online Voting System Using Block Chain
BlockvotingAn Online Voting System Using Block Chain
Authorized licensed use limited to: East West Institute of Technology. Downloaded on October 07,2024 at 05:53:11 UTC from IEEE Xplore. Restrictions apply.
it a truly democratic system. The knowledge in it is avail- III. EXISTING SYSTEM
able to everyone and everybody because it is a shared and
permanent ledger. So, everything installed on the blockchain
The common procedures in a national voting system, from
is transparent by definition. All involved is held responsible
casting ballots to delivering them to the right person to
for their behaviour. As a result, blockchain offers a stable
announcing the election winner. As a result, these steps in
information transmission platform while also increasing the
the voting process are figured out here.
overall productivity and speed of the entire evoting system.
figure 1.2 shows basic structure of an blockchain. In order to vote, the voter must have some basic authen-
tication. looking at many criteria, such as whether the voter
is over the age of 18 and resides in the same constituency,
II. RELATED WORKS
and so on. The authentication can then be done in a variety of
Because the future scope of this sector is very big, stud- ways, such as matching a person’s voter id, Adhar card, and
ies based on blockchain and applications of blockchain in voting list. The identification of a person in an online voting
other fields have been rapidly developing in recent years. system cannot be done by directly checking the individual
So, based on the research review, discovered that electronic at a polling location. There are variety of technologies to
voting systems and supply chains are the sectors where authenticate a person, including biometric authentications such
blockchain experimentation began. So this paper interested as fingerprints and iris scans, as well as facial recognition.
in the flaws in the existing system and how they may be They can vote by going immediately to the polling location
addressed with blockchain technology. is discussed in the on the voting day at his preferred time after authentication in
paper [1]They emphasised the necessity of voting first, then a normal voting. At each polling place, voters were validated
different types of mistrust that can arise during voting.They by presenting their identification and having it checked by
focused their literature review on several publications, and the designated individuals. They can use a voting machine to cast
major substance shared in those papers was also discussed. their vote by picking a candidate from a list of candidates,
They presented a model of the actual voting system and the and the vote will be recorded by the machine. After the voting
process with a figure, and presented a tidy graphic of the period has ended, the machines are securely collected, and the
new block chain voting mechanism and how it works. The results are recorded and released in such a way that results
discussion then moved on to the many types of blockchain from single polling stations are counted and published first,
and how they differ, as well as different hashing functions followed by results from separate polling stations within a
and blockchain characteristics. The major procedures in the single constituency. The nationwide result was revealed after
blockchain component are creating a block, sealing it with a counting and recording results from various constituencies.
hash code, and then creating a merkle tree to count votes from In a typical setting, there are numerous opportunities to
various polling stations. One of the most important aspects of expose the voting system’s security.
security is the hashing method; in this case, they used the
SHA256 algorithm. As a result, the paper [7] was really help-
ful in understanding more basic ideas regarding blockchain
IV. PROPOSED SYSTEM
and how it works. The key benefits they supplied through
their model. Based on the investigation, it was discovered that
the ethereum framework is more convenient. So the paper [2] The proposed voting mechanism allows voters to cast their
as a reference for a better understanding of this framework. ballots via the internet. A user interface site will be avail-
With the capability of smart contracts, the Ethereum network able for casting vote. Voters may enter voter ids and other
allows for a wider range of applications. Many apps that information on this site. Face recognition or biometrix can be
would ordinarily require a web server can be executed without used to ensure authenticity. It’s a well-known tool for verifying
one using these smart contracts. As a result, manipulating or a voter’s identity. This paper will mainly concentrating on
harming the source codes of the desired software is extremely how the data from casting votes should be saved and how
difficult, if not impossible. They explored the implementation the system should be secured at the data level. By picking
of smartcontracts in to detail using Solidity language, which a candidate and pressing the cast vote button, voters can cast
helped readers better grasp how smartcontracts function and their vote. The site’s backend is tied to a smartcontract that has
how ethers is transported across the network.The execution of been expressly designed for election. As a result, this smart
an Ethereum smart contract is restricted by a gas limit. As contract checks all conditions and criteria. The smart contract
long as there is gas available, the execution will continue. As works in the background for each vote, and if any criteria are
a result, gas is a valuable resource that an attacker can use not met by the voter, they unable to cast a vote. Every vote is
to cause undesirable behaviour in a victim’s smart contract. saved as a transaction by the smart contract. and the specifics
so paper [20]primarily assists me in learning more about gas of each transaction are stored in a block chain as ad blocks. It
and ethereum transactions. In Ethereum, the computation fuel is already know that block chains are secure and offer a variety
is gas. Gas, which is traded with the Ether cryptocurrency, is of features that have been discussed. The image depicts the
charged for each completed instruction. operation of the entire blockvoting system.
Authorized licensed use limited to: East West Institute of Technology. Downloaded on October 07,2024 at 05:53:11 UTC from IEEE Xplore. Restrictions apply.
Fig. 3. Working of voting system
)
Fig. 4. working of blockvoting
Fig. 5. Remix IDE
Authorized licensed use limited to: East West Institute of Technology. Downloaded on October 07,2024 at 05:53:11 UTC from IEEE Xplore. Restrictions apply.
3) Ganache: Ganache is a blockchain that runs entirely in
memory. It will provide us with 10 external accounts with
Ethereum addresses on the local blockchain. Each account
comes with 100 ethers. Each project will be divided into six
sections. Accounts, blocks, transactions, contracts, events, and
logs are all types of data. Each account’s details are put to the
account section. For each project, initially have ten accounts
available; each account has its own address and index, making
it easier to distinguish between them.The amount of balance
in each account, as well as the number of transactions made
by the account, help to understand transaction information.
Fig. 8. Ganache initial accounts
Each account has a private key, which is a one-of-a-kind key
associated with the account and aids with the import of the Metamask accounts are imported as voters from the ganache
account to other networks. Because voters can’t use the same accounts, with each voter starting with 100 ethers. The link be-
private key to create two accounts, this private key can be used tween metamask and ganache is accomplished by developing a
to authenticate the account. new custom RPC called ”demo”. Metamask is connected using
the ganaches provided network id and RPC server address.
The accounts are then imported into the metamask using their
unique security codes. Each account is treated as a single voter.
Fig. 7. Ganache
A. IMPLEMENTATION
Every project in Ganache gets ten accounts assigned to it
by default. Each account has a unique address that can be
used to identify it, as well as a unique index. The number of
transactions will start at zero and will be increased by one for
each transaction made on a particular account, allowing the
total number of transactions to be calculated. The amount of
ether will be reduced according on the transaction. So, in this
diagram, it shows that 25 transactions were completed using
the first account, totaling 100 ethers, resulting in a 0 ethers
balance. Fig. 10. Voter Ardra connected for voting
Authorized licensed use limited to: East West Institute of Technology. Downloaded on October 07,2024 at 05:53:11 UTC from IEEE Xplore. Restrictions apply.
The diagram above shows how metamask is linked to the VI. RESULT AND DISCUSSION
remix IDE via a voter named ardra. It will also give you a This section discusses, Different criteria for good election
sense of how metamask will display the number of ethers in system and how it satisfied using current system.
each account. The voter can only use one transaction from
their account at a time. So, the ethers used from account ardra A. Voting can be done only by authorized voters
must be set to maximum. As a result, they will only be able to It is possible to authenticate each voter by supplying a
vote once. So, with metamask, users can adjust the amount of security code.
gas and the gasvalue, bringing the total ethers for a single
transaction down to 99.9 ethers. The diagram depicts how
increased the number of ethers used in a single transaction
to 99.9
Fig. 13. Votes stored as block Fig. 15. insufficient ether for transaction
Authorized licensed use limited to: East West Institute of Technology. Downloaded on October 07,2024 at 05:53:11 UTC from IEEE Xplore. Restrictions apply.
C. Nobody should be able to determine to whom a voter has made in a block that is checked by the mining authority. If
cast their vote. the value of any block is altered by itruder, the hash value
The details of the casting vote should be kept in a secure and prior hash value of the next block will be incorrect.
manner. Otherwise, anyone can be able to figure out who voted So, for easy analysis, Ganache in a time interval is used,
for which candidates. It is not an appropriate election criterion. which is referred to as auto-mining.So, in this blockvoting
Due to that reason, in blockvoting, the data should be stored system, changing any data without detection is impossible. As
as private and inaccessible to people. So, it is kept in blocks a consequence, this automining protects the data stored in the
that are secured using cryptographic methods. As a result, the block chain.
diagram depicts how data details are saved and mined over
time to ensure data security.
Fig. 16. Data stored in blocks F. Every voter can transparently cross-check his vote and
ensure that his vote has been counted.
D. The vote of a voter cannot be duplicated.
Every contender’s vote count is accessible at the user
Ganache accounts are imported as voters, and the metamask interface because it is treated as public data, allowing voters
is linked to ganache. It’s done with the help of security keys to check whether or not their vote was cast for the candidate
that come with each account. users can’t import two voters of their choice. and he can see who is in the lead with how
with the same security key in order to avoid voter duplication. many votes in the current circumstance. As a result, the entire
In the example, the account had already been added to the system is transparent to the voter.
metamask once, and it was attempted to add another voter
using the same private key, but it was unsuccessful. Figure
G. Everyone knows who voted in the election and who did
shows the warning indicating that no duplication is permitted.
not.
Authorized licensed use limited to: East West Institute of Technology. Downloaded on October 07,2024 at 05:53:11 UTC from IEEE Xplore. Restrictions apply.
VII. ADVANTAGES OF CURRENT SYSTEM [5] Öztürk, Cihat, and Abdullah Yildizbaşi. ”Barriers to implementation of
blockchain into supply chain management using an integrated multi-
1) It increases people’s voting involvement because it is criteria decision-making method: a numerical example.” Soft Computing
a more convenient manner of voting in today’s hectic (2020): 1-19.
[6] .Leng, Kaijun, Ya Bi, Linbo Jing, Han-Chi Fu, and Inneke Van Nieuwen-
schedule. It’s also more convenient and efficient because huyse. ”Research on agricultural supply chain system with double
the task takes only one to two minutes to accomplish. chain architecture based on blockchain technology.” Future Generation
2) Block voting is more secure than id proof because it Computer Systems 86 (2018): 641-649
[7] Chang, Shuchih E., and Yichian Chen. ”When blockchain meets sup-
never uses unsecured ballot papers, and authentication ply chain: A systematic literature review on current development and
using biometric identification is the most secure method potential applications.” IEEE Access 8 (2020): 62478-62494
of authentication. Furthermore, blockchain provides vot- [8] Kshetri, Nir, and Jeffrey Voas. ”Blockchain-enabled e-voting.” Ieee
Software 35, no. 4 (2018): 95-99.
ing security at the storage level. [9] Osgood, Ryan. ”The future of democracy: Blockchain voting.”
3) Online voting saves time and money by allowing you COMP116: Information security (2016): 1-21.
to create a centralised hierarchical voting distribution [10] Hjálmarsson, Fririk ., Gunnlaugur K. Hreiarsson, Mohammad Hamdaqa,
and Gı́sli Hjálmtýsson. ”Blockchain-based e-voting system.” In 2018
without having to wait for results. It occurs in real-time. IEEE 11th International Conference on Cloud Computing (CLOUD),
4) Because full service setup and management saves time, pp. 983-986. IEEE, 2018.
it is more rapid and easy. so that time can be used for [11] Ayed, Ahmed Ben. ”A conceptual secure blockchain-based electronic
voting system.” International Journal of Network Security Its Applica-
other tasks tions 9, no. 3 (2017): 01-09.
5) Because it is a decentralised voting programme, it is [12] Hanifatunnisa, Rifa, and Budi Rahardjo. ”Blockchain based e-voting
difficult to undermine the system’s trust. and the voting recording system design.” In 2017 11th International Conference on
Telecommunication Systems Services and Applications (TSSA), pp. 1-6.
system’s transparency will increase people’s trust in it. IEEE, 2017.
[13] Liu, Yi, and Qi Wang. ”An E-voting Protocol Based on Blockchain.”
VIII. CONCLUSION IACR Cryptol. ePrint Arch. 2017 (2017): 1043.
[14] Hardwick, Freya Sheer, Apostolos Gioulis, Raja Naeem Akram, and
Our country’s online voting system has a lot of potential, so Konstantinos Markantonakis. ”E-voting with blockchain: An e-voting
if blockvoting can be implemented more widely, it can be very protocol with decentralisation and voter privacy.” In 2018 IEEE Inter-
national Conference on Internet of Things (iThings) and IEEE Green
useful for providing more security to online voting. Blockchain Computing and Communications (GreenCom) and IEEE Cyber, Physical
is a very good data security technology, the implementation of and Social Computing (CPSCom) and IEEE Smart Data (SmartData),
various blockchain-based applications has a bright future.So, pp. 1561-1567. IEEE, 2018.
[15] Curran, Kevin. ”E-Voting on the Blockchain.” The Journal of the British
the technology’s future scope in various fields will be vast.As a Blockchain Association 1, no. 2 (2018): 4451.
result, the proposed method will serve to strengthen the overall [16] Yu, Bin, Joseph K. Liu, Amin Sakzad, Surya Nepal, Ron Steinfeld,
voting system’s trust and transparency, as well as providing Paul Rimba, and Man Ho Au. ”Platform-independent secure blockchain-
based voting system.” In International Conference on Information Secu-
a more environmentally friendly, time-saving, and efficient rity, pp. 369-386. Springer, Cham, 2018.
voting system. Because the system is decentralised, distinct [17] Vujičić, Dejan, Dijana Jagodić, and Siniša Ranić. ”Blockchain technol-
advantages are supplied to the implemented system as a result. ogy, bitcoin, and Ethereum: A brief overview.” In 2018 17th international
symposium infoteh-jahorina (infoteh), pp. 1-6. IEEE, 2018.
Voting and trust play a crucial part in a democratic country [18] Bogner, Andreas, Mathieu Chanson, and Arne Meeuw. ”A decentralised
like India. A healthy, good political system is required for sharing app running a smart contract on the ethereum blockchain.”
the country’s development. So, the wishes of the people’s In Proceedings of the 6th International Conference on the Internet of
Things, pp. 177-178. 2016.
choosing are more essential . Block voting is just a simple [19] Taş, Ruhi, and Ömer Özgür Tanrıöver. ”Building a decentralized applica-
demonstration, converting blockvoting to a practical system is tion on the Ethereum blockchain.” In 2019 3rd International Symposium
a major undertaking that will necessitate more research into on Multidisciplinary Studies and Innovative Technologies (ISMSIT), pp.
1-4. IEEE, 2019.
blockvoting. So, with all of the benefits described in this paper [20] Grech, Neville, Michael Kong, Anton Jurisevic, Lexi Brent, Bernhard
provide hope that this will be aid in the development of the Scholz, and Yannis Smaragdakis. ”Madmax: Surviving out-of-gas con-
original system for giving superior election technology to our ditions in ethereum smart contracts.” Proceedings of the ACM on
Programming Languages 2, no. OOPSLA (2018): 1-27.
nation.
R EFERENCES
[1] Shahzad, Basit, and Jon Crowcroft. ”Trustworthy electronic voting using
adjusted blockchain technology.” IEEE Access 7 (2019): 24477-24488.
[2] Yavuz, Emre, Ali Kaan Koç, Umut Can Çabuk, and Gökhan Dalkılıç.
”Towards secure e-voting using ethereum blockchain.” In 2018 6th
International Symposium on Digital Forensic and Security (ISDFS), pp.
1-7. IEEE, 2018.
[3] Hanifatunnisa, Rifa, and Budi Rahardjo. ”Blockchain based e-voting
recording system design.” In 2017 11th International Conference on
Telecommunication Systems Services and Applications (TSSA), pp. 1-6.
IEEE, 2017.
[4] Srivastava, Ishaan Anand, Bhumika Saini, Shraddha Phansalkar, and
Sonali Patwe. ”Secure and Transparent Election System for India using
Block chain Technology.” In 2018 IEEE Punecon, pp. 1-6. IEEE.click
to view
Authorized licensed use limited to: East West Institute of Technology. Downloaded on October 07,2024 at 05:53:11 UTC from IEEE Xplore. Restrictions apply.