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:
- Have blocks that contained the previous block’s hash, the current position in the chain, a string of data, the current block’s hash
- Verify the previous block before adding a new block to the chain
- Write the information of a submitted block to a CSV file (given that the block is verified)
- Verify the entire chain by run the hashing algorithm on each block and comparing it to the previous hash stored in the subsequent block
- 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.