Skip to content

A light-weight blockchain implmentation you can test out via http requests on your machine

Notifications You must be signed in to change notification settings

aknirmal90/blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

python app.py Runs a light-weight node made available via Flask webserver

Available endpoints are

  1. /chain/list - GET
    retrieves a list of blocks which makes up the blochain on the current node.
  2. /transaction/new - POST
    submits a new transaction to be added to the current node's blockchain when the next block mined.
  3. /mine - POST
    instructs the node to mine the next block
  4. /node/register - POST
    submits a list of active nodes on the blockchain network
  5. /node/resolve - POST
    attempts to identify the longest chain on the network and replaces the chain on the current node with the longest chain.
You will need atleast 2 nodes to attempt /node/resolve

About

A light-weight blockchain implmentation you can test out via http requests on your machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages