TOPIC J - Blockchain
TOPIC J - Blockchain
Materials from:
- Dan Boneh and David Mazières (Stanford University)
- Satoshi Nakamoto’s white paper (2008).
- Gloria Zhao, Gillian Chu, and Brian Ho (Berkely)
- MIT Open Couseware (15.014 Applied Macro- and International Economics II)
Outline
• Introduce Blockchain concepts
• The story of the never-ending book
• Compare Blockchains to Traditional Databases
• Demonstrate Fundamental Benefits of Blockchain
• Simple chess game example
• Introduction to Blockchain Fundamentals
• Trust without Trustees
• Collisions, proof of work, Hash chains
• Permissioned chains
The never-ending book
A “book” of transactions
A lice
s
x to B ends
ob
Alice
Orphan pages
Orphan pages
4’ 7’
1 2 3 4 5 6 7 8
6’
Orphan pages
Rules of extending the
book The first scribe that discovers
a page announces it to everyone else
Effort is needed to produce a
page
Equivalent to : each page needs a special
combination from a set of dice to be rolled.
Unlikely
to continuously
be lucky
together
eventually
one book
will be longer
and be adopted
by both of them
Being a scribe
• Anyone can be a scribe for the book.
• As long as one has a set of dice.
• The more dice one has, the higher the likelihood to produce the
winning combination to make a page.
Using the book -
Money 3.0
verify purchase details
Seller
Buyer address for payment
”
ed
paym
rm
ent
nfi
B pay
“co
sS
x
t is
en
ym
put
pa
fy
item
ri
ve
for
delivery
Parable & Reality
book
the “blockchain”
Solving a cryptographic
producing puzzle that is moderately
a page hard to solve
• Each Block (Except the first Genesis Block) contains a reference to the
block before it using the previous block’s hash.
• This forms a chain than can grow.
• Blocks content cannot change. If content changes, this will change the
hash, which will break the chain of references.
How to Add Blocks to the chain
• Some peers in the network can transmit data that they wish to be
included in the next Block
• Other peers receive and package data into their own proposed Block,
and then wait to see if they are lucky enough to create the next Block
on the chain.
• These peers do this because there is usually a reward for creating the new
Block.
How are blocks added to the chain?
• Blocks are usually accepted at a regular time interval (say 10 minutes)
• But Which peer gets to create the next Block?
• There are many variations:
• Proof-of-Work (Used by Blockchain)
• Proof-of-Stake (Ethereum)
• Practical Byzantine Fault Tolerance (Hyperledger Fabric)
• Proof-of-Elapsed-time (Hyperledger Sawtooth Lake)
• ..
• These are schemes to decide whose block gets to be added next
Types of Blockchain
Type Description Example Use
Public • Blockchain is available freely on • Bitcoin
the internet. • Support Global Trade
• The code is often opensource • Passport System
• Protocols are also published • Review and Reputation systems
• Blockchain is accessed on the • Asset tracking by shipping
internet, but the software is companies
Permissioned usually proprietary. • Smart meters run by power
• Accessed requires keys that are companies
issued by an authority
Private • The blockchain is available only • HR Permanent records
on the intranet/VPN. • Legal compliance records
• Access controlled by keys issued (ensuring authenticity)
by an authority
Blockchain or a Traditional DB
Blockchain Data Base
• Extremely difficult to alter data • Data can be changed. If the log is also changed
Data Integrity without impossibly large then the original data manipulation cannot be
computational power. traced.
• Only system admin can view certain data and
Audit Trail • All actions and transactions are the actions taken. There is no guarantee that
available on the chain
the logs have not been altered.
• Stored in a central high-powered server(s).
Location • Distributed on the peer network Backups typically achieved through secondary
dedicated servers.
Speed • Records typically take minutes to be
added to the chain • Records can be added in milliseconds.
Participants • A network of Peers • Central Authority granting access
• Trust arises naturally through the • Subjective, dependent on the level of trust of
Trust actions required to add records and the supporting technology and the company
the rewards gained for doing so. hosting the data.
Blockchain or a Traditional DB
Blockchain Data Base
• First emerged in 2009.
• Emerged in the 1970s.
History • New technology that is still evolving
• DBs have been developed extensively since
• Requires improvements to ease of use then.
and integration.
Cost • Requires custom development and • Free high-quality databases are available.
integration • Commercial niche DBs can be very expensive.
• Initial network can be launched with
inexpensive hardware. • Inexpensive for small applications.
Hardware • Easily scalable by adding new peers to • But can be very expensive for larger
the network applications with unique requirements.
• You are not anonymous when you make a purchase from a grocery store.
Your identity is disclosed when:
• If you use a credit card
• From cameras in and outside the store
Solebound Tokens
• How can we maintain anonymity with things like:
• Education records
• Work experiences
• Professional accomplishments
• Medical records
• Such information are linked to a specific individual
• These represents personal characteristics, and are permanently linked
to a specific individual
• There is typically no monetary value for these characteristics, and
people are not expected to exchange them for other assets.
What are Solebound Tokens
• Solebound represents tokens that are Bound to certain individuals,
hence the name Sole Bound.
• Once assigned to a Wallet address, these tokens can never be
transferred to another wallet. They are permanently bound to that
specific wallet.
• Owners of these tokens cannot sell them, as their ownership cannot
be exchanged
Applications of Solebound Tokens
• Education records
• Your institution can issue a Solebound token to represent your degrees or certification.
• Work experiences
• Work Experience wallet can store tokens from each employer. Collectively, the wallet
can represent your full career records.
• Professional accomplishments
• Completion of a certificate or a program.
• Medical records
• Tokens can store all your test results, doctor visits, and medical history.
• Scores and accomplishments in sports
• Match scores, details of performance in a certain game, etc.
Fiat Currencies
• Fiat currencies are currencies not backed by a commodity
• They are based on trust.
• There is usually unlimited supply of Fiat Currencies
• Fiat currencies exist because it is easier to control money supply
• Crypto can also have unlimited supply, but some have limited supply.
• Crypto is also not backed by a commodity.
• Crypto supply in managed by distributed protocols.
Satoshi Nakamoto
• Satoshi Nakamoto wrote the original white paper in 2008.
• No one knows who he is, and he never came forward to identify
himself.
• Some theories emerged but none is particularly plausible.
• The paper Satoshi Nakamoto wrote “Bitcoin: A Peer-to-Peer Electronic
Cash System” is the assigned reading for this topic.
Where to go from here
• Blockchain is revolutionary
• Trust without trustees
• Decentralization of currency, trade, supply chain, governance, voting, and
more
• Some find Blockchain’s future impact to be similar to the impact DNA
had on life.
• Human's ancestors formed hierarchical societies (Sovereignty is
concentrated).
• Civilizations has consistently evolved through distribution of
sovereignty (typically through democratic institutions).
Summary – 1: Blockchains let us agree
on history
• We don’t have to trust each other
• We don’t have to have a trusted third party
• System is distributed
• Agreeing on history -> agreeing on state of system
Summary – 2: Blockchains and hash
chains
• The Nth record in the hash chain commits to all previous records.
• Can’t change any previous record without making hash chain invalid.
• A blockchain is a hash chain with some other stuff added
Summary – 3: Blockchain protocols
• Many blockchains in use now use proof-of-work
• Many new proposals use permissioned blockchains
• Some set of somewhat-trusted entities
• There are other ways to do it
• Proof of work (Bitcoin)
• Proof of stake (Ethereum)
• Practical Byzantine Fault Tolerance (Hyperledger Fabric)
• Proof of elapsed time (Hyperledger Sawtooth Lake)
• Proof of storage, proof of space, proof of capacity (Burstcoin)
• .. And more..