davidlazar / 6.857coin

Educational cryptocurrency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

6.857Coin

This is the blockchain server for 6.857Coin, a simple digital coin I made to teach the 6.857 security class about blockchains.

The server is (was) running at: http://6857coin.csail.mit.edu

Usage

  1. Install (assuming GOPATH=~/go):

     $ go get github.com/davidlazar/6.857coin/...
    
  2. Create required directories:

     $ mkdir logs blocks
    
  3. Create the genesis block:

     $ cat blocks/genesis.block
     {
       "Contents": "Genesis",
       "Nonce": 0,
       "Length": 0
     }
    
  4. Run the blockchain server:

     $ ~/go/bin/coin-server
    
  5. Build a miner using the API described at http://localhost:8080

About

Educational cryptocurrency


Languages

Language:Go 70.0%Language:HTML 30.0%