A simple BlockChain implelemtation using Python. It also has PoW(Proof of Work) concept which is how mining works.
timestamp - Block creation timetransactions - Dataprevious_hash - SHA-256 hash of previous blocknonce - Initial number used for PoWhash - SHA-256 hash of current blockgenerate_hash() - Generates SHA-256 hash of current blockprint_contents() - Prints the content of current block
chain - Block chain (list)all_transactions - All performed transactionsgenesis_block - First block of blockchaingenesis_block() - Creates first block(init)print_blocks() - Prints all blocks in the blockchainadd_block() - Adds new block to block chainvalidate_chain() - Validates the blockchainproof_of_work() - PoW function to solve the required hash