Go to file
Wei Yang c72ff7fcee Change README for bc package 2017-10-22 10:23:40 +08:00
.gitignore update gitignore 2017-10-21 22:01:19 +08:00
README.md Change README for bc package 2017-10-22 10:23:40 +08:00
base58.go make it a package bc 2017-10-22 10:20:14 +08:00
base58_test.go make it a package bc 2017-10-22 10:20:14 +08:00
block.go make it a package bc 2017-10-22 10:20:14 +08:00
blockchain.go make it a package bc 2017-10-22 10:20:14 +08:00
blockchain_iterator.go make it a package bc 2017-10-22 10:20:14 +08:00
cli.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_createblockchain.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_createwallet.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_explore.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_getbalance.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_listaddress.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_printchain.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_reindexutxo.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_send.go make it a package bc 2017-10-22 10:20:14 +08:00
cli_startnode.go make it a package bc 2017-10-22 10:20:14 +08:00
merkle_tree.go make it a package bc 2017-10-22 10:20:14 +08:00
merkle_tree_test.go make it a package bc 2017-10-22 10:20:14 +08:00
proofofwork.go make it a package bc 2017-10-22 10:20:14 +08:00
server.go make it a package bc 2017-10-22 10:20:14 +08:00
transaction.go make it a package bc 2017-10-22 10:20:14 +08:00
transaction_input.go make it a package bc 2017-10-22 10:20:14 +08:00
transaction_output.go make it a package bc 2017-10-22 10:20:14 +08:00
utils.go make it a package bc 2017-10-22 10:20:14 +08:00
utxo_set.go make it a package bc 2017-10-22 10:20:14 +08:00
wallet.go make it a package bc 2017-10-22 10:20:14 +08:00
wallets.go make it a package bc 2017-10-22 10:20:14 +08:00

README.md

Blockchain in Go

A blockchain implementation in Go, as described in these articles:

  1. Basic Prototype
  2. Proof-of-Work
  3. Persistence and CLI
  4. Transactions 1
  5. Addresses
  6. Transactions 2
  7. Network

Quick Start

Download and install

go get github.com/richardweiyang/blockchain_go

Create file main.go

package main

import "github.com/richardweiyang/blockchain_go"

func main() {
	cli := bc.CLI{}
	cli.Run()
}

Build and run

go build main.go
./main