Skip to content

A simple blockchain / cryptocurrency exercise in python.

Notifications You must be signed in to change notification settings

shaktals/python-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A rudimentary blockchain implementation in python.

To run it:

  1. Execute the 3 nodes (DeJair, Djou, ManoVei) locally in 3 separate terminals that can run python3 (e.g.: python3 DeJair_node.py)
  2. You are then ready to interact with the nodes using a REST client

To interact with it:

  • First connect each node by making a POST request to http://localhost:{node_address}/connect_node with a JSON payload like the example at nodes.json (remember to exclude from the JSON list the node address against which the request is made, as the node doesn't need to connect with itself)

You can then play with the other 5 routes available:

About

A simple blockchain / cryptocurrency exercise in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages