Professional Documents
Culture Documents
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 1
First of all: the place we are in today
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 2
MEETUP OBJECTIVES: DISCLAIMER
• Spread knowledge The information in this presentation and meetup is given for information purposes only.
• Map local blockchain skills You should not rely on any of the contents to make your investment decisions.
Investment in cryptocurrencies can lead to total loss of value, secret keys can be lost, accounts
• Meet blockchain enthusiasts and experts can be hacked, exchanges can bankrupt, transactions are irreversible and in most cases no
central authority can be contacted to reclaim your funds.
• Discuss use cases It is your duty to investigate legal and fiscal implications of your actions.
• Propose new ventures The information is provided on an ”as is” basis without warranty of accuracy and update.
If you decide to start investing in cryptocurrencies and or ICOs, do not invest more than you
are willing to fully lose.
Price fluctuations are very high, past rewards are not proxies of future incomes.
but most of all Have Fun!
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 3
Roles in the meetup
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 4
Why spreading knowledge: Bitcoin history
apr-09
apr-10
apr-11
apr-12
apr-13
apr-14
apr-15
apr-16
apr-17
ott-09
ott-10
ott-11
ott-12
ott-13
ott-14
ott-15
ott-16
lug-09
lug-10
lug-11
lug-12
lug-13
lug-14
lug-15
lug-16
lug-17
gen-09
gen-10
gen-11
gen-12
gen-13
gen-14
gen-15
gen-16
gen-17
5.000
apr-10
apr-11
apr-12
apr-13
apr-14
apr-15
apr-16
apr-17
ott-09
ott-10
ott-11
ott-12
ott-13
ott-14
ott-15
ott-16
lug-09
lug-10
lug-11
lug-12
lug-13
lug-14
lug-15
lug-16
lug-17
gen-09
gen-10
gen-11
gen-12
gen-13
gen-14
gen-15
gen-16
gen-17
Source: http://historyofbitcoin.org/; google trends; 99 bitcoins.com; Oscar Wilde
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 5
Problems that Alice and Bob are facing
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 6
Let’s start with the building blocks
PRIVAT EY
MERKLE
MIN
DLT
Credits: Lego ®
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 7
First, we need to talk about hash functions
Given an arbitrary input, a hash function produces a fixed output (e.g. SHA256 =>256 bit) satisfying the following:
• Collision Resistance: given x!=y it is very unlikely that H(x)=H(y) (e.g. for 2130 SHA256 hashes, this property is
satisfied in 99,8% of cases*)
• Hiding: given an arbitrary msg and an arbitrary r chosen from an high entropy probability distribution,
it is unfeasible to guess msg from H(msg || r)
• Puzzle friendliness: ∀ n-bit output Y, given k chosen from a high entropy probability distribution,
it’s infeasible to find x such that H(k || x) = y in less time than 2n (e.g. 2256 for SHA256)
Source: Merkle-Damgard construction, Princeton course on cryptography on Coursera, courtesy Stefano Paluello
* 2256≃1077, the order of magnitude of atoms in the known universe; 10 Mn TH/s is the current bitcoin computing power, it would take 1012 years to compute 2128 hashes (our universe is 14X109 years old…)
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 8
How does Bob sign a transaction?
Properties requested: 3 Primitives required
- Only Bob can sign his messages/documents/transactions
- Given a message and Bob’s signature, anybody can verify
- Bob’s signature cannot be copy/pasted to another document (sk, pk) := generateKeys(keysize)
secret key & private key generation
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 9
How is tamper resistance ensured?
Blockchain: a global timestamped, distributed ledger of cryptographically signed digital asset transfers where
a consensus mechanism ensures that transactions are correct and assets are not double spended
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 10
How do we create a censorship resistant, tamperproof and public ledger?
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 11
How does the nodes network look like?
https://bitnodes.21.co/nodes/live-map/
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 12
A very simplified block diagram of consensus
New broadcasted
Block n-1 Block n transactions Generate
Hn+1=H(new block)
H(Bn-2) H(Bn-1)
HEADER: S1, R1, BTC1
.timestamp S2, R2, BTC2
.nonce
.difficulty … Generate nonce Computational effort is
.#transactions required in order for the
.Merkle root hash
TRANSACTIONS network to cooperate
. S1, R1, BTC1 for rightful functioning
. S2, R2, BTC2
…
NO
H(Hn+1,nonce) of the consensus
< difficulty? scheme
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 13
So, how does the blockchain work?
Source: PwC
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 14
Put it all together (almost)
https://anders.com/blockchain/
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 15
How does a miner look like?
Examples Antminer D3: a game changer for Dash?
• 15 Gh/s
• 1.600 USD (sold out, beware of scam sellers)
• 1.200 W
• 72 days (for now…) payback mining Dash (X11)
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 16
Monetary supply of bitcoins is centrally controlled
18.000.000
50BTC/block 25BTC/block 12,5BTC/block
16.000.000
0
gen-09 gen-10 gen-11 gen-12 gen-13 gen-14 gen-15 gen-16 gen-17
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 17
Why 21 million bitcoins?
How
many • Blocks mined in 4y: 4*365*24*6= 210.240
BTC • Rewards = 50+25+12,5+6,25+…=50*∑i (1/2)i= 100
• Total reward = 21.024.000 => 21 Mn
issued in
total?
How
much
gold on
earth?
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 18
How many other crypto currencies are out there?
100%=144Bn USD*
Scale effect and
first mover
advantage?
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 19
How do I buy, store and use bitcoins?
Exchanges Wallets Merchants
10 ATM in Italia
(1 in TAG-MI)
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 20
Who is Satoshi Nakamoto?
?
Craig Wright
Satoshi Nakamoto
Hal Finney
Nick Szabo
Neal King
Vladimir Oksman Shinichi Mochizuki
Charles Bry
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 21
So, is blockchain only for cryptovalues transactions?
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 22
What is Ethereum?
Vitalik Buterin (1994, Russia, now living in Toronto),
Limits of Bitcoin protocol in 2014 devised a decentralised computer through:
- an Ethereum Virtual Machine, running scripts (smart
• Lack of states, a state is derived contracts) on a network of nodes
looking backwards at the chain - a messaging platform (whisper)
of transactions - a storage platform (swarm)
• Lack of Turing completeness: - a crypto currency (Ether) to pay for services and mining fees
bitcoin protocol allows some
computation (e.g. colored coins)
but not everything is possible
• Value blindness: a scripting
protocol linking BTC to USD Whereas bitcoin works on transactions,
value cannot be written (e.g. for Ethereum works on Accounts:
a hedging contract) - Externally owned (controlled by private
• Blockchain blindness: unspent
keys)
transaction outputs disregard
- Contract accounts (controlled by
block data such as nonce and
hash of previous block, limiting contract code)
random applications such as
gaming Consensus running on PoW but switching
to PoS soon
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 23
How does a smart contract look like?
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 24
Killer application of Ethereum: Initial Coin Offering
Funds raised Mn$ (in green ongoing ICOs)
EOS 300
Tezos
FileCoin 205
232
• + Other 215 for a total of 2,5 Bn$ raised
Bancor Network Token 153 • Many scams, frauds and thefts due to weak security
Status Network Token 102
MobileGo 53,07 • Mainly Proof of concepts
Monetha
Basic Attention Token
37
36
• ICOs overtaking VC this summer
Civic 33 • SEC, China and S.Korea starting to rule/ban ICOs
Polybius 31,65
Blackmoon Crypto 30
Storj 30
Agrello Delta 27,5
Stox 27,48
Decentraland 26,29
SONM 26
FunFair 26
Tierion 25,04
OmiseGo 25
Monaco 25
Aragon 25
Aeternity 24,99
Everex 22,63
KickCoin 22,34
Pillar 21,99
AventCoin 20,2
Rivetz 19,71
MCAP 19,26
OpenANX 18,76
Ethereum 18,5
Centra 17,41
Source: icotracker.net, ico-list.com, cryptocompare.com
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 25
Blockchain startups appearing in every field, but beware of scams
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 26
What’s next?
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 27
Resources
coin.dance: lots on info on nodes, coinmarketcap.com: capitalization cryptocompare.com: comparison whattomine.com: ranking on
protocols polls, polytics, … and trends by cryptocurrency and ratings of exchanges, miners, mining activities profitability
wallets, ICOs, …
coindesk.com: blockchain and etherscan.com: Ethereum hacked.com: trading signals blockchain.info: bitcoin blockchain
crypto news, market reports, blockchain browser, smart browser
opinions, … contracts source codes
© Pavia Blockchain Group – 1st Meetup @CollegioBorromeo - 4 Oct 2017 Alessandro Leona 28