Skip to content

Custom Blockchain implementation in raw python. The project was done to understand the building blocks and experiment with concepts during the initial phases of learning.

License

Notifications You must be signed in to change notification settings

anirudhakulkarni/blockchain

Repository files navigation

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

About

Custom Blockchain implementation in raw python. The project was done to understand the building blocks and experiment with concepts during the initial phases of learning.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published