Build Your Own Blockchain (BYOB)

This repo takes you through building a prototype of a blockchain in Python. It is intended for learning purposes.

Step 1 — Create a Block

  1. Create the Block
  2. Create a Transaction
  3. Populate the Block with Transactions

Step 2 — Chain the Blocks Together

  1. Create Blocks from Transactions
  2. Append Blocks to a “Chain” (list)

Step 3 — Enforce Integrity with Cryptography

  1. Hash each block
  2. Reference each block’s hash in its subsequent block

Credit: Daniel Lomelino for helping me put things in order and reviewing code ?

GitHub

View Github