This is a simple console-based simulation of a blockchain-powered voting system written in Java.
- Create blocks for each vote
- Hash-based voter ID anonymization
- Validate blockchain integrity
- View blockchain history
Block.java: Represents a single vote blockBlockchain.java: Manages the chain and validationMain.java: Console menu to interact with the blockchain
- Compile the code:
javac src/*.java
- Run the app:
java -cp src Main