Nouhi / the-blockchain-way-of-programming-newsletter-edition

The source-code for the first 7 chapters of: "The Blockchain Way of Programming" eBook.

Home Page:https://web3.coach

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Blockchain Bar

Build a custom blockchain in Go from scratch.

The source-code for the first 7 chapters of: "The Blockchain Way of Programming".

Download the eBook from: https://web3.coach#book

book cover

Foreword

I can't promise the blockchain way of programming will be easy, but this eBook will turn you into a blockchain developer, expand your career prospects, and open you up to a whole new community of amazing forward thinkers.

What will you build?

Chapter by chapter, you will build a full peer-to-peer, autonomous blockchain system in Go and learn all standard blockchain components!

1) You will build a peer-to-peer system from scratch

You start with 0 lines of code and end-up with 13+ branches with complete executable source-code.

PS: Don't worry if anything on the screen makes sense yet, it will once you go chapter by chapter; release by release.

peer-to-peer blockchain system in action

2) You will secure the system with a day-to-day practical cryptography

No boring theory. Only modern practices.

elliptic curve cryptography

3) You will implement Bitcoin, Ethereum and XRP backend components

From diagrams of mining algorithms to actual, implemented and working crypto wallets for storing the mined tokens and all other fundamental components that make blockchain special.

decentralized consensus

4) You will write unit tests and integration tests for all core components

You will test your cryptographic functions, a Bitcoin's like Proof of Work mining algorithm and other key components.

ethereum signature

How to use this repository

Every eBook chapter has a dedicated branch where you can experiment with the code first-hand.

git branch

> c1_genesis_json
> c2_db_changes_txt
> c3_state_blockchain_component
> c4_caesar_transfer
> c5_broken_trust
> c6_immutable_hash

Installation

Open instructions.

Getting started

  1. Open the eBook at Chapter 1
  2. Checkout the first chapter's branch
git pull --all

git checkout c1_genesis_json

TBB program usage

CLI

Interacting with TBB blockchain using CLI.

Show current program's version

tbb help

Show blockchain balances of all bar's customers

tbb balances list

Store a new TX in the DB

tbb tx add --from=andrej --to=babayaga --value=1000

Store a new Reward TX in the DB

tbb tx add --from=andrej --to=andrej --value=100 --data=reward

Getting unstuck

Can't understand why is something done in a particular way or crack your way around a specific chapter's topic?

Blockchain is a challenging technology.

Write me a DM on Twitter or create a Github Issue, and I will help you move forward on your new blockchain journey!

https://twitter.com/Web3Coach

About

The source-code for the first 7 chapters of: "The Blockchain Way of Programming" eBook.

https://web3.coach