a simple Blockchain inspired by https://github.com/kofj/naivechain
Implementation of a simple block chain for learning.
go run main.go
go run main.go -api :3002 -p2p :6002 -peers ws://localhost:6001
$ curl http://localhost:3001/blocks
$ curl -H "Content-type:application/json" --data '{"data" : "Some data to the first block"}' http://localhost:3001/mine_block
$ curl -H "Content-type:application/json" --data '{"peer" : "ws://localhost:6002"}' http://localhost:3001/add_peer
$ curl http://localhost:3001/peers