Skip to content

thesaltree/blockchain-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker for dummies

Blockchain Implementation in Golang

A blockchain implementation in Go, demonstrating essential concepts of blockchain technology. This project includes basic block structures, proof-of-work consensus, cryptographic transaction signing, and block verification.

Features

  • Block Structure: Each block holds data, a hash, a previous hash link, a nonce, and transactions.
  • Proof of Work (PoW): Implements a proof-of-work system using md5 hashing to maintain blockchain integrity.
  • Wallets and Transactions: Supports RSA key pairs for wallets, transaction creation, signing, and verification.
  • Genesis Block: Automatically creates the genesis (first) block with a Coinbase transaction.
  • CLI Demo: Demonstrates the creation of blocks, transactions, and verification on the blockchain.

Installation

Prerequisites

  • Go version 1.16 or higher.

Setup

  • Clone the repository:
git clone https://github.com/thesaltree/blockchain-golang.git
cd blockchain-golang
go mod tidy
  • Run the project:
go run main.go

Releases

No releases published

Packages

No packages published

Languages