Skip to content

Golang Blockchain Implementation (WIP)

Notifications You must be signed in to change notification settings

alanvivona/goblockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goblockchain

Simple Golang Blockchain Implementation

Build

go build .

Usage

Show options:

./blockchaingo -h

To fetch the last block from the blockchain use any of the following:

./blockchaingo
./blockchaingo -list-last
./blockchaingo -ll

To list all blocks in the blockchain use any of the following:

./blockchaingo -list-all
./blockchaingo -la

To add a block use any of the following:

./blockchaingo -add "Block message"
./blockchaingo -a "Block message"