Code to demonstrate principles behind blockchains
Switch branches/tags
Nothing to show
Clone or download


A very simple blockchain implementation to demonstrate the basics of blockchains. This is by no means a complete implementation and it is by no means secure!

In the src/ directory you'll find two versions. Each correspond to a video on YouTube:

  • v1: First implementation (video)
  • v2: Added proof-of-work mechanism (video)
  • v3: Added multiple transactions & mining rewards (video)


Part 1 (click to watch):

Part 2 (click to watch):

Part 3 (click to watch):