Hash function with randomization: This is the results of running hash_value.py twice and as you can see between the two runs certain values remained the same while others drastically changed like a tuple of vowels and object of person
SHA-2 Secure Hash Algorithm: below is the output from running the following commands:
$ python3
>>> import hashlib
>>> m=hashlib.sha256(b"hello, world")
>>> m.hexdigest()
>>> m.digest_size
>>> m.block_size
>>> exit()
Build the tiniest blockchain in less than 50 lines of Python by Gerald Nash: This is the output from running the given snakecoin.py file to create a tiny blockchain.
Let’s Make the Tiniest Blockchain Bigger Part 2: With More Lines of Python: The image below shows the terminal and the browser result of running the snake-server-full-code.py program and as you can see it produced results on the web url : http://127.0.0.1:5000/mine even though the terminal left out the "/mine" it only worked with it other wise the browser would error out
Lastly is the python blockchain aspect of part a, For this part we had to run commands on two different terminals and by running:
Terminal 1:
$ git clone https://github.com/satwikkansal/python_blockchain_app.git
$ export FLASK_APP=node_server.py
$ cd ~/python_blockchain_app
$ flask run --port 8000
Terminal 2:
$ cd ~/python_blockchain_app
$ python3 run_app.py
It produced the browser on the right at the url: http://127.0.0.1:5000/
I unfortunately do not have the correct hardware and could not complete this part of the lab.