Blockchain for dummies
or how to make $127 million in 20 minutes…
Thibault Debatty
Cyber Defense Lab, Royal Military Academy
www.cylab.be
BeMilCIS2019
Like GO : simple principle, complex
implications!
Blockchain for dummies - BeMilCIS2019 2
Blockchain
3Blockchain for dummies - BeMilCIS2019
Blockchain
Each block contains
•A link to previous block (the chain)
•A timestamp
•Data
•A hard to compute hash
4Blockchain for dummies - BeMilCIS2019
Miners
•Keep a copy of the complete chain (BTC: 160GB)
•Create (and solve) new blocks…
•… starting from the end of the chain
•Broadcast the new block to other miners
5Blockchain for dummies - BeMilCIS2019
Branching
•Can happen
•Will solve automatically
6Blockchain for dummies - BeMilCIS2019
Branching
Blockchain for dummies - BeMilCIS2019 7
Branching
Blockchain for dummies - BeMilCIS2019 8
Blockchain tampering
Modifying the past requires
•To create a new branch
•And to overtake the main branch
9Blockchain for dummies - BeMilCIS2019
Blockchain tampering
Blockchain for dummies - BeMilCIS2019 10
Blockchain
•A replicated database
•That records time related data
•With eventual consistency
•Protects integrity (non-repudiation):
• With no central authority
• Even with untrusted participants
11Blockchain for dummies - BeMilCIS2019
But why so much hype?
Blockchain for dummies - BeMilCIS2019 12
Bitcoin
13Blockchain for dummies - BeMilCIS2019
Bitcoin
Data of a block is a list of transactions
•E.g. 0,01 BTC from A to B
Difficulty adapts : 1 new block every 10 minutes
Transaction considered as final after 6 blocks (1h)
14Blockchain for dummies - BeMilCIS2019
Bitcoin
Uses asymetric cryptography
•Private key used to sign transactions
•Public key is the address of account
Blockchain for dummies - BeMilCIS2019 15
Bitcoin wallet
•Stores public and private keys
•Create and sign transactions
•Send transaction to miners
•Can be online, desktop, app
16Blockchain for dummies - BeMilCIS2019
Online wallets
17Blockchain for dummies - BeMilCIS2019
Online wallets
As safe as the website
https://www.theregister.co.uk/2019/06/07/komodo_npm_wallets/
18Blockchain for dummies - BeMilCIS2019
Desktop wallets and apps
19Blockchain for dummies - BeMilCIS2019
Desktop wallets and apps
20Blockchain for dummies - BeMilCIS2019
21Blockchain for dummies - BeMilCIS2019
Miners consume a LOT of power (5MW)
How do miners make money?
•Controlled supply:
• 12,5 new reward bitcoins per block
• (originally 50)
•Transaction fee:
• $2/transaction on average
• $8000/block
But what when reward bitcoins disappear?
22Blockchain for dummies - BeMilCIS2019
How can youget BTC?
•Mine
•Buy
•As a payment
23Blockchain for dummies - BeMilCIS2019
What makes the value of BTC?
Just like gold :
•Supply and demand
•Mining cost
Blockchain for dummies - BeMilCIS2019 24
Other (useful) applications of
Blockchain?
Blockchain for dummies - BeMilCIS2019 25
obvious: cryptocurrencies
Currently 26 active cryptocurrencies!
•Ethereum (ETH)
•Bitcoin Cash (BCH)
•Ripple (XRP)
Totalling more than $100bn
Blockchain for dummies - BeMilCIS2019 26
possible: smart contracts
Record transactions with no central authority
•Finance and trade (e.g. real estate)
•Authorship
•NATO NCIA : contracts handling
Blockchain for dummies - BeMilCIS2019 27
possible: smart contracts
Replace DNS authorities and SSL/TLS certificate
authorities
•Blockchain DNS
•okTurtles DNSChain
But what about proof of work, reward and price?
Blockchain for dummies - BeMilCIS2019 28
Doubtful…
•US DoD messaging system
•Health records management
Why not a centralized system?
Blockchain for dummies - BeMilCIS2019 29
In conclusion, Blockchain
•Is a simple chain of blocks
•Offers integrity protection in a network with
no central authority
•Has a cost in time and power
Blockchain for dummies - BeMilCIS2019 30
Thank you!
Find this presentation and more resources at
www.cylab.be
Blockchain for dummies - BeMilCIS2019 31

Blockchain for dummies

Editor's Notes

  • #22 10 x 12 x 30 miners each 10 Thash/sec, 1500W, 3blocks/year 1block/day/column Maison monophasé: 8kw : 5 miners