Skip to content

Experimental Blockchain in Go

Notifications You must be signed in to change notification settings

theSoenke/go-coin

Repository files navigation

go-coin

Experimental Blockchain in Go

Quick Start

Install

go install ./...

Generate an address

coin address

Initialize Blockchain

coin init --address <address for genesis reward>

Send coins

coin send --from <sender address> --to <receiver address> --amount <coins>

Run multiple nodes locally

Create an initial Blockchain

coin init --address <address for genesis reward>

Copy the Blockchain for each node

cp blockchain_1.db blockchain_3000.db
cp blockchain_1.db blockchain_3001.db

Start a central node

coin server --address <address for miner rewards> --node 3000

Central node is running at localhost:3000

Start miner node

coin server --address <address for miner rewards> --node 3001

Credits

Based on this great blog post

About

Experimental Blockchain in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published