An open API service indexing awesome lists of open source software.

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.

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.

![Blockchain](https://github.com/user-attachments/assets/9bb730a5-2aa9-4c35-880d-dcd2e2dac2e3)
)
## 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 flask

3. **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.
## Usage

1. **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