there is bug in SaveToFile
method (maybe you can solve it and send a PR???)
This project is a simplified implementation of a blockchain in Go, inspired by the series "Building Blockchain in Go" by Ivan Kuznetsov. The series provides a step-by-step guide to creating a basic blockchain prototype, incorporating features like Proof-of-Work, transactions, addresses, and network capabilities.
- Blockchain Structure: A chain of blocks, each containing a timestamp, data, previous block hash, and its own hash.
- Proof-of-Work: A consensus mechanism to secure the blockchain by requiring computational work to add new blocks. (Read more)
- Transactions: Mechanism to securely transfer data between parties, ensuring immutability and transparency. (Read more)
- Addresses: Unique identifiers derived from public keys to receive transactions. (Read more)
- Networking: P2P network implementation to synchronize the blockchain across multiple nodes. (Read more)
git clone https://github.com/sg-milad/stupid-blockchain.git
cd stupid-blockchain
go mod tidy
go run main.go
Feel free to fork the repository, submit issues, and create pull requests. Ensure that your contributions align with the project's goals and maintain code quality.
This project is licensed under the MIT License.