Professional Documents
Culture Documents
03a BlockChain 100 Theory
03a BlockChain 100 Theory
New Technologies
Carles Gómara
@cgomara
cgomara
cgomara@hotmail.com
1
Monday 21st Feb Internet of Things (IoT) and Big Data
Thursday 24th Feb The new era of applications that will come with 5G. New Technology,
New interfaces (VR / AR / MR)
Monday 7th March Blockchain, beyond Bitcoin. Cybersecurity
2
March
Case Study Presentation Innovation Fundamentals 16th
Select one company (from 6 to 50) of the ranking: Most Innovative Companies 2021
https://www.bcg.com/en-es/publications/2021/most-innovative-companies-overview
To consider:
• The CASE must be developed in groups of up to 4 people.
• The group will have 10 minutes to present the project to the class (a powerpoint document is mandatory,
and Word document too).
• All team members must present in public.
• After the presentation there will be 5 minutes for questions from the teacher or the rest of the students.
IoT
IoT
Things
BIG
DATA
Cloud
Block
Computing
computing
Sensors
chain
5G
4G
4G Data
Data
4
BLOCK
CHAIN
BLOCK
CHAIN
The objective of these sessions is:
1. Understand pros and cons of
BlockChain. Revise Use cases.
2. Main concepts of Cybersecurity
7
BLOCKCHAIN
BLOCK
CHAIN
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
SATOSHI NAKAMOTO
BLOCK
CHAIN
2008
Source:
THE PROBLEM
BLOCK
Intermediaries CHAIN
Centralized control
Commissions
Commission Commission
Source:
THE SOLUTION: FIRST USE CASE
BLOCK
CHAIN
Source:
• Avoid centralized control
• Avoid Intermediaries THE SOLUTION
0 Commission 0 Commission
Data
Base
Cryptocurrency
Source:
BlockChain is a DATABASE
BLOCK
SUPER Secure CHAIN
DataBase Database
TRUST
Technology vs Use Case
BLOCK
SUPER Secure Technology CHAIN
Use Case
DataBase Data Base
BLOCK
CHAIN
Why is Super-Secure?
BLOCK
SUPER-Secure CHAIN
DataBase • Encrypted
• Replicated
• Immutable
• Chained
Source:
Why is Super-Secure?
BLOCK
SUPER-Secure CHAIN
DataBase • Encrypted
• Replicated
• Immutable
• Chained
Source:
BLOCK
Encrypted CHAIN
Database
935f07fce94cf9a63
Carles has 2000 bitcoins HASH b0d07baae78cf592
de0810b3f6a41324
8f5f3ce8db8ec62
BLOCK
SUPER-Secure CHAIN
DataBase • Encrypted
• Replicated … (Distributed)
• Immutable
• Chained
Source:
REPLICATED
BLOCK
TRUST CHAIN
BLOCK
Don’t Trust. Maria Maria
CHAIN
VERIFY
Anna Maria
Sergi Maria
Maria
Receipt
Carlos
Maria
Francesca
Maria
Mike
Source:
Why is Super-Secure?
BLOCK
SUPER Secure CHAIN
DataBase • Encrypted
• Replicated CREATE
• Immutable READ
X
UPDATE
• Chained X
DELETE
BANK BOOK
BLOCK
CHAIN
Source:
Why is Super-Secure?
BLOCK
SUPER Secure CHAIN
DataBase • Encrypted
• Replicated
• Immutable
• Chained
• Open Source
BLOCK
CHAIN
MARIA ANNA
Maria
Carlos
Anna
CARLOS
BLOCK
CHAIN
MARIA ANNA
Maria
Carlos
Anna
Sergi SERGI
CARLOS
Why is Super-Secure?
BLOCK
CHAIN
• Encrypted
• Replicated … (Distributed)
• Immutable
• Chained More Uses
Not only for
• Open Source Cryptocurrencies
Why is Super-Secure?
BLOCK
More Uses CHAIN
Not only for
Cryptocurrencies
Why is Super-Secure?
BLOCK
ORIGINAL CHAIN
Blockchain
MODIFIED
ETHEREUM
BLOCK
CHAIN
Source: https://www.bitcoiners.news/vitalik-buterin-la-historia-del-programador-ruso-cocreador-e-inventor-ethereum/
ETHEREUM
BLOCK
CHAIN
Source: https://www.ethereum.org/
https://blockgeeks.com/guides/ethereum/
Technology BLOCK
Use Case CHAIN
Data Base
Ether
Smart Contracts
Smarts contracts
BLOCK
CHAIN
Source:
Smart Contracts
BLOCK
CHAIN
BLOCK
SUPER
CHAIN
Secure • Immutable
DataBase
• Trust between players
Don’t TRUST. Verify
No Intermediaries
• Smart Contracts
• Slow writing
Open Source
More Uses
Not only for
Cryptocurrencies
•
•
•
•
•
•
•
•
Blockchain
BLOCK
CHAIN
DATA 1 DATA 3
DATA 2
Blockchain
BLOCK
CHAIN
Slow
BLOCK
DATA
TimeStamp
https://en.bitcoin.it/wiki/Block
Current block count https://blockexplorer.com/api/status?q=getBlockCount
Block hashing algorithm https://en.bitcoin.it/wiki/Block_hashing_algorithm
Why is Super-Secure?
BLOCK
CHAIN
10 Minutes
per BLOCK
Transactions per day
• VISA: 150 million
• BlockChain: 400.000
SitePoint.com https://www.sitepoint.com/proof-of-stake-vs-proof-of-work/
https://towardsdatascience.com/the-blockchain-scalability-problem-the-race-for-visa-like-transaction-speed-
5cce48f9d44#:~:text=The%20current%20Bitcoin%20block%20generation,only%204.6%20transactions%20per%20second.
Blockchain
BLOCK
CHAIN
DATA 1 DATA 3
DATA 2 DATA N
Blockchain
BLOCK
CHAIN
Blockchain
BLOCK
CHAIN
DATA 1 DATA 3
DATA 2 DATA N
Blockchain
BLOCK
CHAIN
DATA 1 DATA 3
DATA X DATA N
Blockchain
BLOCK
CHAIN
DATA 1 DATA 3
DATA X DATA N
Blockchain
BLOCK
CHAIN
BlockChain
DATA 1 DATA 3
DATA 2 DATA N
Very sloooow
Blockchain
BLOCK
CHAIN
Veeeeery Slooooow
Bitcoin’s Network
BLOCK
CHAIN
15.254
Nodes by March 2022
BLOCK
CHAIN
BLOCK
CHAIN
BLOCK
DATA
TimeStamp
https://en.bitcoin.it/wiki/Block
Current block count https://blockexplorer.com/api/status?q=getBlockCount
Block hashing algorithm https://en.bitcoin.it/wiki/Block_hashing_algorithm
HASH function
BLOCK
CHAIN
HASH function
BLOCK
CHAIN
A hash function is any
function that can be used
to map data of arbitrary
size to data of a fixed size.
BLOCK
CHAIN
BLOCK
CHAIN
HASH
W
O NUMBER
R
D
BLOCK
CHAIN
HASH
BLOCK
CHAIN
HASH
15
SHA - 256
BlockChain uses ‘SHA-256’ hashing function
BLOCK
CHAIN
DATA
SHA-256
TimeStamp
BLOCK
SHA-256
CHAIN
1000110110100101010110100011110010
0110111000100001100000000000000000
0000000000000000000000000000000000
0000000000000000000000000000000000
0000000000000000000000000000000000
Carles 0000000000000000000000000000000000
0000000000000000000000000000000000
0000000000000000
64 characters in BASE 16
are 256 in binary
Ea7304be3b482e244325c6f8aa485
fe47b80c1302ccdc8690e02720c10
864d1b
BLOCK
HAMLET HAMLET CHAIN
To be, or not to be, that is the question: To be, or not to be, that is the question:
Whether 'tis nobler in the mind to suffer Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous The slings and arrows of outrageous
fortune, fortune,
Or to take Arms against a Sea of troubles, Or to take Arms against a Sea of troubles,
And by opposing end them: to die, to sleep And by opposing end them: to die, to sleep
No more; and by a sleep, to say we end the No more; and by a sleep, to say we end the
heart-ache, and the thousand natural heart-ache, and the thousand natural
shocks shocks
that Flesh is heir to? 'Tis a consummation that Flesh is heir to? 'Tis a consummation
devoutly to be wished. devoutly to be wished
Author: Shakespeare missing the end point
ec353c08cbca2c3f2382b19debffcb3bd fbc7c4941d5fcd901a06a7afb94c71530
71741aeab8dba74489afdf488f92783 fb289e97cfd7a760ee03118c3c49dd5
BLOCK
One way Calculation
(SHA-256) CHAIN
DATA
TimeStamp
ID BLOCK
• ID previous block Ea7304be3b482e24
• Timestamp 4325c6f8aa485fe47
• DATA b80c1302ccdc8690e
02720c10864d1b
(256 binary
64 Hexadecimal)
SOURCE:
How Bitcoin Mining Works https://www.coindesk.com/information/how-bitcoin-mining-works/
SHA-256 hash calculator http://www.xorbin.com/tools/sha256-hash-calculator
SHA - 256
BLOCK
CHAIN
DATA
TimeStamp
SOURCE:
SHA-256 hash calculator http://www.xorbin.com/tools/sha256-hash-calculator
We need to be SLOW
BLOCK
CHAIN
QUIZ !!!!!!
BLOCK
CHAIN
Say, names of
Animals
QUIZ !!!!!!
BLOCK
CHAIN
Say, names of
Animals
beginning with
the letter: W
QUIZ !!!!!!
BLOCK
CHAIN
Say, names of
Animals
beginning with
the letter: J
HASH function
BLOCK
CHAIN
00..00XXXX
Difficulty
BLOCK Level
DATA
TimeStamp
https://en.bitcoin.it/wiki/Block
Current block count https://blockexplorer.com/api/status?q=getBlockCount
Block hashing algorithm https://en.bitcoin.it/wiki/Block_hashing_algorithm
HASH function
BLOCK
CHAIN
HASH
BLOCK
One way Calculation
(SHA-256) CHAIN
• Guessed
BLOCK
DATA
Number TimeStamp
NONCE*
• ID previous block
ID BLOCK
• Timestamp Number
• DATA (256 binary)
Difficulty Level
00..00 XXXXXX
Difficulty
* NONCE = Number used ONCE Level
SOURCE:
How Bitcoin Mining Works https://www.coindesk.com/information/how-bitcoin-mining-works/
SHA-256 hash calculator http://www.xorbin.com/tools/sha256-hash-calculator
Example
One example of ‘Difficult Target’
BLOCK
CHAIN
10672cb3457840cd94be313e91691ce3017095
Make America Great Again
c4eb917a111f537943ec2624c9
6f29b70c30d2d63d7e8e66b194b325b764cd87
1Make America Great Again 7a18be7820f846528fc9f794c3
0000e095ffaaec18cfe399d18a2e226e71378
NONCE 69817Make America Great Again 096d9132106edd84370a06cdda7
10 Minutes
per BLOCK
SitePoint.com https://www.sitepoint.com/proof-of-stake-vs-proof-of-work/
CONSENSUS ALGORITHM
BLOCK
CHAIN
SitePoint.com https://www.sitepoint.com/proof-of-stake-vs-proof-of-work/
•
•
•
•
•
•
•
•
MINERS
BLOCK
CHAIN
Only for
Bitcoin
Source. CryptoSolarTech construirá la granja de minería de criptomonedas con energías renovables más grande de España
http://www.expansion.com/mercados/divisas/2018/04/17/5ad64824e5fdea50158b461f.html
¿Qué es Minar Bitcoins? https://blog.bit2me.com/es/que-es-minar-bitcoins/
network
MEMPOOL
BLOCK
CHAIN
MEMPOOL
Maite envia
2,5 bitcoins
Maria envia 1 Joan envia
a Carles
bitcoin a Pere 0.5 bitcoins
a Carlos
Anna envia 2
bitcoins a Jordi Xavier
envia 3
bitcoins a
Tomàs
BLOCK
CHAIN
HASH
BLOCK X
0ff7633a900e
dd8b2ce11 ...
BLOCK
CHAIN
HASH
BLOCK X
10000aa34cd
d211ccfe445
...
Maria envia 1 bitcoin a Pere
Joan envia 0.5 bitcoins a Carlos
Anna envia 2 bitcoins a Jordi DIFFICULT
Y LEVEL:
NONCE: 3055 ‘0000’
BLOCK
CHAIN
HASH
BLOCK X
a3344ab908b
bbcf88 ...
BLOCK
CHAIN
HASH
BLOCK X
003bdd6672a
bdc765f00 ...
BLOCK
CHAIN
HASH
BLOCK X
000fd9193776
2c7a9936d ...
BLOCK
CHAIN
HASH
0000accc4f467
BLOCK 4fac28a2b2 ...
BLOCK
CHAIN
DATA 1 DATA 3
DATA 2 DATA N
REWARD
BLOCK
Only for
12,5 Bitcoins CHAIN
BLOCK
CHAIN
15.254
Nodes by March 2022
MORE POWERFUL MINERS ...
BLOCK
CHAIN
BLOCK
CHAIN
15.254
Nodes by March 2022
MINERS
BLOCK
CHAIN
100.000
Nodes by XXXXX 2XXX
... WILL BE FASTER finding the ID BLOCK
BLOCK
CHAIN
We need to be SLOW
BLOCK
CHAIN
Back to the BlockChain
BLOCK
One way Calculation
(SHA-256) CHAIN
• Guessed LARGER
Difficulty
Number Level
NONCE*
• ID previous block 0000 XXXXXX
000000
• Timestamp ID BLOCK
• DATA
BLOCK
CHAIN
BLOCK
BLOCK
CHAIN
Mining
Pools
• Price of electricity.
• Price of the Hardware
• Staff
• Hash rate that we can get.
• Monetary value of the cryptocurrency.
Hemos calculado la rentabilidad de minar bitcoins y ethereums en 2018 para romper tus sueños de hacerte rico
https://www.xataka.com/especiales/hemos-calculado-la-rentabilidad-de-minar-bitcoins-y-ethereums-en-2017-para-romper-tus-
suenos-de-hacerte-rico
•
•
•
•
•
•
•
•
IS IT FREE ?
BLOCK
CHAIN
Only for
Bitcoin
MEMPOOL
BLOCK
CHAIN
MEMPOOL
Maite envia
2,5 bitcoins
Maria envia 1 Joan envia
a Carles
bitcoin a Pere 0.5 bitcoins
a Carlos
Anna envia 2
bitcoins a Jordi Xavier
envia 3
bitcoins a
Tomàs
BLOCK
CHAIN
Amount of Age of
Only for
coins sent X the coins
Bitcoin Transaction’s
Transactions size
= PRIORITY
✓ Cryptocurrencies
✓ Notary
✓ Certification of authenticity
✓ Tracing
✓ Smart contracts
✓ Paperless
✓ No Intermediaries
✓ Token / Coupon
✓ ICO