https://github.com/codeslash21/block
https://github.com/codeslash21/block
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeslash21/block
- Owner: codeslash21
- Created: 2023-09-30T20:10:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-30T20:27:30.000Z (over 2 years ago)
- Last Synced: 2025-04-10T00:46:12.619Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchian implementation using POW consensus algorithm
#### Group Member (G40)
- Soumyadip Guha (2022H1030092H)
- Dantu Havishteja (2022H1030083H)
- Aman Paliwal (2022H1030082H)
- Katuri Revanth (2022H1030065H)
- Pavan Sadanala (2022H1030061H)
## Project Details
### File Details
We implemented using Python language. This project has three files
- `main.py` : We implemented POW consensus algorithm in with the functions named `updateHash` and `mine`. We implemented merkle root using `merkle` function.
- `qr.py` : file for creating qr code.
- `timestamp.py` : file to get the timestamp
### Block Details
Each block has `4` transactions. Initally each transaction will be in queue until we have `4` transactions to create a new block. When we have `4` transaction we create a new block with `merkle hash` value.
### Default values
Initially there are some default products, default distributors and client with client ID `CLI001`.
### QR Code
QR code will be generated after each successful transaction and QR code will be opened to default image app.