sahilchanglani / go-blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Blockchain

How to Run?

Run git clone https://github.com/sahilchanglani/go-blockchain.git to install the project.

Create tmp/blocks directory in the root directory.

Run go run main.go to run the app (It will initialize the blockchain with the genesis block).

Run go run main.go add -block {block data} to add the block with the specified data (data could be any string).

Run 'go run main.go print` to print the blockchain.

About


Languages

Language:Go 100.0%