Skip to content

patapan/blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain

A proof of concept implementing a block chain data structure.

This chain currently functions as generic, networking enabled chain of data. WebSockets are used for p2p communication and HTTP is used for user control.

Get blockchain
curl http://localhost:3001/blocks
Create block
curl -H "Content-type:application/json" --data '{"data" : "Some data to the first block"}' http://localhost:3001/mineBlock
Add peer
curl -H "Content-type:application/json" --data '{"peer" : "ws://localhost:6001"}' http://localhost:3001/addPeer

Query connected peers

curl http://localhost:3001/peers

About

A proof of concept blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published