week 12 - blockchain
week 12 - blockchain
TECHNOLOGY
INTRODUCTION
B E N E F I TS O F B LO C KC HA I N
SMART CONTRACTS
CASE STUDIES
WHAT IS BLOCKCHAIN
TECHNOLOGY
INTRODUCTION
• A decentralized ledger
• Each party (user) on a blockchain has access to the database and its history. No
single party controls the data.
VIDEO
BLOCKCHAIN & BITCOIN
ORIGINS OF MONEY
A B
PROS & CONS
BUT:
A B
E-CASH DIDN’T WORK
• Cash makes things inconvenient, but this can prevent illegal transactions
Distributed Consensus
• The algorithm works on hash functions. An identifier (hash) is a fixed sized reduced form
of any piece of data, regardless of its size.
• Example: A simple text like “Hello, World!” would be converted into hash like:
a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e
GOVERNANCE: POW (CONT’D)
• Every block contains a hash function as its identifier,
along with the hash of previous block and the
transaction data.
GOVERNANCE: POW (CONT’D)
• In bitcoin, we don’t compute hash only once. It has to be done
over and over to get a hash with a certain number of leading
zeroes.
• The number of leading zeroes is adjusted to maintain a block time of ~10
minutes
• Since each block also holds the hash of previous block, it makes
the chain tamper proof.
• To change the data in a certain block, it will require us to recompute the
PoW for all of the following blocks.
GOVERNANCE: PROOF- OF-WORK (POW)
• Problems of PoW
1. Waste of energy
2. Miners have to be paid
3. Some miners are too powerful.
This violates the foundation of distributed
networks.
4. 10 min/transaction is too slow
GOVERNANCE: PROOF- OF-STAKE (POS)
A weighted voting process then decides whether the next block is added.
Ahmed and Bilal combined make up 35% of this decision. Usually, a majority is
needed. Some networks can require a supermajority (like 66% or more).
GOVERNANCE: PROOF- OF-STAKE (POS)
• Advantages:
Trivial
Little computation
Scalable
Speed
• Problems:
51% attack: If the majority has malicious intent
Concentration: Only a handful of participants may decide
BLOCKCHAIN CASES
CASE STUDIES
• Filecoin
• Earn.com
• Basic Attention Token
• Numerai
THANK YOU
Mohsin Khawaja
[email protected]