Written in Java. Uses Java security mesagedigest to apply SHA-256 for hashing. Four functions when you run the software -
1:createBlock 2:verifyTransaction 3:mineBlock 4:viewUser
- Initializes a new ArrayList representation of Blockchain consisting of blocks. Later adds blocks to it.
- Calls isChainValid() in order to match the stored hashes to the calculated hashes.
- Mines last added block with specified difficulty.
- Take a peek at current Blockchain as a JSON.