DEV Community

SushantDhiman2004
SushantDhiman2004

Posted on • Updated on

I built a Blockchain in just 84 lines of code.

Hello and welcome. I am Sushant. In this post I am going to tell you how I build blockchain in just 84 lines of code. I am also going to share codes with you.

Programming Language Used

I have used python to make this blockchain because Python have very simple and easy to understand syntax.

Libraries Used

The libraries that I have used in making this blockchain are datetime, hashlib, json and flask.

  • Datetime: - This library is used in order to get time when a block is created in blockchain.
  • Hashlib: - It is used because blockchain works on cryptography and you have to create SHA256 hash for every block.
  • JSON: - It is used because we want to present our data in JSON format.
  • Flask: - To run our blockchain on a server we are using flask.

Check Out Blockchain in my GitHub Repo
Let's Connect on Instagram

Top comments (0)