Skip to content

MFilipe777/naive-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naive-py

A python implementation of naivecoin. Uses python-p2p-network for the p2p server. WIP; Made for fun :) .

Dependencies

  • Flask

pip install flask

  • p2pnetwork

pip install p2pnetwork

Running

python3 main.py

Endpoints

  • /blocks - Returns a list of every block mined so far. - GET
  • /mine_block - Adds a block to the blockchain. - POST
Name Content
data < data : str >
  • /peers - Returns a list of every peer connected to this node. - GET
  • /add_peer - Connects with peer; receives host and port of peer as body. - POST
Name Content
host < host : str >
port < port : int >

About

A python implementation of naivecoin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages