Skip to content

aaron-daly/blockchain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockchain

Clojure implementation of blockchain inspired by this article

Build Status

Development

Run locally

$ lein ring server-headless

Testing

$ lein test

Endpoints

Add a new transaction to a block.

POST /transactions/new

Parameters

Name Type Description
sender string Who is sending the coins
recipient string Who to send the coins to
amount int Number of coins

Mine a new block.

POST /mine

Get the full Blockchain.

GET /chain

Add a new node.

POST /nodes/new

Parameters

Name Type Description
address url URL of node

Get all nodes.

GET /nodes

Resolve node conflicts.

POST /nodes/resolve

Copyright & License

Copyright (c) 2017 Conor Hughes - Released under the MIT license.

About

Clojure implementation of Blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%