Skip to content

LiYChristopher/simple_go_blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Chain - In Go

Created by following this great tutorial, and also inspired in part by this existing Go implementation https://github.com/crisadamo/gochain.

Completed for learning purposes. How this differs from the original:

  • Proof of Work involves hashing a block's data (transaction data, previous hash) with the brute-force calculated proof, rather than the previous block's and current block's proofs.
  • A merkletree is implemented to hash pending transactions, where the merkle root becomes part of block hash calculation.

Stil some refactoring to do at this point.

Setup

Simply run

cd path/to/app
go run cmd/start_node.go --port=<port_num>

to start a node.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages