peering through the hype...set and enforce self-defined rules • a system that relies on authority...

40
Blockchains: Peering Through the Hype Elaine Ou Qcon London March 8 2017

Upload: others

Post on 10-Feb-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Blockchains: Peering Through

the HypeElaine Ou

Qcon London March 8 2017

Page 2: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Blockchains and Distributed Ledgers•  Some Blockchain History

o  Crypto Anarchy o  Early Distributed Ledgers

•  Bitcoin Blockchain o  Threat Model o  What Makes a Blockchain Secure o  What is a Bitcoin

•  Programmable Ledgers o  Smart Contracts

•  Blockchain Use Cases

Page 3: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Intro to Crypto Anarchy

Page 4: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Set and Enforce Self-Defined Rules•  A system that relies on authority is expensive and

inconsistent o  Trusted third party may not be trustworthy o  Vending machine vs human vendor

•  Disintermediate financial authority o  Private money (vs central bank) o  Peer-to-peer transacQons (vs third-party payment processors)

•  Remove the ability for anyone to seize control o  DecentralizaQon o  EncrypQon for privacy, access control

Page 5: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Threat Model•  Counterparty, who might try to cheat you •  Government, which might try to stop you •  Anyone else, who might be coerced by the first two •  A liWle trust goes a long way. The less you use, the

further you’ll go.

Page 6: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Replacing the Role of Government•  A rule is only as good as its enforceability •  Things a central authority should do

o  Protect property rights o  Enforce contractual obligaQons

•  Use technology as a subsQtute for government o  Maintain secure asset registries using digital signatures o  Self-enforcing contracts

Page 7: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Secure Asset Registries with Minimal Trust

BriQsh East India Company, 17th Century

Page 8: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Distributed Ledgers are Hard

Page 9: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Replication and Synchronization: Fault-Tolerant Distributed Ledgers

Page 10: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

How do we build secure distributed ledgers in the digital world?

•  All the physical world problems, plus…

•  InformaQon is cheap to copy o  Fake news can flood out real

news o  (In the physical world,

phantom ships can’t deliver fake records)

•  InformaQon is easy to edit o  Forged records o  Double-entry bookkeeping

prevented edits

Page 11: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

The Blockchain SolutionProtecQng the Integrity of Data

Page 12: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

How About a Shared Spreadsheet?

Page 13: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Threat Model•  Counterparty, who might try to cheat you •  Government, which might try to stop you •  Anyone else, who might be coerced by the first two •  If none of those are part of your threat model, use a

shared spreadsheet.

Page 14: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Bitcoin Blockchain

Page 15: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Merkle Trees

•  Set of ledger entries o  TransacQon data: eg, Alice

pays Bob

•  Non-leaf nodes labeled with hash of child nodes

•  Hash trees are used to verify that data are unaltered

Page 16: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Bitcoin Blockchain

Page 17: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Censorship-Resistance•  AWempts at Digital Money

o  DigiCash: Anonymous cash •  refused to comply with regulators, bankrupt

o  E-Gold: Gold-backed digital money •  shut down, prosecuted, fined

o  Liberty Reserve: Private currency •  shut down, founder in prison

o  PayPal: Private currency •  caved to regulators

•  SoluQon: Decentralize it

Page 18: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Bitcoin Network

Page 19: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

•  Nodes submit new blocks •  Nodes check every block

received, drop if invalid •  Longest blockchain is valid,

but a bad node can aWempt to create a longer chain

Page 20: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Public Network Problems•  Longest blockchain is valid •  BUT! On the internet, no one knows you’re a sockpuppet

Page 21: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Proof of Work•  New blocks must contain proof of work

o  Require parQcipant to complete a computaQonal challenge to signal honesty

•  Proof o  Unforgeable: Sacrifice something to produce it o  Easily verified

•  Useful for: o  Deterring Denial of Service aWacks o  Prevent spam o  Encourage valid blocks o  Store of value

Page 22: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Proof of Work•  Cryptographic hashes are hard to invert, easy to verify •  Hashcash: Use brute force to find a hash result with a

certain number of leading 0s SHA256(SHA256(block_header, rand)) = “0000…”

Page 23: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Work is Expensive (10 mins) Validation is Cheap

Page 24: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

•  Proof of Work randomizes block submiWer

•  Every block validated by every node

•  Invalid blocks are dropped •  Longest chain is valid

Page 25: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

What is a Bitcoin?•  Each block has a block reward transacQon

o  “Bitcoin Mining”

•  Proof of Work o  Unforgeable, Easily verified o  Store of Value (Reusable)

Page 26: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Programmable LedgersSmart Contracts

Page 27: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Smart Assets on the Blockchain•  Spreadsheets do more than store numbers – they can

perform calculaQons •  Blockchain assets can be programmable

o  Bitcoin already has simple funcQons available •  We are already replicaQng ledgers. Now replicate

computaQons as well

Page 28: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Bitcoin Script•  There are no bitcoins. Only transacQon histories. •  Encumbrance

o  InstrucQons recorded with each transacQon that describe how to spend the output

Debit (input) Credit (output) Coinbase 100 Alice 100 Alice 100 Bob 100

Bob 100 Elaine!!! 100

Page 29: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Bitcoin Script•  OP_CHECKSIG <public key> <signature>

o  Each Bitcoin address is a public key o  Owner signs transacQon with private key o  Is the signature valid for the public key?

•  OP_CHECKMULTISIG OP_3 <public key1> <public key2> <public key3> OP_2 <signature1> <signature2> o  Now we need 2 signatures out of the 3 public keys o  Escrow

Page 30: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Smart Contracts•  Self-enforcing agreements that automate the exchange of

value •  Ethereum

o  Turing-complete smart contracts plakorm o  Solware applicaQons run on all nodes across network

•  PotenQal applicaQons o  Gambling o  Crowdfunding tokens o  VoQng o  Decentralized Autonomous OrganizaQon o  Financial instruments with cash flows

Page 31: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

How Blockchains Will Save Billions of Dollars for Financial Institutions

(just kidding)

Page 32: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy
Page 33: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Derivatives Processing Workflow

Page 34: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Blockchains for Banks•  Proof of Work •  Public Network

Page 35: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Do you need a blockchain?

Page 36: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Do you need a blockchain?

Page 37: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Disintermediation of Authority•  Track and transfer digital asset ownership •  Financial instruments •  Management of idenQty or credenQals

o  DNS o  ReputaQon

•  Distributed cloud storage market •  Timestamps

o  Future proof of current informaQon o  (Like anagrams for scienQfic discoveries)

Page 38: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Information Management•  Electronic Data Interchange

o  Access control for medical records o  Shared informaQon for supply chain management

•  Provenance of goods o  Track farm to table

•  Many more possibiliQes o  The technology is sQll young!

Page 39: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Conclusion•  Blockchains can provide security from:

o  Counterparty, who might try to cheat you o  Government, which might try to stop you o  Anyone else, who might be coerced by the first two

•  Technology can create a way for people to set and enforce their own rules

Page 40: Peering Through the Hype...Set and Enforce Self-Defined Rules • A system that relies on authority is expensive and inconsistent o Trusted third party may not be trustworthy

Thank you.

Elaine Ou [email protected]