Programming

Blockchain Simulator

Despite what the image shows, this project is not about Bitcoin. It’s instead about Blockchain, the building blocks of Bitcoin. In my computer science class, I was tasked with creating a blockchain model in Java that could:

  1. Have blocks that contained the previous block’s hash, the current position in the chain, a string of data, the current block’s hash
  2. Verify the previous block before adding a new block to the chain
  3. Write the information of a submitted block to a CSV file (given that the block is verified)
  4. Verify the entire chain by run the hashing algorithm on each block and comparing it to the previous hash stored in the subsequent block
  5. Read through the contents of each block by parsing through the CSV file that has the data stored

To see the code, view the project on GitHub.

Recent Work