A basic implementation of a proof of work blockchain in Java.
SimpleBlockchain is a beginner-friendly project that demonstrates the basic concepts of a blockchain. It is implemented in Java and designed to be easy to understand and modify.
- Basic blockchain structure
- Simple proof-of-work algorithm
- Block validation
To install and run this project, follow these steps:
- Clone the repository:
git clone https://github.com/DoubleLane/SimpleBlockchain.git
- Navigate to the project directory:
cd SimpleBlockchain
- Compile the project:
javac -d bin src/*.java
To run the blockchain:
- Navigate to the
bin
directory:cd bin
- Run the main class:
java blockchain.Main
This will start the blockchain and execute the main logic as defined in the Main
class.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Make your changes
- Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Open a pull request
This project is licensed under the MIT License. See the LICENSE file for details.
Created by DoubleLane. Feel free to contact me if you have any questions.
Basic blockchain structure
Simple proof-of-work algorithm
Block validation