Fireship · @fireship
Bitcoin ₿ in 100 Seconds // Build your Own Blockchain
Uploaded March 1, 2021 · Length 13:29
Summary
This video explains how bitcoin works, including its blockchain technology, and shows how to build a simple blockchain from scratch using Node.js and TypeScript.
- bitcoin
- blockchain
- nodejs
- typescript
- cryptography
- cryptocurrency
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
bitcoin a peer-to-peer electronic cash
- 0:03
system
- 0:03
first described in a 2008 white paper
- 0:06
authored by the mysterious satoshi
- 0:08
nakamoto the modern financial system
- 0:10
relies on our trust of big centralized
- 0:12
banks to hold our fiat currencies
- 0:14
and execute transactions but trust is a
- 0:16
weakness that eventually requires
- 0:18
intervention by lawyers and government
- 0:20
bitcoin allows two parties to make
- 0:22
reliable transactions
- 0:23
based on cryptographic proof eliminating
- 0:26
the need for a trustee middleman
- 0:27
the optimists call it digital gold the
- 0:29
pessimists call it fool's gold
- 0:31
but in reality it's just software and
- 0:33
like all software its purpose is to
- 0:35
arrange ones and zeros in a meaningful
- 0:37
way
- 0:37
the protocol that makes it meaningful is
- 0:39
blockchain which allows two parties to
- 0:41
engage in transactions denominated in
- 0:43
bitcoins
- 0:44
or satoshi's and just like dollars and
- 0:46
cents they have value
- 0:47
because we believe they do from a
- 0:49
financial perspective the blockchain
- 0:51
is like a shared public ledger that
- 0:53
contains all transactions from all
- 0:55
bitcoin users
- 0:56
and is distributed and synchronized
- 0:58
around the world which eliminates the
- 0:59
need for a central authority to maintain
- 1:01
and validate it
- 1:02
from a technical perspective think of
- 1:04
the blockchain as a database
- 1:06
structured as a linked list where each
- 1:08
record or block
- 1:09
represents a group of transactions that
- 1:11
have been permanently committed to the
- 1:13
database
- 1:13
it works kind of like a git repo that
- 1:15
can never be rebased the important thing
- 1:17
is that each new block is
- 1:19
linked to the previous one in the
- 1:20
blockchain and its creation goes through
- 1:22
a very strict set of cryptographic rules
- 1:24
each user or wallet has a unique public
- 1:27
key for receiving money
- 1:28
kind of like a username and a unique
- 1:30
private key for spending money
- 1:32
kind of like a password but before you
- 1:34
can spend money you'll need to prove
- 1:36
that you're the owner of a public key
- 1:38
that money has been sent to in the past
- 1:40
each transaction contains a hash or
- 1:42
encrypted representation
- 1:43
of the previous transaction and the new
- 1:45
owner's public key
- 1:46
the hash is then signed with the
- 1:48
previous owner's private key
- 1:50
this makes it possible to validate the
- 1:51
chain of ownership without the need to
- 1:53
expose
- 1:54
the private key and the signature makes
- 1:55
it virtually impossible to
- 1:57
alter the transaction after it's been
- 1:58
issued but what if somebody tries to pay


