Skip to content

erxonxi/coin

Repository files navigation

Coin

Coin is my Golang blockchain implementation.

Initialize First Node

First set NODE_ID.

export NODE_ID=3000 // linux
set NODE_ID=3000 // macos

Create wallet.

coin wallet --create

Create blockchain

coin server --create --address 1PprhXRdQQB5LjY5FNTNjkRbuxwc1E3Fh

Create start initial node.

coin server --address 1PprhXRdQQB5LjY5FNTNjkRbuxwc1E3Fh

Initialize More Nodes

First set other NODE_ID.

export NODE_ID=5000 // linux
set NODE_ID=5000 // macos

Create wallet.

coin wallet --create

Start node.

coin server --address 1PprhXRdQQB5LjY5FNTNjkRbuxwc1E3Fh