Student Voting On ICP Blockchain
Student Voting On ICP Blockchain
Copyright: ©2024 The authors. This article is published by IIETA and is licensed under the CC BY 4.0 license
(http://creativecommons.org/licenses/by/4.0/).
https://doi.org/10.18280/ijsse.140109 ABSTRACT
Received: 29 November 2023 In this exploration, our paper delves into the intricate implementation of robust
Revised: 26 January 2024 authentication and transaction management within educational blockchain systems. Our
Accepted: 12 February 2024 project showcases a commitment to privacy and integrity, safeguarding interactions
Available online: 29 February 2024 through advanced cryptographic techniques. The multifaceted capabilities of blockchain
technology are showcased through the seamless maintenance of student records, the
facilitation of secure voting processes, and the optimization of token transfers, collectively
Keywords: contributing to an ecosystem characterized by enhanced security, transparency, and
ICP, student voting, decentralized, consensus, efficiency. Our study uncovers insights into blockchain's transformative potential in
cryptography, encryption, SHA-256 algorithm education, redefining paradigms by introducing security measures and transparency to
student-admin interactions. We highlight the successful implementation of blockchain-
based authentication and transaction management systems, leading to enhanced
educational processes. Additionally, we briefly outline our research design and
methodology, emphasizing the rigorous approach to exploring blockchain applications.
91
solution for students, taking advantage of blockchain outcomes but did not directly relate to blockchain-based
technology and the decentralized Web3 approach to provide a voting systems. By incorporating verifiability features, our
trustworthy and efficient platform for university-level proposed blockchain-based voting system can provide voters
elections. and stakeholders with greater confidence in the accuracy and
legitimacy of election results.
Albertson and Guiler [12] focused on conspiracy theories,
2. LITERATURE SURVEY election rigging, and support for democratic norms, which,
while important, were not directly related to blockchain-based
Numerous studies and initiatives have explored the voting systems.
integration of blockchain technology into voting systems to Shah et al. [13] discussed the Block Chain Voting System
address the challenges inherent in traditional voting methods. but did not address the specific challenges and contributions
In this section, we review notable research efforts in this field of blockchain-based voting systems.
and emphasize their contributions. Chaum et al. [14] presented an end-to-end voter-verifiable
Oprea et al. [1] introduced a digital voting system optical-scan voting system, emphasizing verifiability. In our
leveraging blockchain technology for implementation in proposed system, we streamline the verification process,
technologically advanced environments. While their system enhancing voter trust through registered student IDs [1],
assumed the trustworthiness of external entities, it making the voting system more secure and transparent.
acknowledged the security vulnerabilities associated with this McCorry et al. [15] developed a smart contract for
approach. The practical implication of this finding is the boardroom voting, focusing on maximum voter privacy. The
recognition of the importance of implementing stringent practical implication of their work is the recognition of the
authentication and authorization protocols to safeguard the need to integrate strong privacy protections into blockchain-
integrity of voting systems against external threats. based voting protocols to safeguard voter confidentiality and
Farooq et al. [2] presented a system that aimed to make the prevent unauthorized access to sensitive voting data.
voting system transparent using blockchain technology. Pawlak et al. [16] worked towards intelligent agents for a
However, their approach raised questions about the blockchain e-voting system, emphasizing the role of
transparency of the system itself. technology in the voting process.
Chang et al. [3] reviewed the past, present, and future of Fusco et al. [17] introduced Crypto-voting, a blockchain-
global health financing, highlighting the importance of based e-voting system. By incorporating design principles and
financial structures. However, this work is not directly related security features inspired by Crypto-voting, our proposed
to blockchain-based voting systems and their challenges. blockchain-based voting system can provide a robust and
Hossain et al. [4] developed an e-voting system using trustworthy platform for conducting elections.
blockchain technology but didn't address the issue of voter The current landscape of blockchain-based voting systems
privacy and complex computations. reveals that while several endeavors have aimed to create
Shahzad and Crowcroft [5] proposed trustworthy electronic secure, efficient, and transparent voting mechanisms, a
voting using adjusted blockchain technology, focusing on comprehensive solution encompassing all these requirements
security aspects. The practical implication is the adoption of has yet to be realized.
cryptographic primitives such as digital signatures and hash Park et al. [18] explained about how can, "Going from bad
functions to provide end-to-end verifiability and integrity to worse: From internet voting to block chain voting in all
assurance in electronic voting protocols. aspects.
Hjálmarsson et al. [6] introduced a blockchain-based e- Khan et al. [19] explained about "Secure digital voting
voting system but didn't address issues related to voter identity system based on block chain technology” in all aspects.
and voter verification. In our proposed system, we streamline Adiputra et al. [20] explained about “A proposal of block
the verification process and enhance voter trust using chain based electronic voting system," in all aspects.
registered student IDs [1], thus improving security and
transparency.
Suki and Suki [7] studied decision-making and satisfaction 3. GAPS IN LITERATURE
in campus e-voting systems, emphasizing trust in the system.
Culnane et al. [8] discussed undetectable electoral fraud in While various studies have explored the integration of
internet voting systems, emphasizing the security challenges. blockchain technology into voting systems, there are distinct
Our proposed system leverages the ICP blockchain's security gaps in the existing literature that your paper aims to address.
and transparency, providing a solution to some of these Notably, the majority of previous research, suggested a
challenges. conceptual architecture for e-voting at the university level was
Specter et al. [9] conducted a security analysis of Voatz, an presented, but it primarily relied on a centralized database for
internet voting application. Our research can build upon this vote storage and management. While this approach may work
by incorporating robust security measures inspired by Specter in certain scenarios, it falls short of leveraging the full
et al.'s findings to enhance the resilience of our blockchain- potential of blockchain technology, particularly in the context
based voting system against cyber threats and attacks. of voting systems.
Lewis and Rice [10] studied voter turnout in undergraduate In contrast, our paper offers a decentralized approach that
student government elections but did not address blockchain- leverages the Internet Computer Protocol (ICP) blockchain.
based voting systems. The practical implication here is the The decentralized nature of the ICP blockchain brings
recognition of the need to design voting systems that not only significant advantages to the forefront. By deploying our
ensure security and transparency but also actively engage and project within the ICP blockchain, our Decentralized
encourage voter participation. Application (Dapp) runs in a canister, accessible through
Haines et al. [11] explored methods for proving election HTTP requests and responses. This eliminates the need for a
92
centralized authority or intermediary entities that are ICP blockchain, updates and data are securely stored across
traditionally involved in blockchain voting systems. distributed canisters, ensuring both the integrity and
One of the key contributions of our paper is the removal of availability of critical information. An essential element of our
intermediaries in the practical implementation of the voting architecture is the use of the Motoko programming language,
system. By utilizing the ICP blockchain, we establish a the built-in language for ICP's smart contract development.
trustless environment where votes are securely recorded and The adoption of Motoko streamlines the creation of secure and
counted without the need for trust in external entities, as efficient smart contracts, ensuring the precise recording and
opposed to systems relying on centralized databases. This not tallying of votes, thus cementing the reliability of our voting
only enhances transparency but also minimizes the risk of system.
manipulation, as the immutability of the blockchain ensures This architecture combines user-friendly interfaces, strong
the integrity of the voting process. Moreover, a comparative cryptography, blockchain technology, and smart contract
analysis highlights that while centralized databases introduce development, creating a comprehensive and trustworthy
vulnerabilities and limitations in digital voting systems, our voting system for students. The architecture of the student
decentralized approach offers inherent advantages in terms of voting can be seen in Figure 1.
security, transparency, and scalability.
Furthermore, while previous research, including the study
of Oprea et al. [1], encountered challenges in terms of
scalability and voter privacy, our proposed system addresses
these concerns. Recent studies have highlighted the limitations
of traditional blockchain-based voting systems in managing
large-scale elections and ensuring voter privacy. The ICP
blockchain's built-in consensus mechanism and cryptographic
hashing optimize latency, ensuring efficient management of a
large number of voters. The blockchain's decentralization and
immutability strengthen user trust, addressing the limitations
found in centralized databases.
In summary, the existing literature primarily relies on
centralized databases, introducing vulnerabilities and
limitations in digital voting systems. Our paper bridges this
gap by offering a decentralized approach that leverages the
ICP blockchain, eliminating intermediaries and enhancing the Figure 1. Student voting system architecture
security, transparency, and scalability of the voting process.
This contribution represents a significant step forward in the 4.2 Workflow of the proposed model
field of blockchain-based voting systems.
4.2.1 Decision proposal
The administrative staff (Admin) proposes decisions with a
4. PROPOSED SYSTEM set of voting options.
The proposed system aims to revolutionize the conventional 4.2.2 Voting process
voting methods by harnessing the exceptional capabilities of Students actively participate by casting their votes on the
the Internet Computer Protocol (ICP) blockchain. It utilizes available decisions.
the decentralized nature and immutability of the ICP To cast a vote, students should have a minimum number of
blockchain to establish a secure, efficient, and transparent tokens in their account.
voting process. This blockchain-based voting system is When a student casts a vote, a constant amount of tokens
designed to overcome the critical challenges associated with are deducted from their account.
traditional voting systems, ensuring a resilient and trustworthy The system ensures that students cannot vote again for the
electoral process. same decision.
93
voting process resistant to tampering and secure against any 5.3 ReactJS
single point of failure. Notable advantages of the proposed
system include: ReactJS stands as a JavaScript library dedicated to
- Transparency: Every transaction is recorded and constructing user interfaces. Originating from the labs of
accessible on the blockchain, providing voters with a Facebook, it currently undergoes joint stewardship by
transparent view of the voting process. Facebook itself and a collaborative community comprising
- Security: Through cryptographic hashing, secure networks, individual developers and various companies. This library
and robust consensus algorithms, the system minimizes the empowers developers in crafting reusable UI components,
risk of intrusion. thereby simplifying the intricate process of constructing
- Efficiency: The flexibility of consensus algorithms and dynamic and interactive web applications. ReactJS was chosen
smart contracts optimize the system's efficiency, ensuring that over alternatives like Angular and Vue.js due to its efficient
votes are counted accurately and in a timely manner. virtual DOM implementation and the flexibility it offers
- Accessibility: Voters can participate from anywhere in the developers in managing application state.
world, and the system maintains the integrity of their votes.
- Trust: By enhancing voter trust through end-to-end
verification, our system ensures that voters have confidence in 6. DESIGN AND IMPLEMENTATION
the voting process.
Our proposed system offers a comprehensive solution to the In this section, we present the design and implementation
challenges faced by traditional and digital voting systems. It details of our blockchain-based voting system. Our system
combines the benefits of blockchain technology with a flexible leverages the Internet Computer Protocol (ICP) blockchain
and adaptable architecture to create a highly secure, efficient, and a React-based frontend to provide a secure and user-
and transparent voting management system. friendly voting platform. We describe the algorithms for
student creation, casting votes, secure login, and additional
critical functionalities. We also discuss how the system
5. TECHNOLOGIES USED handles exceptions or errors and its scalability.
5.1 Internet computer protocol blockchain 6.1 Algorithms
The Internet Computer Protocol (ICP) functions as a 6.1.1 Student account creation
communication protocol employed for the transmission of The student creation algorithm allows eligible students to
data across the internet. This reliable and connection-oriented register for voting. Students are verified against the Canister
protocol enables applications to initiate, sustain, and conclude data (ICP Blockchain decentralized data storage unit) before
connections between devices. ICP is integral to the functioning they can participate in the voting process. In case of exceptions
of the Internet Computer blockchain network, providing the or errors, such as a student trying to register with an already
underlying communication infrastructure. In contrast, registered StudentID, the system throws an error message and
Blockchain stands as a decentralized and distributed ledger prompts the student to try again with a different ID. The
technology designed to facilitate the secure, transparent, and caption of the student voting can be seen in Figure 2.
immutable documentation of transactions. Although
frequently utilized in cryptocurrencies like Bitcoin,
Blockchain finds application in diverse sectors such as supply
chain management and voting systems. While there are certain
parallels between them, these technologies diverge in their
intended functions and operational mechanisms. These
technologies work in tandem, with ICP enabling efficient data
transmission and Blockchain ensuring secure and transparent
transaction recording.
94
6.2.2 Create decision
- Admin proposes a decision and provides options for which
students have to participate.
- Decision ID specifies the decision and options for that
decision should be entered in Options input, they should be
separated using commas. The system can handle multiple
decisions and options, demonstrating its scalability. The
process of create decision can be seen Figure 6.
95
demonstrated resilience by recovering and continuing predictable.
operation without significant impact on response times. The 2. Predictable Scalability: The predictable and incremental
number of updates and time taken seen in Table 1. nature of the time increase indicates that our DApp is scalable.
It can accommodate additional updates without experiencing
Table 1. Number of updates and time taken sudden spikes in processing time, which is vital for
maintaining a smooth user experience during periods of high
S. No. No. of Updates Time Taken (Seconds) activity.
1 1 2.10 3. Consistency: The performance of our DApp is consistent,
2 10 2.15 which is a positive sign for users. They can expect a uniform
3 100 2.20
experience regardless of the number of updates, as there are no
4 250 2.25
5 500 2.30
sudden spikes or dips in processing time.
6 1000 2.35 4. Stability: The stable and gradual increase in processing
time suggests that our DApp is stable and capable of handling
Table 2. Number of queries and time taken a growing number of updates without causing disruptions.
In summary, this analysis indicates that our DApp exhibits
S. No. No. of Queries Time Taken (Seconds) consistent and predictable performance when dealing with
1 1 0.026 various numbers of updates. It demonstrates scalability,
2 10 0.026 maintaining stable processing times as the update load
3 100 0.026 increases. This reliability ensures that users can rely on our
4 250 0.027 DApp for efficient and consistent interactions, which is crucial
5 500 0.028 for the success of a voting application.
6 1000 0.029
96
blockchain, we have achieved an unprecedented level of blockchain technology. IEEE Access, 10: 59959-59969.
decentralization and data integrity. This technology has https://doi.org/10.1109/ACCESS.2022.3180168
empowered students to actively participate in decision-making [3] Chang, A.Y., Cowling, K., Micah, A.E., Chapin, A.,
through a token-based voting system, thereby fostering a Chen, C.S., Ikilezi, G., Qorbani, M. (2019). Past, present,
culture of involvement and accountability. and future of global health financing: A review of
The custom authentication system ensures that students and development assistance, government, out-of-pocket, and
administrators can securely access the platform, while other private spending on health for 195 countries, 1995–
orthogonal persistence guarantees that vital student data 2050. The Lancet, 393(10187): 2233-2260.
remains tamper-proof. React, a versatile JavaScript library for https://doi.org/10.1016/S0140-6736(19)30841-4
building user interfaces, has provided a seamless and [4] Hossain, S.S., Arani, S.A, Rahman, M.T., Bhuiyan, T.,
responsive user experience. The integration of these elements Alam, D., Zaman, M. (2019). E-voting system using
has culminated in a solution that promotes academic blockchain technology. In Proceedings of the 2019 2nd
excellence and empowers students to contribute to International Conference on Blockchain Technology and
extracurricular activities, making governance within Applications, New York, NY, USA, pp. 113-117.
educational institutes more inclusive and dynamic. https://doi.org/10.1145/3376044.3376062
As this project demonstrates, the convergence of blockchain [5] Shahzad, B., Crowcroft, J. (2019). Trustworthy
and web technologies holds immense potential for electronic voting using adjusted blockchain technology.
revolutionizing governance systems across various domains. IEEE Access, 7: 24477-24488.
By embracing this innovative approach, we have taken a https://doi.org/10.1109/ACCESS.2019.2895670
significant step towards enhancing transparency, [6] Hjálmarsson, F.Þ., Hreiðarsson, G.K., Hamdaqa, M.,
accountability, and student participation in educational Hjálmtýsson, G. (2018). Blockchain-based e-voting
institutions, which are the cornerstones of effective system. In 2018 IEEE 11th International Conference on
governance. In the ever-evolving landscape of technology and Cloud Computing (CLOUD), pp. 983-986.
education, this project sets a promising precedent for the future. https://doi.org/10.1109/CLOUD.2018.00151
[7] Suki, N.M., Suki, N.M. (2017). Decision-making and
satisfaction in campus e-voting: Moderating effect of
9. FUTURE WORK trust in the system. Journal of Enterprise Information
Management, 30(6): 944-963.
The blockchain-based decentralized voting system designed https://doi.org/10.1108/JEIM-08-2016-0151
for educational institutes, as presented in this report, marks a [8] Culnane, C., Essex, A., Lewis, S.J., Pereira, O., Teague,
significant advancement in the modernization and security of V. (2019). Knights and knaves run elections: Internet
the voting process. Nevertheless, several avenues for potential voting and undetectable electoral fraud. IEEE Security &
future work and enhancements are identified. Firstly, it is Privacy, 17(4): 62-70.
imperative to focus on enhancing the system's security through https://doi.org/10.1109/MSEC.2019.2915398
continuous research, vulnerability assessment, and the [9] Specter, M.A., Koppel, J., Weitzner, D. (2020). The
development of robust countermeasures. Secondly, optimizing ballot is busted before the blockchain: A security analysis
the user experience (UX) by conducting user studies and of voatz, the first internet voting application used in US
feedback analysis will ensure an intuitive and user-friendly Federal Elections. In 29th USENIX Security Symposium
interface. Thirdly, exploring methods to seamlessly integrate (USENIX Security 20), pp. 1535-1553.
the decentralized voting system with existing educational [10] Lewis, K.M., Rice, T.W. (2005). Voter turnout in
platforms can provide a more comprehensive solution. undergraduate student government elections. PS:
Additionally, adapting the system for mobile accessibility, Political Science & Politics, 38(4): 723-729.
including the development of mobile applications, can cater to https://doi.org/10.1017/S1049096505050201
users who prefer voting via smartphones or tablets. Finally, it [11] Haines, T., Lewis, S. J., Pereira, O., Teague, V. (2020).
is essential to remain abreast of blockchain advancements, How not to prove your election outcome. In 2020 IEEE
particularly within the ICP ecosystem, and evaluate how these Symposium on Security and Privacy (SP), San Francisco,
innovations can be integrated to augment the system's CA, USA, pp. 644-660.
capabilities. These ongoing efforts reflect the commitment to https://doi.org/10.1109/SP40000.2020.00048
continually enhance and expand the blockchain-based [12] Albertson, B., Guiler, K. (2020). Conspiracy theories,
decentralized voting system for educational institutes, election rigging, and support for democratic norms.
ensuring it remains adaptable to the evolving needs and Research & Politics, 7(3): 2053168020959859.
expectations of educational institutions and their voting https://doi.org/10.1177/2053168020959859
processes. [13] Shah, S. Kanchwala, Q., Mi, H. (2016). Block Chain
Voting System. Economist.
https://doi.org/10.12694/scpe.v22i3.1853
REFERENCES [14] Chaum, D., Essex, A., Carback, R., Clark, J., Popoveniuc,
S., Sherman, A., Vora, P. (2008). Scantegrity: End-to-
[1] Oprea, S.V., Bâra, A., Andreescu, A.I., Cristescu, M.P. end voter-verifiable optical-scan voting. IEEE Security
(2023). Conceptual architecture of a blockchain solution & Privacy, 6(3): 40-46.
for e-voting in elections at the university level. IEEE https://doi.org/10.1109/MSP.2008.70
Access, 11: 18461-18474. [15] McCorry, P., Shahandashti, S.F., Hao, F. (2017). A smart
https://doi.org/10.1109/ACCESS.2023.3247964 contract for boardroom voting with maximum voter
[2] Farooq, M.S., Iftikhar, U., Khelifi, A. (2022). A privacy. In Financial Cryptography and Data Security:
framework to make voting system transparent using 21st International Conference, FC 2017, Sliema, Malta,
97
pp. 357-375. https://doi.org/10.1007/978-3-319-70972- Going from bad to worse: from internet voting to
7_20 blockchain voting. Journal of Cybersecurity, 7(1): 1-15.
[16] Pawlak, M., Poniszewska-Marańda, A., Kryvinska, N. https://doi.org/10.1093/cybsec/tyaa025
(2018). Towards the intelligent agents for blockchain e- [19] Khan, K.M., Arshad, J., Khan, M.M. (2018). Secure
voting system. Procedia Computer Science, 141: 239- digital voting system based on blockchain technology.
246. https://doi.org/10.1016/j.procs.2018.10.177 International Journal of Electronic Government Research
[17] Fusco, F., Lunesu, M.I., Pani, F.E., Pinna, A. (2018). (IJEGR), 14(1): 53-62.
Crypto-voting, a Blockchain based e-Voting System. In https://doi.org/10.4018/IJEGR.2018010103
Proceedings of the 10th International Joint Conference [20] Adiputra, C.K., Hjort, R., Sato, H. (2018). A proposal of
on Knowledge Discovery, Knowledge Engineering and blockchain-based electronic voting system. In 2018
Knowledge Management (IC3K 2018), pp. 221-225. Second World Conference on Smart Trends in Systems,
https://doi.org/10.5220/0006962102230227 Security and Sustainability (WorldS4), pp. 22-27.
[18] Park, S., Specter, M., Narula, N., Rivest, R.L. (2021). https://doi.org/10.1109/WorldS4.2018.8611593
98