This is a simple blockchain implementation. There are three objects:
- Parameters
- Block
- BlockChain
Parameters objects define the necessary data for Block objects
- timestamp
- index
- previous hashcode
- transaction data
Block receives Parameters object which stores data. Once Block object is instantiated, it generates its hashcode.
Blockchain links Blocks together. It stores blocks in a list. Once BlockChain object is instantiated, it creates the genesis block and the block list.