Comparative Analysis of Consensus Algorithms
Procedure
In this simulation, we will explore two different consensus algorithms, Proof of Work (PoW) and Proof of Stake (PoS), within the context of an election use case.
You have the option to choose between PoW and PoS, which will be simulated in the context of an election scenario.
In the PoW scenario:
Verifying the Legitimacy of Votes
- Read the instructions carefully and click the 'Start' button to begin the process.
- You will encounter a voter login page. Fill in the required information and click the 'Login' button to start the simulation.

Preventing Double Voting
- Observe the message indicating that the token has been generated, and a timer will commence. Click 'Close' to proceed to the next step.

Securing the Electoral Process
- Observe the voting machine for a green light, indicating it's tamper-free. If you see a red light, click the 'Report' button to proceed.

- If the machine displays a red light, signaling tampering, click the 'Report' button to access the issue reporting interface.

- Choose your issue, then click 'Fix Issue' to continue.

- Authorities will receive a notification.

- Click to access the login portal for machine inspection. Enter the required information and proceed to log in.

- To complete machine verification, mark the checkbox and click 'Submit' to proceed.

- After successful verification, a confirmation box will appear, confirming the machine is tamper-free and safe to use.

- The replaced voting machine will display a green light, indicating it's tamper-free and ready for your vote.

Public Verification
- After voting, a table with your name, time, and vote status will be shown for public verification, marking the end of the process.

(Please note that the tampering condition is randomly assigned. To experience both scenarios, you can refresh the process. Remember to read the instructions carefully and proceed through each step.)
In the PoS scenario:
Stakeholder Influence
- Three channels featuring election news are given. Students can explore and review the content by clicking on the channel button. Click the 'Close' button to proceed to the next step.

Incentivizing Participation
- Examine the election manifestos of the three parties provided, and choose the one that resonates most with you.

Avoiding Concentration of Power
- Access the candidate verification status page to review details. To change the verification status of candidates, click on the 'Login as Authority' link and sign in as the Election Authority.

- Navigate to the Authority Login page and enter the necessary credentials to gain access to the candidate verification page.

- Access the candidate verification page where students can role-play as Election Authorities. To modify the verification status, click on the checkbox next to the candidate's name. After making the desired changes, click the 'Submit' button to return to the updated candidate verification status page.

- View the changes on the candidate verification status page. Click the 'Close' button to proceed to the next step.
Validation and Verification
- Students can simulate the role of voters here. To cast a vote, enter your credentials on the voter verification page and then click the 'Verify' button to confirm your identity.

- On the voter machine interface provided, students can vote for their preferred candidate by clicking the button adjacent to the candidate's name. After casting your vote, click the 'Close' button to proceed to the next step.

Security and Trust
- Navigate to the vote counting page. To retrieve the serial number of the voting machine, click on the 'Get Serial Number' button, and it will populate in the input box.
- Click the 'Count' button to count the votes, and the total number of votes for each candidate will be displayed.
- For a recount, press the second 'Get Serial Number' button (it will provide the same serial number as before) and then hit the 'Recount' button. If both counts match, a 'Vote Count Verified' message will appear. This is the final step of the PoS-based election simulation.
