Cash Now Block is a decentralized blockchain-based ledger system with a user-friendly web interface that allows users to conduct safe, fast, and recorded, financial transactions. The application also allows users to validate the integrity of the transaction data in the blockchain.
Link to the web application click here
Content incudes:
This project leverages python 3.7
-
Streamlit - Deploy application into shareable web app
-
Dataclasses - Use the decorator and functions to generate methods automatically
-
Typing - Provides runtime support for type hints
-
Datetime - Supplies classes for date and time manipulations
-
Pandas - Data analysis and manipulation
-
Hashlib - Implements a common interface to different secure hash and message digest algorithms
Create 3 dataclasses:
- Class Record: defines inpute data and its type
- Class Block: process and encode inpute data to create a hash for blocks
- Class PyChain: defines difficulties, add each block, and validate the entire blockchain
Streamlit deployemt: Designs and deploy app application
Go to the file folder contains pychian.py file and
Run application using command line under the virtual environment contains all necessary dependencies
streamlit run pychain.py
Input Data and add to blockchain
Record each transaction
As the Block Difficulty increased from 2 to 4, it took the nonce increased significantly.
Block Inspector displays selected block information
Chain validation shows the blockchain is safe and trustworthy
Yanjun Lin Andrie | email: yanjun.lin.andrie@gmail.com |
UC Berkeley Extension