https://github.com/taleblou/simpleblockchain
SimpleBlockchainCPP is a basic blockchain implementation written in C++. It includes block mining, transaction management, and chain validation, using SHA-256 hashing from OpenSSL. This project serves as an educational resource for understanding blockchain fundamentals in a simple, lightweight manner.
https://github.com/taleblou/simpleblockchain
Last synced: 9 months ago
JSON representation
SimpleBlockchainCPP is a basic blockchain implementation written in C++. It includes block mining, transaction management, and chain validation, using SHA-256 hashing from OpenSSL. This project serves as an educational resource for understanding blockchain fundamentals in a simple, lightweight manner.
- Host: GitHub
- URL: https://github.com/taleblou/simpleblockchain
- Owner: taleblou
- License: mit
- Created: 2025-02-10T11:15:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-10T11:18:35.000Z (over 1 year ago)
- Last Synced: 2025-02-10T12:25:28.075Z (over 1 year ago)
- Language: C++
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **SimpleBlockchainCPP**
A basic blockchain implementation in C++ that includes block mining, transaction management, and chain validation.
## **Features**
* Implements a simple blockchain with proof-of-work mining
* Uses SHA-256 hashing from OpenSSL
* Allows transaction creation and block validation
* Demonstrates how blocks are linked using hashes
## **Requirements**
* C++ compiler (G++ or MSVC)
* OpenSSL library
## **Installation**
Clone the repository:
git clone https://github.com/yourusername/SimpleBlockchainCPP.git
1. cd SimpleBlockchainCPP
2. Install OpenSSL (if not already installed):
* Linux:
sudo apt-get install libssl-dev
* Windows: Download and install OpenSSL from https://slproweb.com/products/Win32OpenSSL.html
3. Compile the code:
g++ \-o blockchain main.cpp \-lssl \-lcrypto
4. Run the program:
./blockchain
## **Usage**
* The program simulates a blockchain with mining and transaction processing.
* It adds transactions, mines blocks, and prints the blockchain.
* The validity of the chain is checked at the end.
## **Example Output**
Block mined: 0000a1b2c3d4...
Block mined: 0000f5e6d7c8...
Blockchain is valid: Yes
## **License**
This project is licensed under the MIT License.
## **Contributions**
Contributions are welcome\! Feel free to fork and submit pull requests.
## **Contact**
For any questions or suggestions, feel free to reach out\!