➜ ~ elecTrust is a blockchain-based voting system designed to revolutionize and enhance the electoral process by prioritizing trust, transparency, and security. The platform leverages the inherent characteristics of blockchain technology to create a tamper-resistant and verifiable for recording votes in elections.
It's Safe
Utilizes a decentralized blockchain to record each vote as a secure and immutable transaction. This ensures that once a vote is cast, it cannot be altered or tampered with, providing a transparent and trustworthy electoral history.
~ Snippet of "Ownable.sol" .
~ modifier onlyOwner() {
_checkOwner();
_;
}
~ function _checkOwner() internal view virtual {
if (owner() != _msg.sender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
It's Decentralized
Removes the reliance on a central authority, reducing the risk of manipulation and fraud. The decentralized nature ensures that no single point of failure exists in the electoral process.
~ What is Ethereum ?
~ Ethereum is a decentralized, open-source, and permissionless blockchain. It means there is no single entity, government, or organization that controls the entire network. Decentralized approach also provides resistance against censorship and interference.
~ Who is the founder of Ethereum ?
~ Ethereum was originally proposed by a Russian-Canadian programmer named Vitalik Buterin, who co-founded the project with an impressive pantheon of programmers, media entrepreneurs, and technologists.
It's Verifiable
Facilitates easy and verifiable audits of the election results. Election authorities, candidates, and the public can independently verify the authenticity of each vote by examining the blockchain .
~ Snippet of "ElecTrust.sol" .
~ function setVote(uint256 _vote) external {
require (!_voted[msg.sender], "Already Voted");
require (_vote > 0 && _vote < 4, "Cannot Vote For This Candidate");
_voted[msg.sender] = true;
unchecked {
if (_vote == 1) {
_votes[Vote.Candidate1]++;
} else if (_vote == 2) {
_votes[Vote.Candidate2]++;
} else if (_vote == 3) {
_votes[Vote.Candidate3]++;
}
}
}
It's Inclusive
Strives to enhance accessibility by allowing voters to cast their ballots remotely using digital devices. This approach aims to increase voter turnout and make the voting process more convenient for a broader range of citizens.