Skip to content

anujydv/blockchain-implementation

Repository files navigation

BLOCKCHAIN-IMPLEMENTATION

Description


This repository have three folder each folder contain same logic using different programing language (Python and Javascript). Repository contain different file's which by combining these any one analyse how blockchain work under the hood.

HOW TO SETUP ENV AND RUN CODE ?


  • BLOCKCHAIN-A-Z (JAVASCRIPT)

    • cd BLOCKCHAIN-A-Z
    • npm install
    • npm run node_1   start all five node[node_1, node_2, e.t.c] perform all below listed api
  • API

    • BASE URL     http://localhost:3000/ ports change as per running node
    • MINE BLOCK     /mine_block
    • GET CHAIN     /get_chain
    • CHAIN IS VALID     /chain_is_valid

  • BLOCKCHAIN-USING-JAVASCRIPT

    • cd BLOCKCHAIN-USING-JAVASCRIPT
    • npm install
    • npm run node_1   start all five node[node_1, node_2, e.t.c] perform all below listed api
  • API

    • BASE URL     http://localhost:3000/
    • GET CHAIN     /blockchain
    • BROADCAST BLOCK OVER NETWORK     /transaction/broadcast
    • MINE BLOCK     /mine
    • RECEIVE NEW BLOCK FROM OTHER PEER     /receive-new-block
    • RECEIVE AND BROADCAST NEW BLOCK OVER OTHER PEER     /register-add-brodcast-node
    • ADD MORE NEW BLOCK INTO NETWORK     /register-node
    • ADD MORE THAN ONE NEW BLOCK INTO NETWORK     /register-nodes-bulk
    • APPLY CONSENSUS ALGORITHM     /consensus

  • BLOCKCHAIN-USING-PYTHON (python implementation on BLOCKCHAIN-A-Z inside create_blockchain folder)

    • cd BLOCKCHAIN-USING-PYTHON
    • pip install -r requirements.txt
    • python create_blockchain/blockchain.py
  • API

    • BASE URL     http://localhost:5000/
    • Follow BLOCKCHAIN-A-Z (JAVASCRIPT) API routes

Try create_cryptocurrency it help's to create own crypto currency

About

Blockchain implementation using (python and javascript)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published