Skip to content

A simple blockchain simulation program written in Python3

License

Notifications You must be signed in to change notification settings

sulyabtv/blockchain-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockchain-simulation

A Python3 program for simulating a horrendously simplified blockchain that uses PoW algorithm.

What is included:

  • Shortest path routing (static) using Dijkstra
  • Probabilistic model for mining the blocks
  • Various plots based on the data generated by the simulation

What is not included:

  • Dynamic difficulty adjustment as in Bitcoin etc
  • Cases where blocks are simultaneously mined by multiple miners, and the resolution of such scenarios (for example, by "longest chain always wins")

Requirements

  • numpy
  • matplotlib
  • anything else that Python3 might cry about while running

How to run

  • If you're lazy and don't want to supply the rather large number of inputs, feel free to use indirection from sample_input.

About

A simple blockchain simulation program written in Python3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages