https://github.com/chinnanj666/blockchain-project
Python-based blockchain projects is creating a simple blockchain from scratch.
https://github.com/chinnanj666/blockchain-project
blockchain decentralized-applications flask python3
Last synced: 3 months ago
JSON representation
Python-based blockchain projects is creating a simple blockchain from scratch.
- Host: GitHub
- URL: https://github.com/chinnanj666/blockchain-project
- Owner: chinnanj666
- Created: 2024-07-15T07:30:17.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T10:52:46.000Z (8 months ago)
- Last Synced: 2025-01-13T11:15:51.544Z (5 months ago)
- Topics: blockchain, decentralized-applications, flask, python3
- Language: Python
- Homepage:
- Size: 5.92 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Blockchain Implementation in Python
This is a simple implementation of a blockchain in Python, built from scratch. The project aims to demonstrate the fundamental concepts of blockchain technology including blocks, hashing, proof of work, and decentralized consensus.

)
## Table of Contents -->- [Overview](#overview)
- [Features](#features)
- [Setup Instructions](#setup-instructions)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
- [Acknowledgments](#acknowledgments)## Overview
Blockchain technology has gained significant attention for its potential to revolutionize industries by providing transparent, secure, and decentralized data management solutions. This project serves as an educational tool to understand how blockchain works through practical implementation.
## Features
- **Block Structure**: Each block contains an index, timestamp, data, previous hash, and a nonce.
- **Hashing**: Blocks are linked using cryptographic hashing (SHA-256).
- **Proof of Work**: Implements a basic proof of work algorithm for block mining.
- **Web Interface**: Includes a Flask-based web interface to interact with the blockchain (mine new blocks, view the chain).## Setup Instructions
1. **Clone the repository**:
```bash
git clone https://github.com/chinnanj666/blockchain-project.git
cd blockchain-python
2. **Install dependencies**:
Ensure you have Python 3 installed. Install Flask if not already installed:
```bash
pip install flask3. **Run the blockchain**:
Start the Flask server to run the blockchain: python3 your_python_filename.py, in mycase app.py
```bash
python app.py
```
The server will start on http://127.0.0.1:5000/mine.
## Usage1. **Mining a New Block**:
```bash
Open a web browser and navigate to http://127.0.0.1:5000/mine to mine a new block.2. **Viewing the Blockchain**:
```bash
Navigate to http://127.0.0.1:5000/chain to view the current state of the blockchain.## Contributing
Contributions are welcome! Please fork the repository and create a pull request with your improvements. For major changes, please open an issue first to discuss what you would like to change.## License
This project is licensed under the MIT License - see the LICENSE file for details.
## Acknowledgments
1. Inspiration and initial structure from Blockchain Tutorial
2. Flask documentation and community for web development support
3. Stack Overflow community for troubleshooting assistance