Blockchains: Peering Through the Hype Elaine Ou Qcon London - - PowerPoint PPT Presentation

blockchains
SMART_READER_LITE
LIVE PREVIEW

Blockchains: Peering Through the Hype Elaine Ou Qcon London - - PowerPoint PPT Presentation

Blockchains: Peering Through the Hype Elaine Ou Qcon London March 8 2017 Blockchains and Distributed Ledgers Some Blockchain History o Crypto Anarchy o Early Distributed Ledgers Bitcoin Blockchain o Threat Model o What Makes a


slide-1
SLIDE 1

Blockchains:

Peering Through the Hype

Elaine Ou Qcon London March 8 2017

slide-2
SLIDE 2

Blockchains and Distributed Ledgers

  • Some Blockchain History
  • Crypto Anarchy
  • Early Distributed Ledgers
  • Bitcoin Blockchain
  • Threat Model
  • What Makes a Blockchain Secure
  • What is a Bitcoin
  • Programmable Ledgers
  • Smart Contracts
  • Blockchain Use Cases
slide-3
SLIDE 3

Intro to Crypto Anarchy

slide-4
SLIDE 4

Set and Enforce Self-Defined Rules

  • A system that relies on authority is expensive and

inconsistent

  • Trusted third party may not be trustworthy
  • Vending machine vs human vendor
  • Disintermediate financial authority
  • Private money (vs central bank)
  • Peer-to-peer transacQons (vs third-party payment processors)
  • Remove the ability for anyone to seize control
  • DecentralizaQon
  • EncrypQon for privacy, access control
slide-5
SLIDE 5

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.

slide-6
SLIDE 6

Replacing the Role of Government

  • A rule is only as good as its enforceability
  • Things a central authority should do
  • Protect property rights
  • Enforce contractual obligaQons
  • Use technology as a subsQtute for government
  • Maintain secure asset registries using digital signatures
  • Self-enforcing contracts
slide-7
SLIDE 7

Secure Asset Registries with Minimal Trust

BriQsh East India Company, 17th Century

slide-8
SLIDE 8

Distributed Ledgers are Hard

slide-9
SLIDE 9

Replication and Synchronization: Fault-Tolerant Distributed Ledgers

slide-10
SLIDE 10

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

  • All the physical world

problems, plus…

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

news

  • (In the physical world,

phantom ships can’t deliver fake records)

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

prevented edits

slide-11
SLIDE 11

The Blockchain Solution

ProtecQng the Integrity of Data

slide-12
SLIDE 12

How About a Shared Spreadsheet?

slide-13
SLIDE 13

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.

slide-14
SLIDE 14

Bitcoin Blockchain

slide-15
SLIDE 15

Merkle Trees

  • Set of ledger entries
  • 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

slide-16
SLIDE 16

Bitcoin Blockchain

slide-17
SLIDE 17

Censorship-Resistance

  • AWempts at Digital Money
  • DigiCash: Anonymous cash
  • refused to comply with regulators, bankrupt
  • E-Gold: Gold-backed digital money
  • shut down, prosecuted, fined
  • Liberty Reserve: Private currency
  • shut down, founder in prison
  • PayPal: Private currency
  • caved to regulators
  • SoluQon: Decentralize it
slide-18
SLIDE 18

Bitcoin Network

slide-19
SLIDE 19
  • 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

slide-20
SLIDE 20

Public Network Problems

  • Longest blockchain is valid
  • BUT! On the internet, no one knows you’re a sockpuppet
slide-21
SLIDE 21

Proof of Work

  • New blocks must contain proof of work
  • Require parQcipant to complete a computaQonal challenge to signal

honesty

  • Proof
  • Unforgeable: Sacrifice something to produce it
  • Easily verified
  • Useful for:
  • Deterring Denial of Service aWacks
  • Prevent spam
  • Encourage valid blocks
  • Store of value
slide-22
SLIDE 22

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…”

slide-23
SLIDE 23

Work is Expensive (10 mins) Validation is Cheap

slide-24
SLIDE 24
  • Proof of Work randomizes

block submiWer

  • Every block validated by

every node

  • Invalid blocks are dropped
  • Longest chain is valid
slide-25
SLIDE 25

What is a Bitcoin?

  • Each block has a block reward transacQon
  • “Bitcoin Mining”
  • Proof of Work
  • Unforgeable, Easily verified
  • Store of Value (Reusable)
slide-26
SLIDE 26

Programmable Ledgers

Smart Contracts

slide-27
SLIDE 27

Smart Assets on the Blockchain

  • Spreadsheets do more than store numbers – they can

perform calculaQons

  • Blockchain assets can be programmable
  • Bitcoin already has simple funcQons available
  • We are already replicaQng ledgers. Now replicate

computaQons as well

slide-28
SLIDE 28

Bitcoin Script

  • There are no bitcoins. Only transacQon histories.
  • Encumbrance
  • 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

slide-29
SLIDE 29

Bitcoin Script

  • OP_CHECKSIG <public key> <signature>
  • Each Bitcoin address is a public key
  • Owner signs transacQon with private key
  • Is the signature valid for the public key?
  • OP_CHECKMULTISIG OP_3 <public key1> <public

key2> <public key3> OP_2 <signature1> <signature2>

  • Now we need 2 signatures out of the 3 public keys
  • Escrow
slide-30
SLIDE 30

Smart Contracts

  • Self-enforcing agreements that automate the exchange of

value

  • Ethereum
  • Turing-complete smart contracts plakorm
  • Solware applicaQons run on all nodes across network
  • PotenQal applicaQons
  • Gambling
  • Crowdfunding tokens
  • VoQng
  • Decentralized Autonomous OrganizaQon
  • Financial instruments with cash flows
slide-31
SLIDE 31

How Blockchains Will Save Billions of Dollars for Financial Institutions

(just kidding)

slide-32
SLIDE 32
slide-33
SLIDE 33

Derivatives Processing Workflow

slide-34
SLIDE 34

Blockchains for Banks

  • Proof of Work
  • Public Network
slide-35
SLIDE 35

Do you need a blockchain?

slide-36
SLIDE 36

Do you need a blockchain?

slide-37
SLIDE 37

Disintermediation of Authority

  • Track and transfer digital asset ownership
  • Financial instruments
  • Management of idenQty or credenQals
  • DNS
  • ReputaQon
  • Distributed cloud storage market
  • Timestamps
  • Future proof of current informaQon
  • (Like anagrams for scienQfic discoveries)
slide-38
SLIDE 38

Information Management

  • Electronic Data Interchange
  • Access control for medical records
  • Shared informaQon for supply chain management
  • Provenance of goods
  • Track farm to table
  • Many more possibiliQes
  • The technology is sQll young!
slide-39
SLIDE 39

Conclusion

  • Blockchains can provide security from:
  • Counterparty, who might try to cheat you
  • Government, which might try to stop you
  • Anyone else, who might be coerced by the first two
  • Technology can create a way for people to set and

enforce their own rules

slide-40
SLIDE 40

Thank you.

Elaine Ou elaine@globalfinancialaccess.com