SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
What can Bitcoin teach us?
Seminari di Cultura Matematica
Dr. Matteo L. BEDINI
Numerix, Financial Engineering – EMEA
Milano, 11 April 2017
Disclaimer
The opinions expressed in the following slides are solely of the author and do not
necessarily represent those of the current (or past) employer(s).
How much do you already know about Bitcoin?
A small quiz for the audience
How much do you already know about Bitcoin?
The“correct”answers are...
Main goals and some references
The goals of this presentation are:
Providing a brief overview of the Mathematics underlying the Bitcoin
protocol – [An, S].
Providing a preliminary, technical understanding of the Bitcoin protocol –
[N, Ni].
Discussing some aspects about the economy sparked by the adoption of
bitcoins – [Am].
Discussing the cultural novelty introduced by Satoshi Nakamoto.
Why this particular choice?
This proposal is limited by the author’s knowledge and experience: it’s up to you
to go and look for what mostly suits your interests. The aim of the author is to
spark curiosity in the audience without claiming the ability of satisfying all possible
questions.
Outline
1 Mathematical Preliminaries
One-way Functions – SHA256
Asymmetric Cryptography
Hash Functions and Public-Key Cryptography for Signing Documents
2 The Bitcoin Protocol
Re-inventing a P2P Payments Protocol Avoiding Double Spending
Bitcoin and bitcoins
Are bitcoins Money?
3 Conclusions and References
Conclusions
References
Mathematical Preliminaries
Outline
1 Mathematical Preliminaries
One-way Functions – SHA256
Asymmetric Cryptography
Hash Functions and Public-Key Cryptography for Signing Documents
2 The Bitcoin Protocol
Re-inventing a P2P Payments Protocol Avoiding Double Spending
Bitcoin and bitcoins
Are bitcoins Money?
3 Conclusions and References
Conclusions
References
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 7 / 25
Mathematical Preliminaries One-way Functions – SHA256
Functions that are easy to compute but hard to invert
Ex: “[...] It is easy to disassemble a watch into hundreds of minuscule pieces. It is
very difficult to put those tiny pieces back together into a working watch [...]” [S].
“[...] If we are being strictly mathematical, we have no proof that one-way functions
exist, nor any real evidence that they can be constructed [...] Even so, many
functions look and smell one-way: We can compute them efficiently and, as of yet,
know of no easy way to reverse them. [...]” [S].
Trap-door functions: one-way functions that can be easily inverted if you know a
secret (the assembly instructions of the watch).
Hash-functions:
Deterministic – The hash function is public and deterministic; there’s no
secrecy nor randomness in the process.
One-way – The output is not dependent on the input in any discernible way.
Optional but recommended – Variable-size input, fixed-size output.
SHA256 – Nonce
SHA256("Hello, world!0") =
1312af178c253f84028d480a6adc1e25e81caa44c749ec81976192e2ec934c64
SHA256("Hello, world!4250") =
0000c3af42fc31103f1fdc0151fa747ff87349a4714df7cc52ea464e12dcd4e9
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 8 / 25
Mathematical Preliminaries Asymmetric Cryptography
Public-key K for encryption, Private-key k for decryption
“[...] Encryption is the easy direction. Instructions for encryption are the public key;
anyone can encrypt a message. Decryption is the hard direction. It’s made hard enough
that people with Cray computers and thousands (even millions) of years couldn’t decrypt
the message without the secret. The secret, or trapdoor, is the private key. With that
secret, decryption is as easy as encryption [...]” – [S].
1) Alice gets Bob’s public key from the database  2) Alice encrypts her message using Bob’s public key and
sends it to Bob  3) Bob then decrypts Alice’s message using his private key.
The NIST secp256k1 standard curve used in the
Bitcoin protocol is defined by the following function,
which produces an elliptic curve:
y
2
modp = (x
3
+ 7)modp,
where modp (modulo prime number p) indicates that
this curve is over a finite field of prime order p, where
p = 2256
− 232
− 29
− 28
− 27
− 26
− 24
− 1, a very
large prime number – [An].
Figure: Elliptic curves and Bitcoin. One-to-one
(but not invertible) relation between keys and
address [An].
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 9 / 25
Mathematical Preliminaries Hash Functions and Public-Key Cryptography for Signing Documents
Digital Signature – [S]
The Signing Protocol:
1 Alice produces a one-way hash of a document  timestamp.
2 Alice encrypts the hash with her private key, thereby signing the document.
3 Alice sends the document and the signed hash to Bob.
4 Bob produces a one-way hash of the document that Alice sent. He then,
using the digital signature algorithm, decrypts the signed hash with Alice’s
public key. If the signed hash matches the hash he generated, the signature is
valid.
Features:
1 The signature is authentic; when Bob verifies the message with Alice’s
public key, he knows that she signed it.
2 The signature is unforgeable; only Alice knows her private key.
3 The signature is not reusable; the signature is a function of the document
and cannot be transferred to any other document.
4 The signed document is unalterable; if there is any alteration to the
document, the signature can no longer be verified with Alice’s public key.
5 The signature cannot be repudiated. Bob doesn’t need Alice’s help to
verify her signature.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 10 / 25
The Bitcoin Protocol
Outline
1 Mathematical Preliminaries
One-way Functions – SHA256
Asymmetric Cryptography
Hash Functions and Public-Key Cryptography for Signing Documents
2 The Bitcoin Protocol
Re-inventing a P2P Payments Protocol Avoiding Double Spending
Bitcoin and bitcoins
Are bitcoins Money?
3 Conclusions and References
Conclusions
References
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 11 / 25
The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending
How to Use Digital Signature
“[...] Digital signatures provide part of the solution [...]” [N]
Basic information
“I, Alice, am giving
Bob one bitcoin”
Better
“I, Alice, am giving
+ Alice’s digital signature
Bob one bitcoin”
Even Better
“I, Alice, am giving
+ Alice’s digital signature
Bob the bitcoin # 123654”
The Best
“I, Alice, am giving Bob the bitcoin
+ Alice’s digital signature
# 123654” 20180411T112043Z
Who’s printing serial the serial number 123654? A bank certifying that:
1 bitcoin #123654 actually belongs to Alice
2 Alice hasn’t yet spent the bitcoin #123564
hence guaranteeing and authorizing the transaction from Alice to Bob?
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 12 / 25
The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending
Why Using a Public Ledger
“[...] the main benefits are lost if a trusted third party is required to prevent
double spending [...]” [N]
Idea: everybody is a bank thanks to a public ledger called blockchain.
Bob, before accepting a payment from Alice, has to
1 check his own copy of the blockchain
2 broadcast the transaction on the Bitcoin network.
When enough users (50? 50%?) will have confirmed (?) the transaction, this will
be actually registered on Bob’s account.
Two problems remain to be solved:
1 Who’s printing serial numbers on bitcoins?
2 Double-spending cannot be difficult, it must be practically impossible.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 13 / 25
The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending
The Role of Seignorage
“[...] The network timestamps transactions by hashing them into an ongoing chain of hash-based
proof-of-work, forming a record that cannot be changed without redoing the proof-of-work [...]”
[N]
Validating transaction is computationally costly (find the Nonce).
Reward (today 12.5 BTC) for the user validating a block.
Mining: 1 CPU = 1 vote
1 Check block’s transaction integrity.
2 Find the nonce satisfying a given target (number of leading 0s).
3 Broadcast on Bitcoin block + nonce.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 14 / 25
The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending
Consensus for the Most Powerful
“[...] The longest chain not only serves as a proof of the sequence of events
witnessed, but proof that it came from the largest pool of CPU available [...]” [N]
Every block points to the previous one (from which then name: blockchain).
Forks may occur whenever two blocks are simultaneously validated.
Keep track of the forks, but always work on the longest chain.
A transaction is confirmed when 5 other blocks are validated after its block
on the longest chain.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 15 / 25
The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending
A Self-Enforcing Mechanism
“[...] As long as a majority of CPU power is controlled by nodes that are not
cooperating to attack the network, they’ll generate the longest chain and outpace
the attackers [...]” [N]
Problem of Double-Spending: how to do it?
1 Two transactions TxB and TxC in the same block B? NO. Even if Alice
validates B, other network users will not.
2 Transaction TxB in block B1 and transaction TxC in block B2? NO. Even if
Alice validates and broadcast the two blocks, only one of the two blocks will
be part of the blockchain (i.e., the one reaching the pool of miners with
greater computing power).
3 Alice waits for Charlie accepting the transaction, goes back of 6 blocks, forks
the blockchain and try to outpace it with her new branch. OK only if Alice
(alone) has at least the 51% of computing power of the whole
network.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 16 / 25
The Bitcoin Protocol Bitcoin and bitcoins
Addresses, Transactions, bitcoins and Wallets
The transfer of bitcoins from some addresses to some others is enabled by the solution of
a puzzle involving the related keys. A wallet is a container of the private keys associated
to the input addresses.
Figure: A transaction as a double-entry bookkeeping with optional input
(https://blockexplorer.com/tx/
76b95e8fa7d52eff52bafe884468ab726ce284ab3e278f5d1b132feaa5b03e1f).
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 17 / 25
The Bitcoin Protocol Bitcoin and bitcoins
The result is an online system that does not need trusted
third party for transferring a scarce asset
Bitcoin is a peer-to-peer protocol enabling transaction in bitcoins.
The blockchain is a resilient WORM1
data-structure implementing a
distributed ledger, the ledger of transactions.
Mining bitcoins:
Starting from 2009, 50 BTC are generated and given to those who validate a
block.
This amount halves every four years (today: 12.5 BTC).
This is the only way of creating new bitcoins.
In 2140 there will be 21 mln of bitcoins and the total supply of bitcoins will
cease to grow.
Computing power can either support or destroy Bitcoin, but the
self-enforcing mechanism design of the protocol revenues CPU support
to the project with seignorage fee.
1Write Once Ready Many
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 18 / 25
The Bitcoin Protocol Are bitcoins Money?
Value, Coin, Money, Commodities
How to asses the value of a“medium of exchange”?
Figure: AR Douzi`eme d’´Ecu (21mm, 2.26 g). Paris mint, dated 1643. Formally
967/1000 of silver, 1/12th of ecu, Turkish women in 1660-1670 settled a bid price at
twice its face value. See [C, La truffa del secolo (XVII), pp. 51-62].
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 19 / 25
The Bitcoin Protocol Are bitcoins Money?
What is“Money”?
Goals of using money:
Medium of exchange
Unit of account
Way to settle a debt (standard or deferred payment – legal tender)
Store of value
Cows Silver Coins Diamonds USD ZWL BTC
Interchangeability
Durability
Portability
Cognizability
“Stability” of Value ?
Table: A brief overview of different system of payments.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 20 / 25
The Bitcoin Protocol Are bitcoins Money?
Are bitcoins money? And if so, which one?
Money in history:
Commodity Money: finite and chaotic supply of the metal. Difficult
assessment of the alloy quality.
Representative Money: more controllable supply of the precious metal,
easier rebasement. 15 August 1971: end of gold-USD conversion.
Fiat Money (see, e.g. ECB monetary aggregates):
M1: monetary base (is the sum of currency in circulation and overnight
deposits).
M2, M3: everything else.
Roughly speaking, M1 is a little bit less than 10% of the total2
.
What about bitcoins? Two, possibly equivalent, considerations
bitcoins might be considered:
internet-based M1 with finite, inelastic, deterministic supply.
digital gold (see [Am]).
2Author’s personal estimate
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 21 / 25
Conclusions and References
Outline
1 Mathematical Preliminaries
One-way Functions – SHA256
Asymmetric Cryptography
Hash Functions and Public-Key Cryptography for Signing Documents
2 The Bitcoin Protocol
Re-inventing a P2P Payments Protocol Avoiding Double Spending
Bitcoin and bitcoins
Are bitcoins Money?
3 Conclusions and References
Conclusions
References
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 22 / 25
Conclusions and References Conclusions
Why Bitcoin is a great cultural achievement
Solution of the Byzantine Generals Problem:
Generals of the Byzantine Army need to coordinate for attacking a city or
retreating, but some of them are traitors...
Implementation of a resilient transaction system:
almost real-time execution (though other systems are better)
almost real-time clearing and settlement!
Bitcoin protocols underpins the first natively-digital scarce asset:
bitcoins are transferable but not duplicable
total amount of bitcoins is capped at 21000000
See [Am, e.g. 1]
Notarization services (see [Am, e.g. 4]): https://opentimestamps.org/.
First cases of smart-contracts (scripting language Turing-incomplete by
design).
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 23 / 25
Conclusions and References Conclusions
Misunderstandings
The dark-side of the hype:
The blockchain is a data-structure/database with cryptographic steroids.
Useful in very special circumstances (mea-culpa).
Most of other cryptocurrencies are rarely able to improve some aspects of
Bitcoin. Some purpose-limited exceptions:
Ethereum
Ripple
Monero/Zcash
Initial Coin Offering: are you sure you understand what you are talking
about?
Lot of frauds behind the hype: Cryptocurrencies: Last Week Tonight with
John Oliver (HBO).
Not so true:
Bitcoin is anonymous and is good for criminal activities.
No trusted third-party is required for using bitcoins.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 24 / 25
GRAZIE!
Everything’s clear now... right?
Conclusions and References References
[Am] F. Ametrano. https://speakerdeck.com/nando1970. URLs last retrieved
4 April 2018.
1 Bitcoin as Digital Gold. 1 February 2018.
2 Bitcoin: The Digital Rush. 19 January 2018.
3 Bitcoin, Blockchain, and Distributed Ledger Technology: Hype or
Reality? 19 June 2017.
4 Bitcoin and Blockchain Technology: Hayek Money. 12 June 2017.
5 Bitcoin and Blockchain Technology: An Introduction. 27 March 2017.
6 About Bitcoin, Blockchain, and the DLT Chimera. 22 November 2016.
7 Response to ESMA on DLT Applied to Securities Markets. 1 November
2016 (jointly with E. Barucci, S. Marazzina, S. Zanero).
8 ...
[An] A. Antonopoulos. Mastering Bitcoin: Programming the Open Blockchain –
Second Edition, Second Print. 20 July 2017. URL last retrieved 4 April 2018.
[C] C. M. Cipolla. Tre storie extra vaganti. Bologna, Il Mulino, 2011.
[N] S. Nakamoto. Bitcoin: A Peer-to-Peer Electronic Cash System. 24 May 2009.
URL last retrieved 4 April 2018.
[Ni] M. Nielsen. How the Bitcoin protocol actually works. 6 December 2013. URL
last retrieved 4 April 2018.
[S] B. Schneier. Applied Cryptography: Protocols, Algorithms, and Source Code
in C. 2nd ed. New York: Wiley, 1996.
Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 25 / 25

Contenu connexe

Tendances

Structured approach to blockchain and consensus techniques
Structured approach to blockchain and consensus techniquesStructured approach to blockchain and consensus techniques
Structured approach to blockchain and consensus techniquesVasiliy Suvorov
 
Demystifying blockchains
Demystifying blockchainsDemystifying blockchains
Demystifying blockchainsRuben Tan
 
Blockchain Challenge - Matteo Bedini - 14/11/18
Blockchain Challenge - Matteo Bedini - 14/11/18Blockchain Challenge - Matteo Bedini - 14/11/18
Blockchain Challenge - Matteo Bedini - 14/11/18The Blockchain Council
 
Crypto currency secrets
Crypto currency secretsCrypto currency secrets
Crypto currency secretsSahir
 
Technical toolkit for a blockchain startup
Technical toolkit for a blockchain startupTechnical toolkit for a blockchain startup
Technical toolkit for a blockchain startupPortia Burton
 
Blockchain Technology - Application and Benefits [17 May 2016]
Blockchain Technology - Application and Benefits [17 May 2016]Blockchain Technology - Application and Benefits [17 May 2016]
Blockchain Technology - Application and Benefits [17 May 2016]Mick Motion-Wise
 
Unchain Blockchain by Eva Rez
Unchain Blockchain by Eva RezUnchain Blockchain by Eva Rez
Unchain Blockchain by Eva Rezrezeva
 
Blockchain Consensus Protocols
Blockchain Consensus ProtocolsBlockchain Consensus Protocols
Blockchain Consensus ProtocolsMelanie Swan
 
Ethereum white paper made simple
Ethereum white paper made simpleEthereum white paper made simple
Ethereum white paper made simpleAntonio Manno
 
Smart contractjp smartcontract_about
Smart contractjp smartcontract_aboutSmart contractjp smartcontract_about
Smart contractjp smartcontract_aboutTomoaki Sato
 
Web3 Infrastructure Thesis
Web3 Infrastructure Thesis Web3 Infrastructure Thesis
Web3 Infrastructure Thesis SeanStuart17
 
Blockchain and Smart Contracts
Blockchain and Smart ContractsBlockchain and Smart Contracts
Blockchain and Smart ContractsGiovanni Ciatto
 
Decentralized applications 101: How and why to build a DApp
Decentralized applications 101: How and why to build a DAppDecentralized applications 101: How and why to build a DApp
Decentralized applications 101: How and why to build a DAppErik Trautman
 
Blockchain; how it works, and why you should care
Blockchain; how it works, and why you should careBlockchain; how it works, and why you should care
Blockchain; how it works, and why you should careVincent Olislagers
 
Banking on blockchains
Banking on blockchainsBanking on blockchains
Banking on blockchainsRuben Tan
 
Primer to smart contracts, smart property, trustless asset management
Primer to smart contracts, smart property, trustless asset managementPrimer to smart contracts, smart property, trustless asset management
Primer to smart contracts, smart property, trustless asset managementTim Swanson
 
Chain of a_lifetime_december2014
Chain of a_lifetime_december2014Chain of a_lifetime_december2014
Chain of a_lifetime_december2014Carlo Bertolazzi
 
Blockchain tutorial for MBA
Blockchain tutorial for MBABlockchain tutorial for MBA
Blockchain tutorial for MBABlokcert
 
The deep skill of blockchain david lee 27_april2017 final
The deep skill of blockchain david lee 27_april2017 finalThe deep skill of blockchain david lee 27_april2017 final
The deep skill of blockchain david lee 27_april2017 finalDavid Lee Kuo Chuen 李国权
 

Tendances (20)

Structured approach to blockchain and consensus techniques
Structured approach to blockchain and consensus techniquesStructured approach to blockchain and consensus techniques
Structured approach to blockchain and consensus techniques
 
Demystifying blockchains
Demystifying blockchainsDemystifying blockchains
Demystifying blockchains
 
Blockchain Challenge - Matteo Bedini - 14/11/18
Blockchain Challenge - Matteo Bedini - 14/11/18Blockchain Challenge - Matteo Bedini - 14/11/18
Blockchain Challenge - Matteo Bedini - 14/11/18
 
Crypto currency secrets
Crypto currency secretsCrypto currency secrets
Crypto currency secrets
 
Technical toolkit for a blockchain startup
Technical toolkit for a blockchain startupTechnical toolkit for a blockchain startup
Technical toolkit for a blockchain startup
 
Blockchain Technology - Application and Benefits [17 May 2016]
Blockchain Technology - Application and Benefits [17 May 2016]Blockchain Technology - Application and Benefits [17 May 2016]
Blockchain Technology - Application and Benefits [17 May 2016]
 
Unchain Blockchain by Eva Rez
Unchain Blockchain by Eva RezUnchain Blockchain by Eva Rez
Unchain Blockchain by Eva Rez
 
Blockchain Consensus Protocols
Blockchain Consensus ProtocolsBlockchain Consensus Protocols
Blockchain Consensus Protocols
 
Ethereum white paper made simple
Ethereum white paper made simpleEthereum white paper made simple
Ethereum white paper made simple
 
Smart contractjp smartcontract_about
Smart contractjp smartcontract_aboutSmart contractjp smartcontract_about
Smart contractjp smartcontract_about
 
Web3 Infrastructure Thesis
Web3 Infrastructure Thesis Web3 Infrastructure Thesis
Web3 Infrastructure Thesis
 
Blockchain and Smart Contracts
Blockchain and Smart ContractsBlockchain and Smart Contracts
Blockchain and Smart Contracts
 
Decentralized applications 101: How and why to build a DApp
Decentralized applications 101: How and why to build a DAppDecentralized applications 101: How and why to build a DApp
Decentralized applications 101: How and why to build a DApp
 
Blockchain; how it works, and why you should care
Blockchain; how it works, and why you should careBlockchain; how it works, and why you should care
Blockchain; how it works, and why you should care
 
Banking on blockchains
Banking on blockchainsBanking on blockchains
Banking on blockchains
 
Primer to smart contracts, smart property, trustless asset management
Primer to smart contracts, smart property, trustless asset managementPrimer to smart contracts, smart property, trustless asset management
Primer to smart contracts, smart property, trustless asset management
 
Blockchain Brochure
Blockchain Brochure Blockchain Brochure
Blockchain Brochure
 
Chain of a_lifetime_december2014
Chain of a_lifetime_december2014Chain of a_lifetime_december2014
Chain of a_lifetime_december2014
 
Blockchain tutorial for MBA
Blockchain tutorial for MBABlockchain tutorial for MBA
Blockchain tutorial for MBA
 
The deep skill of blockchain david lee 27_april2017 final
The deep skill of blockchain david lee 27_april2017 finalThe deep skill of blockchain david lee 27_april2017 final
The deep skill of blockchain david lee 27_april2017 final
 

Similaire à What can Bitcoin teach us?

BLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxBLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxSohanaAmreen
 
Blockchain as a new cyber strategy for your business
Blockchain as a new cyber strategy for your businessBlockchain as a new cyber strategy for your business
Blockchain as a new cyber strategy for your businessDavid Joao Vieira Carvalho
 
Blockchain technology & it's application
Blockchain technology & it's applicationBlockchain technology & it's application
Blockchain technology & it's applicationBhushan Vidhate
 
Minor project report blockchain
Minor project report blockchainMinor project report blockchain
Minor project report blockchainLight Yagami
 
Blockchain based Banking System
Blockchain based Banking SystemBlockchain based Banking System
Blockchain based Banking SystemGaurav Singh
 
Blockchain and the New Internet 25-May-2015
Blockchain and the New Internet 25-May-2015Blockchain and the New Internet 25-May-2015
Blockchain and the New Internet 25-May-2015Doug Callaway
 
Bitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - ReportBitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - ReportShivek Khurana
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)Brussels Legal Hackers
 
Bitcoin & Blockchain
Bitcoin & Blockchain Bitcoin & Blockchain
Bitcoin & Blockchain Len Mei
 
Minning of Bitcoin Technology
Minning of Bitcoin TechnologyMinning of Bitcoin Technology
Minning of Bitcoin TechnologyEECJOURNAL
 
Paradigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked ComputingParadigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked Computingkumar641
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-BitcoinSatwikaHotwani
 
Anonymous E Cash Transaction is using Bitcoin
Anonymous E Cash Transaction is using BitcoinAnonymous E Cash Transaction is using Bitcoin
Anonymous E Cash Transaction is using Bitcoinijtsrd
 
Blockchain Fundamentals - Day 1 - Introduction (new style)
Blockchain Fundamentals - Day 1 - Introduction (new style)Blockchain Fundamentals - Day 1 - Introduction (new style)
Blockchain Fundamentals - Day 1 - Introduction (new style)Chhay Lin Lim
 
Bitcoin-full-report-STVM
Bitcoin-full-report-STVMBitcoin-full-report-STVM
Bitcoin-full-report-STVMKai Bennink
 

Similaire à What can Bitcoin teach us? (20)

4. Informatics
4. Informatics4. Informatics
4. Informatics
 
BLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxBLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptx
 
Blockchain as a new cyber strategy for your business
Blockchain as a new cyber strategy for your businessBlockchain as a new cyber strategy for your business
Blockchain as a new cyber strategy for your business
 
Blockchain technology & it's application
Blockchain technology & it's applicationBlockchain technology & it's application
Blockchain technology & it's application
 
Minor project report blockchain
Minor project report blockchainMinor project report blockchain
Minor project report blockchain
 
Blockchain based Banking System
Blockchain based Banking SystemBlockchain based Banking System
Blockchain based Banking System
 
Blockchain and the New Internet 25-May-2015
Blockchain and the New Internet 25-May-2015Blockchain and the New Internet 25-May-2015
Blockchain and the New Internet 25-May-2015
 
Bitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - ReportBitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - Report
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)
 
Bitcoin & Blockchain
Bitcoin & Blockchain Bitcoin & Blockchain
Bitcoin & Blockchain
 
Bitcoin Cryptocurrency
Bitcoin CryptocurrencyBitcoin Cryptocurrency
Bitcoin Cryptocurrency
 
Minning of Bitcoin Technology
Minning of Bitcoin TechnologyMinning of Bitcoin Technology
Minning of Bitcoin Technology
 
Paradigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked ComputingParadigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked Computing
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-Bitcoin
 
Monero Whitepaper.pdf
Monero Whitepaper.pdfMonero Whitepaper.pdf
Monero Whitepaper.pdf
 
Anonymous E Cash Transaction is using Bitcoin
Anonymous E Cash Transaction is using BitcoinAnonymous E Cash Transaction is using Bitcoin
Anonymous E Cash Transaction is using Bitcoin
 
Blockchain Fundamentals - Day 1 - Introduction (new style)
Blockchain Fundamentals - Day 1 - Introduction (new style)Blockchain Fundamentals - Day 1 - Introduction (new style)
Blockchain Fundamentals - Day 1 - Introduction (new style)
 
Bitcoin-full-report-STVM
Bitcoin-full-report-STVMBitcoin-full-report-STVM
Bitcoin-full-report-STVM
 
Meetup #15 - 2023-08-10
Meetup #15 - 2023-08-10Meetup #15 - 2023-08-10
Meetup #15 - 2023-08-10
 
Bitcoin
BitcoinBitcoin
Bitcoin
 

Dernier

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Dernier (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

What can Bitcoin teach us?

  • 1. What can Bitcoin teach us? Seminari di Cultura Matematica Dr. Matteo L. BEDINI Numerix, Financial Engineering – EMEA Milano, 11 April 2017
  • 2. Disclaimer The opinions expressed in the following slides are solely of the author and do not necessarily represent those of the current (or past) employer(s).
  • 3. How much do you already know about Bitcoin? A small quiz for the audience
  • 4. How much do you already know about Bitcoin? The“correct”answers are...
  • 5. Main goals and some references The goals of this presentation are: Providing a brief overview of the Mathematics underlying the Bitcoin protocol – [An, S]. Providing a preliminary, technical understanding of the Bitcoin protocol – [N, Ni]. Discussing some aspects about the economy sparked by the adoption of bitcoins – [Am]. Discussing the cultural novelty introduced by Satoshi Nakamoto. Why this particular choice? This proposal is limited by the author’s knowledge and experience: it’s up to you to go and look for what mostly suits your interests. The aim of the author is to spark curiosity in the audience without claiming the ability of satisfying all possible questions.
  • 6. Outline 1 Mathematical Preliminaries One-way Functions – SHA256 Asymmetric Cryptography Hash Functions and Public-Key Cryptography for Signing Documents 2 The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending Bitcoin and bitcoins Are bitcoins Money? 3 Conclusions and References Conclusions References
  • 7. Mathematical Preliminaries Outline 1 Mathematical Preliminaries One-way Functions – SHA256 Asymmetric Cryptography Hash Functions and Public-Key Cryptography for Signing Documents 2 The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending Bitcoin and bitcoins Are bitcoins Money? 3 Conclusions and References Conclusions References Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 7 / 25
  • 8. Mathematical Preliminaries One-way Functions – SHA256 Functions that are easy to compute but hard to invert Ex: “[...] It is easy to disassemble a watch into hundreds of minuscule pieces. It is very difficult to put those tiny pieces back together into a working watch [...]” [S]. “[...] If we are being strictly mathematical, we have no proof that one-way functions exist, nor any real evidence that they can be constructed [...] Even so, many functions look and smell one-way: We can compute them efficiently and, as of yet, know of no easy way to reverse them. [...]” [S]. Trap-door functions: one-way functions that can be easily inverted if you know a secret (the assembly instructions of the watch). Hash-functions: Deterministic – The hash function is public and deterministic; there’s no secrecy nor randomness in the process. One-way – The output is not dependent on the input in any discernible way. Optional but recommended – Variable-size input, fixed-size output. SHA256 – Nonce SHA256("Hello, world!0") = 1312af178c253f84028d480a6adc1e25e81caa44c749ec81976192e2ec934c64 SHA256("Hello, world!4250") = 0000c3af42fc31103f1fdc0151fa747ff87349a4714df7cc52ea464e12dcd4e9 Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 8 / 25
  • 9. Mathematical Preliminaries Asymmetric Cryptography Public-key K for encryption, Private-key k for decryption “[...] Encryption is the easy direction. Instructions for encryption are the public key; anyone can encrypt a message. Decryption is the hard direction. It’s made hard enough that people with Cray computers and thousands (even millions) of years couldn’t decrypt the message without the secret. The secret, or trapdoor, is the private key. With that secret, decryption is as easy as encryption [...]” – [S]. 1) Alice gets Bob’s public key from the database 2) Alice encrypts her message using Bob’s public key and sends it to Bob 3) Bob then decrypts Alice’s message using his private key. The NIST secp256k1 standard curve used in the Bitcoin protocol is defined by the following function, which produces an elliptic curve: y 2 modp = (x 3 + 7)modp, where modp (modulo prime number p) indicates that this curve is over a finite field of prime order p, where p = 2256 − 232 − 29 − 28 − 27 − 26 − 24 − 1, a very large prime number – [An]. Figure: Elliptic curves and Bitcoin. One-to-one (but not invertible) relation between keys and address [An]. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 9 / 25
  • 10. Mathematical Preliminaries Hash Functions and Public-Key Cryptography for Signing Documents Digital Signature – [S] The Signing Protocol: 1 Alice produces a one-way hash of a document timestamp. 2 Alice encrypts the hash with her private key, thereby signing the document. 3 Alice sends the document and the signed hash to Bob. 4 Bob produces a one-way hash of the document that Alice sent. He then, using the digital signature algorithm, decrypts the signed hash with Alice’s public key. If the signed hash matches the hash he generated, the signature is valid. Features: 1 The signature is authentic; when Bob verifies the message with Alice’s public key, he knows that she signed it. 2 The signature is unforgeable; only Alice knows her private key. 3 The signature is not reusable; the signature is a function of the document and cannot be transferred to any other document. 4 The signed document is unalterable; if there is any alteration to the document, the signature can no longer be verified with Alice’s public key. 5 The signature cannot be repudiated. Bob doesn’t need Alice’s help to verify her signature. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 10 / 25
  • 11. The Bitcoin Protocol Outline 1 Mathematical Preliminaries One-way Functions – SHA256 Asymmetric Cryptography Hash Functions and Public-Key Cryptography for Signing Documents 2 The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending Bitcoin and bitcoins Are bitcoins Money? 3 Conclusions and References Conclusions References Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 11 / 25
  • 12. The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending How to Use Digital Signature “[...] Digital signatures provide part of the solution [...]” [N] Basic information “I, Alice, am giving Bob one bitcoin” Better “I, Alice, am giving + Alice’s digital signature Bob one bitcoin” Even Better “I, Alice, am giving + Alice’s digital signature Bob the bitcoin # 123654” The Best “I, Alice, am giving Bob the bitcoin + Alice’s digital signature # 123654” 20180411T112043Z Who’s printing serial the serial number 123654? A bank certifying that: 1 bitcoin #123654 actually belongs to Alice 2 Alice hasn’t yet spent the bitcoin #123564 hence guaranteeing and authorizing the transaction from Alice to Bob? Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 12 / 25
  • 13. The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending Why Using a Public Ledger “[...] the main benefits are lost if a trusted third party is required to prevent double spending [...]” [N] Idea: everybody is a bank thanks to a public ledger called blockchain. Bob, before accepting a payment from Alice, has to 1 check his own copy of the blockchain 2 broadcast the transaction on the Bitcoin network. When enough users (50? 50%?) will have confirmed (?) the transaction, this will be actually registered on Bob’s account. Two problems remain to be solved: 1 Who’s printing serial numbers on bitcoins? 2 Double-spending cannot be difficult, it must be practically impossible. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 13 / 25
  • 14. The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending The Role of Seignorage “[...] The network timestamps transactions by hashing them into an ongoing chain of hash-based proof-of-work, forming a record that cannot be changed without redoing the proof-of-work [...]” [N] Validating transaction is computationally costly (find the Nonce). Reward (today 12.5 BTC) for the user validating a block. Mining: 1 CPU = 1 vote 1 Check block’s transaction integrity. 2 Find the nonce satisfying a given target (number of leading 0s). 3 Broadcast on Bitcoin block + nonce. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 14 / 25
  • 15. The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending Consensus for the Most Powerful “[...] The longest chain not only serves as a proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU available [...]” [N] Every block points to the previous one (from which then name: blockchain). Forks may occur whenever two blocks are simultaneously validated. Keep track of the forks, but always work on the longest chain. A transaction is confirmed when 5 other blocks are validated after its block on the longest chain. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 15 / 25
  • 16. The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending A Self-Enforcing Mechanism “[...] As long as a majority of CPU power is controlled by nodes that are not cooperating to attack the network, they’ll generate the longest chain and outpace the attackers [...]” [N] Problem of Double-Spending: how to do it? 1 Two transactions TxB and TxC in the same block B? NO. Even if Alice validates B, other network users will not. 2 Transaction TxB in block B1 and transaction TxC in block B2? NO. Even if Alice validates and broadcast the two blocks, only one of the two blocks will be part of the blockchain (i.e., the one reaching the pool of miners with greater computing power). 3 Alice waits for Charlie accepting the transaction, goes back of 6 blocks, forks the blockchain and try to outpace it with her new branch. OK only if Alice (alone) has at least the 51% of computing power of the whole network. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 16 / 25
  • 17. The Bitcoin Protocol Bitcoin and bitcoins Addresses, Transactions, bitcoins and Wallets The transfer of bitcoins from some addresses to some others is enabled by the solution of a puzzle involving the related keys. A wallet is a container of the private keys associated to the input addresses. Figure: A transaction as a double-entry bookkeeping with optional input (https://blockexplorer.com/tx/ 76b95e8fa7d52eff52bafe884468ab726ce284ab3e278f5d1b132feaa5b03e1f). Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 17 / 25
  • 18. The Bitcoin Protocol Bitcoin and bitcoins The result is an online system that does not need trusted third party for transferring a scarce asset Bitcoin is a peer-to-peer protocol enabling transaction in bitcoins. The blockchain is a resilient WORM1 data-structure implementing a distributed ledger, the ledger of transactions. Mining bitcoins: Starting from 2009, 50 BTC are generated and given to those who validate a block. This amount halves every four years (today: 12.5 BTC). This is the only way of creating new bitcoins. In 2140 there will be 21 mln of bitcoins and the total supply of bitcoins will cease to grow. Computing power can either support or destroy Bitcoin, but the self-enforcing mechanism design of the protocol revenues CPU support to the project with seignorage fee. 1Write Once Ready Many Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 18 / 25
  • 19. The Bitcoin Protocol Are bitcoins Money? Value, Coin, Money, Commodities How to asses the value of a“medium of exchange”? Figure: AR Douzi`eme d’´Ecu (21mm, 2.26 g). Paris mint, dated 1643. Formally 967/1000 of silver, 1/12th of ecu, Turkish women in 1660-1670 settled a bid price at twice its face value. See [C, La truffa del secolo (XVII), pp. 51-62]. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 19 / 25
  • 20. The Bitcoin Protocol Are bitcoins Money? What is“Money”? Goals of using money: Medium of exchange Unit of account Way to settle a debt (standard or deferred payment – legal tender) Store of value Cows Silver Coins Diamonds USD ZWL BTC Interchangeability Durability Portability Cognizability “Stability” of Value ? Table: A brief overview of different system of payments. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 20 / 25
  • 21. The Bitcoin Protocol Are bitcoins Money? Are bitcoins money? And if so, which one? Money in history: Commodity Money: finite and chaotic supply of the metal. Difficult assessment of the alloy quality. Representative Money: more controllable supply of the precious metal, easier rebasement. 15 August 1971: end of gold-USD conversion. Fiat Money (see, e.g. ECB monetary aggregates): M1: monetary base (is the sum of currency in circulation and overnight deposits). M2, M3: everything else. Roughly speaking, M1 is a little bit less than 10% of the total2 . What about bitcoins? Two, possibly equivalent, considerations bitcoins might be considered: internet-based M1 with finite, inelastic, deterministic supply. digital gold (see [Am]). 2Author’s personal estimate Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 21 / 25
  • 22. Conclusions and References Outline 1 Mathematical Preliminaries One-way Functions – SHA256 Asymmetric Cryptography Hash Functions and Public-Key Cryptography for Signing Documents 2 The Bitcoin Protocol Re-inventing a P2P Payments Protocol Avoiding Double Spending Bitcoin and bitcoins Are bitcoins Money? 3 Conclusions and References Conclusions References Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 22 / 25
  • 23. Conclusions and References Conclusions Why Bitcoin is a great cultural achievement Solution of the Byzantine Generals Problem: Generals of the Byzantine Army need to coordinate for attacking a city or retreating, but some of them are traitors... Implementation of a resilient transaction system: almost real-time execution (though other systems are better) almost real-time clearing and settlement! Bitcoin protocols underpins the first natively-digital scarce asset: bitcoins are transferable but not duplicable total amount of bitcoins is capped at 21000000 See [Am, e.g. 1] Notarization services (see [Am, e.g. 4]): https://opentimestamps.org/. First cases of smart-contracts (scripting language Turing-incomplete by design). Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 23 / 25
  • 24. Conclusions and References Conclusions Misunderstandings The dark-side of the hype: The blockchain is a data-structure/database with cryptographic steroids. Useful in very special circumstances (mea-culpa). Most of other cryptocurrencies are rarely able to improve some aspects of Bitcoin. Some purpose-limited exceptions: Ethereum Ripple Monero/Zcash Initial Coin Offering: are you sure you understand what you are talking about? Lot of frauds behind the hype: Cryptocurrencies: Last Week Tonight with John Oliver (HBO). Not so true: Bitcoin is anonymous and is good for criminal activities. No trusted third-party is required for using bitcoins. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 24 / 25
  • 26. Conclusions and References References [Am] F. Ametrano. https://speakerdeck.com/nando1970. URLs last retrieved 4 April 2018. 1 Bitcoin as Digital Gold. 1 February 2018. 2 Bitcoin: The Digital Rush. 19 January 2018. 3 Bitcoin, Blockchain, and Distributed Ledger Technology: Hype or Reality? 19 June 2017. 4 Bitcoin and Blockchain Technology: Hayek Money. 12 June 2017. 5 Bitcoin and Blockchain Technology: An Introduction. 27 March 2017. 6 About Bitcoin, Blockchain, and the DLT Chimera. 22 November 2016. 7 Response to ESMA on DLT Applied to Securities Markets. 1 November 2016 (jointly with E. Barucci, S. Marazzina, S. Zanero). 8 ... [An] A. Antonopoulos. Mastering Bitcoin: Programming the Open Blockchain – Second Edition, Second Print. 20 July 2017. URL last retrieved 4 April 2018. [C] C. M. Cipolla. Tre storie extra vaganti. Bologna, Il Mulino, 2011. [N] S. Nakamoto. Bitcoin: A Peer-to-Peer Electronic Cash System. 24 May 2009. URL last retrieved 4 April 2018. [Ni] M. Nielsen. How the Bitcoin protocol actually works. 6 December 2013. URL last retrieved 4 April 2018. [S] B. Schneier. Applied Cryptography: Protocols, Algorithms, and Source Code in C. 2nd ed. New York: Wiley, 1996. Dr. M. L. Bedini (Numerix FE – EMEA) What can Bitcoin teach us? PoliMi, Milano 11/04/2018 25 / 25