Skip to content

A really easy to understand blockchain primer written in Go

Notifications You must be signed in to change notification settings

MrEngineer13/TinyBlockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyBlockchain

This project was a port of snakecoin to Go.

The idea is to have a super simple server because the block chain

Usage

Start everything:

go run web.go

Add transactions:

curl "localhost:9090/txion" \
     -H "Content-Type: application/json" \
     -d '{"from": "akjflw", "to":"fjlakdj", "amount": 3}'

Navigate in a browerser

http://localhost:9090/ -> Generates blocks to add
http://localhost:9090/mine -> Mines a new block and adds it to the chain
http://localhost:9090/blocks -> Makes sure you have the longest blockchain then prints it

About

A really easy to understand blockchain primer written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages