Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmsaki/blockchain
A blockchain app using streamlit in python.
https://github.com/mmsaki/blockchain
dataclasses hashlib pychain python streamlit-webapp typing web3py
Last synced: 16 days ago
JSON representation
A blockchain app using streamlit in python.
- Host: GitHub
- URL: https://github.com/mmsaki/blockchain
- Owner: mmsaki
- Created: 2022-07-23T13:19:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-23T14:57:05.000Z (over 2 years ago)
- Last Synced: 2023-03-05T05:03:55.514Z (almost 2 years ago)
- Topics: dataclasses, hashlib, pychain, python, streamlit-webapp, typing, web3py
- Language: Python
- Homepage:
- Size: 904 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyChain Ledger
I created a blockchain app using python. There are three main dataclasses I wrote for this app. **Record, Block and Pychain**. I used sha256 from Hashlib library to create the hashes for the pychain. The default difficulty for the **proof of work** function can be adjusted by a slider on the streamlit app. The pychain ledger will be printed as a dataframe object on the app.
To test the app, clone this repo to a direcotory in your local machine. Then follow the following steps.
Using terminal, get into the blockhain directory:
```
cd blockchain
```If you have streamlit installed. Run the app on your terminal:
```
streamlit run pychain.py
```Otherwise install streamlit using `pip install streamlit` and then run the `pychain.py` app.
To interact with the pychain ledger, provide input values for `sender`, `receiver` and `amount`.
Once you get the app running, it should look like this:
!['Stream lit screenshot'](./images/pychain_screenshot.jpg)