A Java program that implements a MerkleTree to be used in a blockchain.
In this project, I learned about:
- Blockchain technology and how it works
- Merkle Trees and their use in Blockchain
- Implementing algorithms and methods in Java, including:
- Building a Merkle Tree from transactions
- Adding a block to a Blockchain
- Solving the Proof-of-Work puzzle
- Validating the integrity of a Blockchain if a block is corrupted
To run the project, follow these steps:
- Make sure you have the Java Development Kit (JDK) and JavaFX installed on your machine.
- Install VSCode.
- Install this VSCode Extension Pack for Java from here
- Git clone this repository from VSCode
- From the explorer, open src\main\java\blockchain_hashing\BLOCKCHAIN.java
- Click run button from the top right corner area.
If your are having trouble with the environment installation, refer here.