PLMun Logo

HALALina

PLMun Transparent Voting System

A Web-based Transparent Voting System using Simulated Blockchain Technology

Capstone Project - Pamantasan ng Lungsod ng Muntinlupa (PLMun) - College of Information Technology and Computer Studies (CITCS) - 2026
PLMun Logo
HALALina PLMun Transparent Voting System
Vote Candidates Audit Trail & Live Tally Verify Vote
STUDENT

Voting Panel

Cast your ballot for the PLMun University Student Council Election AY 2026-2027. Your selections are encrypted client-side before being recorded on the simulated blockchain. You will receive a cryptographic receipt to verify your vote was counted.

You have already voted.

Each student may vote only once. You can still verify your receipt on the Verify Vote tab or view the live tally on the Audit Trail tab.

Select one (1) candidate per position before submitting. After voting, you will receive a receipt hash that you can use to verify your vote.

Vote Receipt

Candidates

Each candidate's platform and credentials are verified by the PLMun COMELEC and Faculty Verification Committee.

Admin Tool — Push Candidate Admin Only

Manage

Add a new candidate to the ballot. The candidate will appear in the grid below and on the Vote tab. Use the Platform and Credentials fields with one item per line. New candidates are stored in your browser's localStorage and persist across page refreshes; the original 12 candidates cannot be removed (they are part of the source code).

Admin-Added Candidates 0

Audit Trail & Live Tally

Real-time anonymous tally of votes recorded on the simulated blockchain, plus the chronological audit trail of all system activities. Voter identities are SHA-256 hashed, so individual selections cannot be linked back to a student.

Live Tally

Total Votes Cast 0
Eligible Voters 0
Turnout 0%

Audit Trail

Immutable

Blockchain Ledger

Admin Testing Panel — Blockchain Attack Simulation Admin Only

Testing

This panel lets an admin simulate three classic blockchain attacks to verify that the Validate Blockchain tool (above) correctly detects them. Each test takes a snapshot of the chain before the attack so you can Restore Chain afterward and run another test. After running an attack, click Validate Blockchain (above) to see the validator catch it.

Test 1 · Block Tampering Hash Integrity

Modifies the voter ID inside an existing block's transaction. The block's stored hash no longer matches the (tampered) contents - the validator's recomputedHash check should fail.

Test 2 · Unauthorized Transaction Signature Verification

Mines a new block containing a transaction whose declared transactionHash does NOT match the hash of the actual payload - simulating a forged vote under another student's identity. The validator's signature check should fail.

Test 3 · Direct Chain Injection Consensus Bypass

Pushes a fake block directly onto the chain array without going through the mining process. The fake block has an invalid PoW hash (doesn't start with "000") and/or a broken previousHash linkage. The validator should catch it.

Mock Student Information System (SIS) — SQL Backend Admin Only

SQL + JS

The Mock SIS is backed by both a real MySQL-compatible SQL schema (sql/schema.sql + sql/seed.sql) and an in-memory JavaScript mirror (js/sis-data.js) so the system runs entirely client-side on GitHub Pages while still being governed by a proper SQL schema. Both files contain the same 220 synthetic student records. In a production deployment you would replace the JS shim with a fetch() call to a Node + Express + MySQL backend that runs the same SQL queries shown below.

Total Students 0
Eligible 0
Ineligible 0
Tables 4
Equivalent SQL queries run by the app:
-- Login verification (Auth.login)
SELECT * FROM MOCK_STUDENT_SIS
WHERE student_id = '' AND pin = ''
  AND eligibility_status = 'ELIGIBLE';

-- Eligibility check (SIS.hasVoted)
SELECT has_voted, transaction_hash FROM VOTER_LOG
WHERE student_id = '';

-- Live tally (admin view)
SELECT COUNT(*) AS votes FROM VOTER_LOG
JOIN transactions ON VOTER_LOG.transaction_hash = transactions.transaction_hash
WHERE transactions.candidate_id = '';

Verify Your Vote

Enter the receipt code or transaction hash you received after voting. The system will search the simulated blockchain ledger and confirm whether your vote was recorded - without revealing your candidate selections or your identity.

HALALina v1.0 - Web-based Transparent Voting System (Simulated Blockchain) - Pamantasan ng Lungsod ng Muntinlupa - 2026

Simulated Blockchain | SHA-256 | AES-GCM E2EE | Data Privacy Act 2012 Compliant