Bitcoin
The Protocol For Digital Money
Technology Breakdown
Ledger
-Blockchain
-Transactions
Identity
-Public Key Cryptography
Consensus
-P2P Networks
-Nodes
Security
- Proof Of Work
- Mining
2
Consensus
Consensus is an ambiguous and problematic word that can mean several different things...
"No significant objection among the set of people who 'matter'"
"A strong majority when the participants are weighted for expertise and/or strength of argument."
General Agreement
Non-Contentious
Near-Unanimous
3
Centralized VS Decentralized Networks
Centralized networks have a central coordinator who manages consensus.
Decentralized networks reach consensus individually and validate with each participant.
4
Bitcoin Nodes
A Bitcoin node is a computer that connections to the peer-to-peer Bitcoin network.
The role of a Bitcoin node is to fully verify all of the consensus rules.
Consensus Rules
5
Summary
The Bitcoin network reaches consensus by using a peer-to-peer network of Bitcoin nodes to enforce and validate the rules of the Bitcoin protocol.
6
Identity
Identity is an ambiguous and problematic word that can mean several different things...
Personal Identity
(Government Issued)
Online Identity
(Privately Issued)
Drivers License
Passport
Username
7
Identity In Money
Send
Receive
History
Bitcoin
Banking
8
Public / Private Key Cryptography
Account Number
Username
PIN
Password
9
Identity is proven by controlling the private key that allows you to transfer bitcoin stored at a public address or (Key).
Identity is determined by owning a public address or (Key).
Public address | Amount |
1F1tAaz5x1HUXrCNLbtMD | 3.0 BTC |
Private Key | |
5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF | |
Bitcoin Public Ledger
Summary
A user of the Bitcoin network establishes their identity by generating a public key and proves their identity by controlling the associated private key.
10
Ledger
A ledger is a format for recording and totaling economic transactions measured in terms of a monetary unit of account.
Bitcoin
Banking
11
Transactions
A transaction is a transfer of bitcoin that is broadcasted to the Bitcoin network. Transactions broadcasted to the Bitcoin network are added to the Blockchain, through a process called mining.
12
Blockchain
A blockchain is a transaction database shared by all nodes on the Bitcoin Network. Each “block” contains a list of transaction with a reference to the transaction history of the prior block. Referencing the history of the prior block creates a “chain” guaranteeing all historical bitcoins transactions are irreversible.
13
~20m ago
~30m ago
~40m ago
~10m ago
Block of previous txs
Block of previous txs
Block of previous txs
Public ledger aka “blockchain”
Block of previous txs
Summary
A Bitcoin transaction is how value is transmitted on the Bitcoin network. The transaction ledger is stored using a Blockchain which is historical list of transactions stored by every node on the Bitcoin network.
14
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Every node has its own copy of the Blockchain.
Security
The Bitcoin network is secured by an incentive system called Proof-of-Work Mining.
Irreversible Transactions
Immutable Ledger History
Barer Asset
Censorship Resistant
Decentralized
15
Transaction Pool
A transaction sent to the the Bitcoin network is not instantly settled in the Blockchain. A transaction must first be selected from the transaction memory pool based on the transaction fee included.
Transaction Fee
Block Size
Supply & Demand
16
Proof-Of-Work
Bitcoin Miners race to solve a simple math problem in a process called Proof-of-Work. As more Miners join the network and race to solve the problem, the difficulty of the math problem increases proportionally to the amount of new competitors.
Solve the puzzle → Win Bitcoin
17
Summary
18
Miner A
mining...
Miner B
mining...
Miner C
mining...
Proof-of-Work Process
Miners choose txs based on fees
Block of latest transactions
Reward
New
block!
Tx Fees
New BTC
~20m ago
~30m ago
~40m ago
~10m ago
Block of previous txs
Block of previous txs
Block of previous txs
Public ledger aka “blockchain”
Block of previous txs
TX Pool
New txs arrive
Bitcoin Node
Miner B Finds A Block!
Bitcoin Nodes validate this block follows Consensus rules
Appendix
19
Blockchain
Signature & Encryption Example
One Way Hash Functions
Generating A Bitcoin Address
What happens when you send bitcoin?
Generate a transaction.
A digital signature is created using your private key that proves ownership of the coin, allowing them to be transferred.
3 BTC
3wdpspso3i2
Amount to send:
To:
SEND
2
Transaction
Private Key
Only known to you
Authorizes tx without revealing private key
Digital Signature
Fee
Recipient Address
Amount
Cryptography!
The cost of mining a block: illustrated
Y
N
Match?
Is the output less than some target threshold?
Output hash
Example: 00000000000000001e8d6829a8a21adc5
New block!
Only way to find a block is by hashing LOTS and LOTS of times—this is the “proof of work”.
This sequence is currently executed 120 quintillion times every second by miners
SHA-256
Previous block
Transactions
Random #
Including a link to the previous block in the hash ensures the integrity of the blockchain.
Inputs
Hashing function
Runs on ASIC hardware