Part 1:
The aim of this lab is to check the validity of the Blockchain. Follow the steps mentioned below:
1- Check Hash Values of all linked blocks, and make sure every block is linked with next.
2- Calculate Hash independently and compare it with stored hash to ensure there is no
tampering in the data.
Tips:
integrity_check().
The head_check() function should see and compare the
hashes of each block and see if the previous hash value mentioned in this block header
matches with the actual hash value of the previous block.
If the hashes are not matching,print the message that Blockchain not linked properly, else print that Blocks are linkedproperly.
The integriy_check()function calculate hash independently and compare
it with stored hash to ensure that there is not tampering in the data
Part 2:
Using the Code from part 1.
The aim of this lab is to implement Proof-of-Work (PoW) consensus algorithm of the Blockchain.
Follow the steps mentioned below:
class, such as difficulty in mining, maxNonce, and target value.
implement the logic of Proof-of-Work (PoW) consensus algorithm.
For illustration purpose, see the output below, where when we increase the difficulty, the number of
hashes required to mine the block increases.
In the mine() function, you just need to implement this logic: If the value of Hash is less than target, the block is not mined, else increment the nonce and the block is mined successfully. Then print the number of hashes required to mine the block
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme