the blockchain identity - fuqua school of businesscharvey/teaching/697_2019/blockch… · what can...

90
Blockchain Technology: Cutting Through the Hype Campbell R. Harvey Duke University and NBER

Upload: others

Post on 24-May-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Blockchain Technology: Cutting Through the Hype

Campbell R. HarveyDuke University and NBER

Campbell R. Harvey 2019 2

Facebook digital currency initiative #1.

Campbell R. Harvey 2019 3

Campbell R. Harvey 2019 4

Facebook digital currency initiative #2.

Campbell R. Harvey 2019 5

Campbell R. Harvey 2019 6

Maybe three times lucky?

Campbell R. Harvey 2019 7

This one is blockchain-based and interacts with WhatsApp, Messenger and Instagram (with potentially 2b users) • Linked to a basket of currencies

Campbell R. Harvey 2019 8

The Education of Jamie Dimon

Campbell R. Harvey 2019 9

The Education of Jamie Dimon

Campbell R. Harvey 2019 10

The Education of Jamie Dimon

Campbell R. Harvey 2019 11

Campbell R. Harvey 2019 12

The Education of Jamie Dimon

Campbell R. Harvey 2019 13

Blockchain is a technology

There is a lot of hype• Prices of cryptocurrencies rose

sharply in 2017 and plunged in 2018

• However, we have passed the peak of the hype cycle

14

Blockchain is a technology

There is no “the” blockchain… blockchain is a technology. • Concept invented by Haber and

Stornetta (1991) in the context of time-stamping digital documents.

• Also, blockchain is not bitcoin. Bitcoin uses a blockchain technology.

Campbell R. Harvey 2019 15

Blockchain is a ledger

A very special ledger…• Quickly and easily accessed and

shared by many -- distributed

Campbell R. Harvey 2019 16

Blockchain is a ledger

A very special ledger…• Quickly and easily accessed and

shared by many -- distributed

Campbell R. Harvey 2019 17

Blockchain is a ledger

A very special ledger…• Quickly and easily accessed and

shared by many -- distributed• Various levels of transparency

depending on application• Immutable (you can only add to it

– you cannot alter history)

Campbell R. Harvey 2019 18

Blockchain is a ledger

A very special ledger…• Quickly and easily accessed and

shared by many -- distributed• Various levels of transparency

depending on application• Immutable (you can only add to it

– you cannot alter history)• Cryptographically secured

Campbell R. Harvey 2019 19

What can blockchain technology do?

Solves many problems• Verification of ownership (quickly check the immutable history recorded on

a blockchain to see if someone owns something)• Efficient exchange of ownership (direct transactions without middle person,

everybody treated the same whether customer, retailer or banker).

Campbell R. Harvey 2019 20

Imagine …

Buying and selling stock with t0 settlement• Today is t+2 not much

different than the 1920s• All stock transactions would

reside in a secure ledger devoted to a company’s equity

Campbell R. Harvey 2019 21

Imagine …

Closing on a property with• No title insurance• Minimal legal• No title search• Simply consult a secure ledger

that establishes the person you are buying the house from actually owns it

Campbell R. Harvey 2019 22

Imagine …

Instantly transferring funds between accounts• Transfers are not immediate

today – even within your own bank!

• Transfers are secure and inexpensive

Campbell R. Harvey 2019 23

Imagine …

The end of counterfeiting• Massive number of counterfeit bills

in circulation

Campbell R. Harvey 2019 24

Imagine …

Starting your car with your thumb print or your face• A secure ledger is checked to verify that you own the car

Campbell R. Harvey 2019 26

Prime targets of disruption

Any situation with a thick layer of middle people• Blockchain is fundamentally a P2P technology.

Campbell R. Harvey 2019 27

Types of blockchains

Public blockchains• Trustless. Original example bitcoin blockchain. Open source code.• Ethereum blockchain allows for contracting and is the main choice for

most corporate applications. Contracts can be conditional, if then statements. Bitcoin blockchain cannot do this.

• Variety of mechanisms to ensure security (Proof of Work, Proof of Stake, Proof of Authority, Zero Knowledge Proof, etc.)

Campbell R. Harvey 2019 28

Types of blockchains

Private blockchains• Trust required. • Need to determine if the cost of trustlessness is worth it. Most

applications today involve trust. Combining blockchain technology with trust allows for much more efficient transactions (think of payments)

Campbell R. Harvey 2019 29

Original blockchain

Let’s start with the bitcoin blockchain:• A distributed, secure, transparent, public ledger that establishes

ownership and allows for the efficient exchange of ownership• Available to anyone for download on the Internet (decentralized)• Does not depend on trust (controlled by no one – monitored by

everyone)• Backed by strong cryptography secured by the world’s most powerful

network of computers• Miners provide security and are rewarded with new cryptocurrency

Campbell R. Harvey 2019 30

Original blockchain

How powerful?• Currently 80,704,290 petaFLOPS• #1 supercomputer is IBM Summit at 215

PetaFLOPS (as of June 9, 2018) double precision; 3,300 PetaFLOPs without floating point

• Blockchain uses specialized hardware and floating point operations are not needed. Cost of 50% of the network power is about $3 billion

http://bitcoincharts.com/bitcoin/ http://www.top500.org/ https://www.top500.org/statistics/perfdevel/Campbell R. Harvey 2019

mFLOP=1 million operations per second31

Hashing 101

A simple hashSuppose I send an email to Erika. However, she needs to verify that what I sent her is exactly what he received. • Email contains a single word “hello”.• Encode the word (a=1, b=2, …, z=26), so 8 5 12 12 15.• Multiply the numbers to get 86,400.• I post the hash on my website. After Erika gets my email, she does the

same hash and checks my website. • If the message was corrupted the hash will not match, for example,

“hallo”= 8x1x12x12x15=17,280 which does not match the original.• This hash is too simple (e.g. hello=ohell) and causes a “collision”

Campbell R. Harvey 2019 32

Hashing 101

SHA-256 (Secure Hashing Algorithm)https://emn178.github.io/online-tools/sha256.html

Hashing is a one-way function. Hashing is not “encryption” because you can’t decrypt.For example, passwords are routinely stored on websites in hashed form.The output of a SHA-256 is 256 bits no matter how big the inputLet’s do some examples:

Campbell R. Harvey 2019 33

Hashing 101

SHA-256 (Secure Hashing Algorithm)https://emn178.github.io/online-tools/sha256.html

Let’s hash the phrase: “Hello, world!” with a special number appended. No spaces. Do it three times for three different strings.Hello, world!0 Hello, world!1 Hello, world!4250

Campbell R. Harvey 2019 34

Hashing 101

SHA-256 hashes widely used for email and file transfer• Returning to the email example, I want to send a file to Erika • I SHA-256 the file• I send Erika the original file• Erika does her own SHA-256 hash of the file• Erika checks to see if her hash of the file matches the hash that I have on my

website• If there is any difference, the file has been corrupted• This all happens automatically and is called “checksum”

Campbell R. Harvey 2019 37

How does the bitcoin blockchain work?

Ledger broken up into 10 minute “blocks”● Every block contains a hashed reference to the block before it so you can

trace every transaction all the way back to 2009

Campbell R. Harvey 2019 40

How does the bitcoin blockchain work?

Example. In block 1000, I buy a car (for 17 BTC) from John

Campbell R. Harvey 2019 41

How does the bitcoin blockchain work?

Suppose I edit the block on my computer – to give me 17 BTC!I then broadcast to the network

Campbell R. Harvey 2019Nefarious action 42

How does the bitcoin blockchain work?

Even making that small change results in a very different block hash. It no longer matches what is stored in block 1001.

Campbell R. Harvey 2019 43

How does the bitcoin blockchain work?

Blockchain clients automatically compute the hash themselves - if no match, they reject the block - Check other peers in the network for correct block

Campbell R. Harvey 2019 44

How does the bitcoin blockchain work?

But there is more to it! Here is where the miners come in.• Miners group the current transactions together and take a hash of the

transactions plus a “magic number” – called a “nonce”.

Campbell R. Harvey 2019 45

How does the bitcoin blockchain work?

But there is more to it! Here is where the miners come in.• Miners try different nonces to get a special hash that has a certain number

of leading zeros• More leading zeroes means fewer solutions – and more time to solve the

problem• Think of shuffling 5 decks of cards. You goal is to turn over 5 aces of spades

in the first five cards! That will be a lot of shuffling.

Campbell R. Harvey 2019 46

Cryptocurrencies are deeper than bitcoin

1. First Gen/Gold 2.0: Bitcoin (BTC), Litecoin (LTC)

Campbell R. Harvey 2019 50

Cryptocurrencies are deeper than bitcoin

1. First Gen/Gold 2.0: Bitcoin (BTC), Litecoin (LTC)2. Distributed Computation Tokens: Ethereum (ETH), Tezos (XTZ), EOS, and DFinity

Campbell R. Harvey 2019 51

Cryptocurrencies are deeper than bitcoin

1. First Gen/Gold 2.0: Bitcoin (BTC), Litecoin (LTC)2. Distributed Computation Tokens: Ethereum (ETH), Tezos (XTZ), EOS, and DFinity3. Utility Tokens: Programmable blockchain assets: Storj, Golem (GNT), Sia (SC), FileCoin

Campbell R. Harvey 2019 52

Cryptocurrencies are deeper than bitcoin

4. Security Tokens: Represent stocks, bonds, other assets, ASX initiative• STO=Security Token Offering; ETO=Equity Token Offering

https://medium.com/@nisc/list-of-security-token-offerings-stos-32b75e079884

Campbell R. Harvey 2019 53

Cryptocurrencies are deeper than bitcoin

4. Security Tokens: Represent stocks, bonds, other assets, ASX initiative• STO=Security Token Offering; ETO=Equity Token Offering

5. Fungible Tokens: ERC-20, Decentraland (MANA), REP

Campbell R. Harvey 2019 54

Cryptocurrencies are deeper than bitcoin

4. Security Tokens: Represent stocks, bonds, other assets, ASX initiative• STO=Security Token Offering; ETO=Equity Token Offering

5. Fungible Tokens: ERC-20, Decentraland (MANA), REP6. Non-fungible Tokens: ERC-721, Dharma debt agreements, Decentraland (LAND), Cryptokitties

Campbell R. Harvey 2019 55

Cryptocurrencies are deeper than bitcoin

7. Stablecoins:• Fiat Colleralized: USDT, TUSD, USDC, PAX, JPMCoin, FaceCoin, • National Cryptofiat: Fedcoin, Petro, Eurocoin, CADCoin,…• Natural Asset Collateralized: Digix Gold (DGX), Tiberius Coin (TCX), Swiss Rea

Coin (SRC)• Non-Collateralized: Basecoin

Campbell R. Harvey 2019 56

Cryptocurrencies are deeper than bitcoin

US dollar collateralized coins the modern version of “Eurodollars”• Eurodollars are U.S. dollar bank deposits held outside the US• Started out in Europe (hence the name) but can be any country• Not subject to Federal Reserve regulations• Massive daily market volume• Is the future - Eurotokens?

Campbell R. Harvey 2019 57

Cryptocurrency vision

• Secure, efficient, immutable, and indisputable transactions• Removal of many middle people• A world of near zero transactions costs creates new assets• Trust in the network rather than the Central Bank - but Central

Banks will likely introduce their own cryptocurrencies• Tokenization of almost any asset• Financial inclusion for the unbanked

Campbell R. Harvey 2019 58

Cryptocurrency risks

• Technology is complicated to understand• The wild west of ICOs and bandwagon investors• Extreme volatility• Regulatory risk• The privacy debate

Campbell R. Harvey 2019 59

Machine to Machine PaymentsThree stages of the Internet• Initially, a way to gather information (via search or just visiting a website).• Next, social media where new communities were enabled by the Internet.• Over the next few years, the third wave will be machine to machine

payments enabled by the Internet.

Campbell R. Harvey 2019 63

Machine to Machine PaymentsCurrent payments on the Internet• Today, it is possible to pay for things on the Internet. However, the

technology is clunky. APIs allow you to enter credit card or bank information.

• Current payments are only feasible if they are of sufficient size.• Merchants face a 3% credit card fee.• You need to have a credit card or bank account to play in this space.

Campbell R. Harvey 2019 64

Machine to Machine PaymentsWith today’s technology, there are severe constraints• Consumers pay for things but they cannot be paid (exception Amazon Turk).• It is infeasible to think about forcing customers to pay, say 5 cents to visit

your webpage and it is equally infeasible to think about paying someone to visit your website or advertisement.

Campbell R. Harvey 2019 65

Machine to Machine PaymentsIt is generally not known that machine to machine payments are possible in HTTP – they just aren’t used.• Look up HTTP 402 code (you all know the frequent 404 error – website

not found).

Campbell R. Harvey 2019https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

402 Payment RequiredReserved for future use. The original intention was that this code

might be used as part of some form of digital cash or micropayment scheme, but that has not happened, and this code is not usually used.

66

Machine to Machine PaymentsTasks and demographic information• Using HTTP combined with a cryptocurrency wallet, the payments are

instant. Further, you do not need a traditional bank account.• Think of getting into an Uber and completing a few surveys during your

ride. For each survey, you get $2.50. Enough to pay for the Uber.• Some of these tasks are explicitly learning about your preferences. That

is, you are offering up your demographic profile.

Campbell R. Harvey 2019 67

Machine to Machine PaymentsA new way to think about email• At the top of your inbox are emails from your work, friends and family.• However, companies pay you to accept email from them.• The highest paying company will have the highest placement in your

inbox.• If you open the email, you are also paid. If you click on a link in the email,

you may be paid more.

Campbell R. Harvey 2019 68

Machine to Machine PaymentsEmail is no longer free• Everybody pays to send an email. • If I am sending to a friend, the fee is very low, say 1/10th of a cent.• Companies will pay far more if my demographic profile is attractive to the

company.• As a side benefit, spam is eliminated. Over half of all Internet email traffic

is spam today.• In terms of the economics, it is never efficient to price something at zero.

Campbell R. Harvey 2019 69

Machine to Machine PaymentsThe web is no longer free• In this world, almost every site you visit you pay a small fee.• The fee is so small that it does not deter even the poorest user in Africa.• While small, this fee puts the entities that engage in DDoS attacks out of

business – freeing up about one third of the current bandwidth.

Campbell R. Harvey 2019 70

M2M will disrupt …

Google and Facebook account for 85% of online advertising Models like Google AdWords are not sustainable in the M2M world

• Google has $90b in advertising revenue in 2016.

Micropayments will disrupt:• Cellular service, audio/video/ pay-for-view,

computing, storage, share economy, etc.

Campbell R. Harvey 2019https://searchenginewatch.com/2016/05/31/the-most-expensive-100-google-adwords-keywords-in-the-us/

71

Blockchain applications

Voting• Each citizen registered to vote is issued a voting token • The token cannot be sold and it can be used only once• It expires after the election• Voter needs to provide proof of identity (thumb print)

to vote• Blockchain is checked to see if that voter has the

token to “spend” • Your vote can be anonymous even though you provide

proof of identity with “zero knowledge proof”

Campbell R. Harvey 2019https://crypto.stanford.edu/pbc/notes/crypto/voting.html

72

Blockchain applications

Internet of Things• Only you can control your thermostat• Provide proof of identity (blockchain

is checked) and IoT device works for you

• Strong protection against hacking because the hacker would have to rewrite the entire blockchain and take over the majority of computing

Campbell R. Harvey 2019 73

Blockchain applications

Internet of Things• Only you can control your car• Provide proof of identity (blockchain

is checked) and IoT device works for you

• Driverless cars are a “no go” unless they are hack proof.

Campbell R. Harvey 2019 74

Blockchain applications

Prescriptions• Widespread fraud• Blank scripts are stolen from doctors’ offices

or forged• Some doctors abuse the system• Token issued to patient: it cannot be resold

and has an expiration• Patient presents token to pharamacist and

blockchain is checked to make sure patient owns the token (and has not already spent it)

Campbell R. Harvey 2019 75

Blockchain applications

Medical records• You enter a health facility (not your home facility)• You provide proof of identity verified with a blockchain• Your “private key” unlocks encrypted data related only your health records• Also provides a much stronger privacy protection

• Instead of a medical database being encrypted with one key (which might be lost or discovered), each patient’s record has its own key. Hence, to compromise the database you would need to guess potentially millions of keys

Campbell R. Harvey 2019 76

Blockchain applications

Real time financial statements• New role for Deloitte, E&Y, PwC, etc. in validating

company ledger transactions in real time• API would allow selected transparency (same categories as in the usual

financial statements) in real time• The end of quarterly reporting – and potentially some of the incentives that

are created to engage in short-termism

Campbell R. Harvey 2019 77

Blockchain applications

Digital Twins• Example: Jet engine• Every part, every replacement part,

every electronic sensor reading for the complete life of engine in a blockchain-based construct

• Easily monitored and easily transferred if the plane is sold

Campbell R. Harvey 2019 78

Blockchain applications

Fedcoin• 79% of the value of US currency is in

$100 bills• Large denomination bills method of

choice for criminal activity

Campbell R. Harvey 2019 79

Blockchain applications

Fedcoin• 79% of the value of US currency is in $100 bills• Large denomination bills method of choice for

criminal activity• Fedcoin is a digital USD currency where the

complete history of all transactions is visible to the Fed via a Fed blockchain

• Instant monetary policy, see Rogoff (2016)

Campbell R. Harvey 2019

El Chapo’s cash stash

https://www.federalreserve.gov/paymentsystems/coin_currcircvalue.htm 80

Blockchain applications

Central banks

Campbell R. Harvey 2019 82

ConclusionsWe are beyond the hype• Best way to combat hype is with knowledge of both the opportunities of

blockchain technology as well as the limitations• We are on a steep vector for applications (Walmart, Maersk, etc.)

Campbell R. Harvey 2019 83

April 25, 2019

Campbell R. Harvey 2019 84

April 25, 2019

Campbell R. Harvey 2019 85

Online marketplace services, namely, providing a marketplace for buyers and sellers of digital currency assets; Operating an online marketplace featuring footwear and clothing; on-line retail store services.

Campbell R. Harvey 2019 86

Who is Next?

87

Who is Next?

Resources

Campbell R. Harvey, Innovation and Cryptoventures

Campbell R. Harvey, Cryptofinance

W: http://www.duke.edu/~charvey

M: [email protected]

T: @camharvey

PGP: E004 4F24 1FBC 6A4A CF31 D520 0F43 AE4D D2B8 4EF4

89

April 10, 2019 Duke MBA Blockchain Club

Blockchain landscape

90Campbell R. Harvey 2019

Key Takeaways• There is no one blockchain – it is a technology.• There are different methods of consensus – energy intensive mining is

not necessary.• Cryptocurrencies are but one application. Most blockchain applications

don’t include cryptocurrencies• Technology has two fundamental implications:

• Unprecedented security – information is set in stone and unable to be altered by a nefarious actor or a government

• Effective end to transactions costs meaning near instant, cheap, secure microtransactions and exchange of ownership. Dramatic implications for new types of assets and substantial cost savings.

Campbell R. Harvey 2019 91

Campbell R. Harvey 2019 92

Blockchain business categories*

Transactions & Payment Services:• Startups whose primary use cases involve buying, selling, or storing

cryptocurrencies without a financial intermediary. The term cryptocurrency refers to a digital asset which functions as a medium of exchange on a distributed ledger. Smart contracts are programmable, transparent transaction contracts which self-execute upon the fulfillment of its terms of agreement. Wallets are software programs which interact with various blockchains to let users store, send, and receive crypto-assets and monitor their holdings. Some wallets extend services internationally and specialize in low-fee cross-border remittances. Merchant services enable vendors or organizations to participate in crypto-transactions. Finally, micropayment startups offer payments for metered content in small denominations. Campbell R. Harvey 2019

*Source: PitchBook93

Blockchain business categories*

Cryptocurrency Exchanges & Trading:• Crypto-exchanges are platforms for exchanging cryptocurrencies into other

cryptocurrencies, fiat currencies, or vice versa. Peer-to-peer marketplaces enable two parties to directly exchange goods and services without an intermediary, while peer-to-peer lending platforms enable peers to extend and receive credit/loans through a blockchain. This segment includes crypto-investment companies who invest in cryptocurrencies with the intent to generate a return via value appreciation, as well as tools used to manage crypto-investments. Accordingly, startups providing clearing and settlement blockchain platforms for crypto-trading, forex and crypto-derivative markets are also included. Prediction markets involve speculation trading based on forecasts of economic and political events. Finally, fundraising platforms allow startups to complete blockchain-based fundraising and help prospective investors find such startups.

Campbell R. Harvey 2019*Source: PitchBook

94

Blockchain business categories*

Identity, Authentication, & Security:• An inherent characteristic of a blockchain is the immutability of transaction

records. Startups here use digital ledger software to verify the authenticity of data, as well as assets or documents, using blockchain identifiers to represent and/or authenticate tangible assets. Additionally, these startups leverage identity verification methods to track the cryptographic identity of an individual, entity, device, item, etc. Although blockchains themselves are secure by nature, blockchain-based applications are still vulnerable to cyber-attack. Startups in the security category create secure foundations for transactions, data storage, and network communication.

Campbell R. Harvey 2019*Source: PitchBook

95

Blockchain business categories*

Enterprise Blockchain Solutions:• Startups in this category provide enterprise-level blockchain

solutions to entities operating in sectors such as financial services, healthcare, insurance, and supply chain. This includes the development of industry-specific software as well as subscription leasing of proprietary blockchain platforms.

Campbell R. Harvey 2019*Source: PitchBook

96

Blockchain business categories*

Social, Games, & Gambling:• In this category, startups leverage decentralized networks to enable

social and networking platforms used for recruiting, classifieds, dating, and loyalty programs, among other use cases. One of the primary benefits such companies provide is the ability to share data and content without allowing a centralized third-party to assume any level of ownership of such content. Blockchain games include applications and tournament gaming platforms where users can compete for prize pools. Gambling startups allow users to place bets from anywhere around the world via blockchain peer-to-peer networks. Campbell R. Harvey 2019

*Source: PitchBook97

Blockchain business categories*

Ecosystem:• This category includes startups furthering blockchain technology via

underlying infrastructure improvements and software development tools. The issues such companies address include those related to scalability, interoperability and governance, among others. While some of these companies could also be listed under “Enterprise Blockchain Solutions,” they are included here for the contribution of their open-source technology to the ecosystem. Mining companies provide products and services which assist in the computational process of solving cryptographic problems to earn cryptocurrency units. Data storage and hardware companies cater to the operational necessities of blockchain services.

Campbell R. Harvey 2019*Source: PitchBook

98

Blockchain applications

2018 Duke’s Innovation and Cryptoventures course: 231 students• Medical records/hospital transfers• Ticketing/Public transportation• Coffee supply chain/Manuka honey• Employment verification• New global entry system• Scientific data for research• Refugee ID• Art and luxury goods registry• Islamic finance• Vaccinations• Workplace harrassment• Solar power trading• STI certification Campbell R. Harvey 2019 99

Blockchain applications

2017 Duke’s Innovation and Cryptoventures course: 75 students• Entertainment and sports ticketing• Government benefit programs• Humanitarian aid• Identity• Single password for all accounts• Educational and test score records• Agricultural supply chain in India• Aircraft leasing• Digital twins for large medical devices like CT and MRI• Smart guns

Campbell R. Harvey 2019 100

ConclusionsBlockchain will first disrupt financial services• Still early going but change will happen quickly• Low hanging fruit in financial applications• Next applications based on other types of property like real estate, digital media,…• Blockchain may be crucial to IoT applications that are at risk from hacking In the

short-term, I see the growth of a diverse set of blockchain types• Bitcoin blockchain is the strongest – but many applications do not require

censorship resistance; sidechains offer interesting opportunities• Alternative blockchains such as the one proposed by Ethereum allow for simple

contracts to be embedded in the blockchain and offer great promise• Blockchain not going away

Campbell R. Harvey 2019 101

More information

Campbell R. Harvey 2019

Duke Blockchain Lab https://DukeBlockchainLab.com

102