Skip to content

N3koSempai/n3ko_blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Welcome to n3ko blockchain.

CodeFactor

I started this blockchain as an exercise for my blockchain development skills.

! Although I do not rule out creating something advanced it is not the goal of this blockchain go into production !


warning!

the blockchain is no descentralized yet..

for test the network need to change the ip and port for flask and after run. Use the two endpoint available for mining and get the chain

features implemented?
basic structure of a blockchain yes/~
node sync yes/ manual sync
state of proof design? no/but planned
mining client no/only inside
secure mining algoritm no
wallet client no
smart contract support no
endpoints:

This endpoint return the blockchain:

GET
http://$IP:$PORT/get_chain

This endpoint mine a new block:

GET
http://$IP:$PORT/mine_block

This endpoint add new nodes (need json body with the nodes):

the new nodes need to be started and listen in the ip and port selected

POST
http://$IP:$PORT/connect_node
{"nodes" : ["http://$IP:$PORT", "http: another IP and port", "...."]}

This endpoint syncronizes the nodes (manual for now):

GET
http://$IP:$PORT/replace_chain

This endpoint add transaction (for added to the blockchain you need mine block after):

POST
http://$IP:$PORT/add_trans

added the transaction detail in the json body of the petition

{
    "sender": "any",
    "receiver": "any",
    "amount": 100
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages