Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 927 Bytes

File metadata and controls

31 lines (23 loc) · 927 Bytes

Blockchain Implementation

Dependencies

  1. Flask (for Web App)
  2. hashlib (for hashing blocks)
  3. datetime (for timestamping blocks)

Usage

  1. install dependencies
  2. run blockchain.py with py blockchain.py
  3. To Mine new block:
    • create GET request at localhost:5000/mine
    • Note: wait for a request to give response. Multiple requests creates blocks with same previous blocks and fails sanity check
  4. To get complete chain:
    1. create GET request at localhost:5000/chain
  5. To check sanity:
    1. create GET request at localhost/chain

Note:

  • Use postman to create requests
  • By replace localhost with IPv4 Address to access it via other systems on same network

TODO:

  • Implement basic blockchain
  • Incorporate custom data in blocks
  • Create custom cryptocurrency
  • Create smart contracts