Diving into the code

There are three different classes that form three separate parts of the application. The first one is Server, which will be dealing with the P2P communication on the blockchain network. The other two classes are Blockchain and Block, which were covered in the previous chapter and perform basic blockchain operations. The Blockchain class also performs enhanced functions in order to validate the blocks received from the peers, as discussed in the application architecture.