Skip to content

bliotti/make-a-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a Blockchain from scratch (NodeJS).

ko-fi

Learn

  • What is behind a blockchain by using simple code. It's not a complete implementation, but enough to understand how blockchains work and how they guarantee that blocks can never be changed.

  • After creating our blockchain we'll try and tamper with it. This will demonstrate a blockchains ability to detect fraud.

  • Adding the proof-of-work mechanism to our homemade Javascript blockchain. Proof-of-work will secure our blockchain against spammers and people trying to tamper with our blocks.

  • :)

Getting Started

  • git clone https://github.com/bliotti/make-a-blockchain

  • cd make-a-blockchain

  • yarn or npm install

  • Switch to branch one

  • git checkout one

  • Start in the main.js file and follow the instructions in the comments

There are 4 branches total
  • git checkout one
  • git checkout two-Proof-of-Work
  • git checkout three-transactions-minerewards
  • git checkout four-signing

Final

  • branches with commented-final or final are completed solutions.

SLIDES https://docs.google.com/presentation/d/15LVoFj7m2d0kZzJaGNSGMuDrRcT-jwOCv0srXMug2nk/edit?usp=sharing