Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Distributed Ledger Technology: Beyond the Block...

Distributed Ledger Technology: Beyond the Blockchain Hype

Talk given at Darwin College Science Seminar. Covers the science behind distributed ledgers, among other things.

KC Sivaramakrishnan

November 23, 2017
Tweet

More Decks by KC Sivaramakrishnan

Other Decks in Technology

Transcript

  1. In this talk… • Basics of blockchain: the technology that

    underlies bitcoin • Other uses of distributed ledger technology • My research into decentralised database technology
  2. Cryptocurrencies • Digital currencies are mediums of exchange that are

    created and stored in a virtual format ★ Not backed by Government (Ponzi scheme?)
  3. Cryptocurrencies • Digital currencies are mediums of exchange that are

    created and stored in a virtual format ★ Not backed by Government (Ponzi scheme?) • No centralised authoritative ledger — Distributed Ledger/Blockchain ★ Everyone collaborates to everyone’s benefit
  4. Cryptocurrencies • Digital currencies are mediums of exchange that are

    created and stored in a virtual format ★ Not backed by Government (Ponzi scheme?) • No centralised authoritative ledger — Distributed Ledger/Blockchain ★ Everyone collaborates to everyone’s benefit • Very nice properties ★ Transparency: all transactions are public ★ Anonymity: owners of accounts remain anonymous ★ Integrity: No one can tamper with the ledger without leaving evidence
  5. Hash Functions "A cryptographic hash function is a hash function

    which is considered practically impossible to invert, that is, to recreate the input data from its hash value alone.
  6. Distributed Ledger T0 Head B0 T1 Hash (B0) T2 Hash

    (B1) T3 Hash (B2) T4 Hash (B3) B1 B2 B3 B4
  7. Transactions A:100 B:100 C:100 Head B0 A->B:50 A->D:30 Hash (B0)

    T2 Hash (B1) T3 Hash (B2) T4 Hash (B3) B1 B2 B3 B4
  8. Transactions A:100 B:100 C:100 Head B0 A->B:50 A->D:30 Hash (B0)

    T2 Hash (B1) T3 Hash (B2) T4 Hash (B3) B1 B2 B3 B4 A->B:10 Hash (B4)
  9. Transactions A:100 B:100 C:100 Head B0 A->B:50 A->D:30 Hash (B0)

    T2 Hash (B1) T3 Hash (B2) T4 Hash (B3) B1 B2 B3 B4 A->B:10 Hash (B4) Network
  10. Transactions A:100 B:100 C:100 Head B0 A->B:50 A->D:30 Hash (B0)

    T2 Hash (B1) T3 Hash (B2) T4 Hash (B3) B1 B2 B3 B4 A->B:10 Hash (B4) Network
  11. Transactions A:100 B:100 C:100 Head B0 A->B:50 A->D:30 Hash (B0)

    T2 Hash (B1) T3 Hash (B2) T4 Hash (B3) B1 B2 B3 B4 A->B:10 Hash (B4) Network
  12. Forks A:100 B:100 C:100 B0 A->B:50 A->D:30 Hash (B0) T2

    Hash (B1) T3 Hash (B2) T4 Hash (B3) B1 B2 B3 B4 Network T5 Hash (B2) T6 Hash (B5) B5 B6
  13. Consensus: who extends the chain? • Single authoritative leader? ★

    Defeats decentrality ★ Malicious? • Make all the nodes “agree” on the authoritative fork ★ Proof-of-work vs proof-of-stake to minimise forks ★ Longest fork is the authoritative one
  14. Proof-of-work is wasteful! • All for what? ★ Bitcoin ~=

    7 tx/s, >10 minutes to confirm the transaction ★ Visa ~= 125000 tx/s, confirmation time of few seconds
  15. A cunning interlock • Bitcoin is a cunning crafted system

    that combines 40 years of academic research! ★ Distributed consensus protocols ★ Cryptographic hashing ★ Peer-to-peer anonymous digital signatures • But we can recombine these concepts in many other interesting ways with different constraints
  16. Blockchain Apps • Smart contracts — code instead of transactions

    ★ Decentralized autonomous organizations • Filecoin — distributed archival storage ★ Distributed Dropbox ★ Earn filecoin for storing other’s files
  17. Blockchain Apps • Smart contracts — code instead of transactions

    ★ Decentralized autonomous organizations • Filecoin — distributed archival storage ★ Distributed Dropbox ★ Earn filecoin for storing other’s files • Land registry ★ Sweden, Honduras, UK??
  18. Blockchain Apps • IPFS — Interplanetary File System ★ A

    way to store and share files ★ decentralized www
  19. Blockchain Apps • IPFS — Interplanetary File System ★ A

    way to store and share files ★ decentralized www • Catalan Referendum ★ Declared as illegal by Spanish Govt ✦ All websites carrying info blocked. ISPs raided. ★ Where to vote? ★ Information hosted on IPFS!
  20. My research: Ignore consensus? • Distributed version control system: Git,

    Mercurial, Darcs ★ Contents of blocks is files, directory structure, etc. ★ Concurrent modifications without synchronisation! ★ Tamper evident file system ★ Provenance Merge
  21. Merge This Seminar is held in 1 Newnham Terrace Today

    is Friday This Seminar is held in 1 Newnham Terrace Today is Thursday Alice
  22. Merge This Seminar is held in 1 Newnham Terrace Today

    is Friday This Seminar is held in 1 Newnham Terrace Today is Thursday Alice This Seminar is held in Richard King room Today is Friday Bob
  23. Merge This Seminar is held in 1 Newnham Terrace Today

    is Friday This Seminar is held in 1 Newnham Terrace Today is Thursday Alice This Seminar is held in Richard King room Today is Friday Bob This Seminar is held in Richard King room Today is Thursday Merge Bob
  24. Research Themes • Can we go beyond files? ★ Convergent

    replicated data types • How do you know that the merge function is correct? ★ Intent preservation, convergence ★ Program verification for correctness by construction
  25. Research Themes • Can we go beyond files? ★ Convergent

    replicated data types • How do you know that the merge function is correct? ★ Intent preservation, convergence ★ Program verification for correctness by construction • What about scalability and applicability? ★ Irmin (http://irmin.io) — a blockchain based distributed database ★ Pure OCaml => Can compile to Desktops, Cloud, Raspberry Pi, JavaScript