Skip to content

kendricktan/bch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Blockchain written in Haskell

This is a MVP blockchain (no p2p communication, no concensus) written in Haskell. Written for educational purposes only.

Running bch

stack build
stack exec bch-exe

API

GET 127.0.0.1:8080/           - Displays the entire blockchain
GET 127.0.0.1:8080/current/   - Displays the current block head

POST 127.0.0.1:8080/mine/     - Mines the list of transactions in 
                                the current block head
POST 127.0.0.1:8080/addtx/    - Adds transaction to current block head                                

About

Minimal blockchain in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published