Skip to content

lukegniwecki/general-purpose-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

General Purpose Blockchain

General Purpose Blockchain I have created in Python as part of a Blockchain course.

Required

Python 3.6

Flask: install in terminal pip install Flask==0.12.2

Quickstart guide: https://flask.palletsprojects.com/en/1.0.x/quickstart/

Postman HTTP Client https://www.getpostman.com

Libraries

  • datetime - needed for time stamping blocks in Unix time timestamp
  • hashlib - used to hash the blocks
  • json - used to encode the blocks before they are hashed
  • Flask - Flask class from the flask library used to create a web application
  • jsonify - used to return messages in postman when requesting the state of the blockchain or key info of the block that has been mined

Requests

Requests used to query the blockchain in Postman once the application is running on Flask:

Get Chain

Mine Block

Is Chain Valid

About

General Purpose Blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages