Skip to content

sg-milad/stupid-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain in Go

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.

Read the guide here

Features

  • 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)

Getting Started

Clone the Repository

git clone https://github.com/sg-milad/stupid-blockchain.git

Navigate to the Project Directory

cd stupid-blockchain

Install Dependencies

go mod tidy

Run the Application

go run main.go

Contributing

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.

License

This project is licensed under the MIT License.

About

Blockchain in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages