Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill...

35
Experiences with Scaling Blockchain-based Data Stores Onename. Decentralized identity on the bitcoin blockchain Presentation at Experiences with Scaling Blockchain-based Data Stores Muneeb Ali, Co-Founder & CTO

Transcript of Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill...

Page 1: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Experiences with Scaling Blockchain-based Data Stores

Muneeb Ali, Co-Founder & CTO

Page 2: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Table of Contents

Brief Intro to Bitcoin

A Simplified Model of Blockchain Time

Ownership Using blockchain as data store / naming

Why We Need Decentralized Identity

Experiences from a Production Network

Blockstore: Key-Value Store on BTC Blockchain

Page 3: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Bitcoin

Page 4: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Let’s design a new currency…

Ledger Currency

Page 5: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Ledger Currency

Let’s design a new currency…

Muneeb Ali 10 coins

Brian Kernighan 10 coins

Page 6: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Ledger Currency

Let’s design a new currency…

Muneeb Ali 10 coins

Brian Kernighan 10 coins

Paul Krugman 0 coins

Page 7: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Ledger Currency

Let’s design a new currency…

Muneeb Ali 10 coins

Brian Kernighan 10 coins

Paul Krugman 0 coins

Muneeb —> Krugman 2 coins (unconfirmed)

Page 8: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Ledger Currency

Let’s design a new currency…

Muneeb Ali 8 coins

Brian Kernighan 10 coins

Paul Krugman 2 coins

Muneeb —> Krugman 2 coins (confirmed)

Page 9: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Congratulations!

You just learned how Bitcoin works.

Page 10: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Ledger Currency

Muneeb Ali 8 coins

Brian Kernighan 10 coins

Paul Krugman 2 coins

Muneeb —> Krugman 2 coins (confirmed)

Bill Gates 0 coins

Page 11: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Ledger Currency

Muneeb Ali 8 coins

Brian Kernighan 10 coins

Paul Krugman 2 coins

Muneeb —> Krugman 2 coins (confirmed)

Bill Gates 0 coins

Muneeb —> Bill 2 coins (unconfirmed)

Page 12: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

We need a distributed ledger (blockchain)

Page 13: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Distributed Ledger

It’s a file! It grows as you make more transactions

Blockchain

Page 14: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

•  Private-public key pairs

Page 15: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

•  Private-public key pairs

•  Bitcoin address = deterministic from pubkey

Page 16: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

•  No such thing as a “bitcoin”. Only inputs and outputs

•  21 million total bitcoins (fixed)

•  50 BTC minted each block, halved to 25 BTC

Page 17: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

Page 18: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

Page 19: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

000009ff7ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069

Page 20: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

1 2 3

….. 3000

•  Time

•  Ownership

Page 21: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

How Blockchain Works

1 2 3

….. 3000

Register hash(name) Update name

Page 22: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Decentralized Identity

Blockchain

Page 23: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Decentralized Identity

Blockchain

Page 24: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Decentralized Identity

Blockchain

Page 25: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Decentralized Identity

Blockchain

Page 26: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

What is Onename?

Blockchain

Page 27: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

What is Onename?

Blockchain

Page 28: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

What is Onename?

Blockchain

Page 29: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

What is Onename?

Blockchain

Page 30: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Lessons from Namecoin

Blockchain

•  Reliability and security of the blockchain

•  Limit on size of data (520 bytes)

•  Software engineering challenges

•  Scalability challenges

Page 31: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Blockstore

Blockchain

Page 32: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Blockstore

Blockchain

n0 k0

n1 k1

n2 k2

nm-1 km-1

nm km

.

.

.

.

Secure Index (Blockchain)

(name, key) (key, value)

DHT Storage (Kademlia-TX)

160-bit space

(k0,v0)

1 0

1

1

1

1

1

1

0

0 0

0

0

0

11..11 00..00

Page 33: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Blockstore

Blockchain

•  Opensource (python), simpler (no blockchain functionality)

•  Can support multiple data stores (mirrors)

•  Separates control plane from data plane

•  Enables to experiment with namespaces / spamming / pricing

Page 34: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Application: auth

Blockchain Central Data Repository

Company A

Company B

Company C

Access Control

Page 35: Muneeb Ali - Experiences with Scaling Blockchain …Muneeb —> Krugman 2 coins (confirmed) Bill Gates 0 coins Muneeb —> Bill 2 coins (unconfirmed) Experiences with Scaling Blockchain-based

Experiences with Scaling Blockchain-based Data Stores

Onename. Decentralized identity on the bitcoin blockchain Presentation at

Question?

Thank You!

[email protected]

@muneeb