Slide 1

Slide 1 text

ipfs.io @IPFSbot Juan Benet @juanbenet 2015-05-24 The Permanent Web

Slide 2

Slide 2 text

WIFI SSID: / PASS:

Slide 3

Slide 3 text

WIFI SSID: / PASS:

Slide 4

Slide 4 text

ipfs.io @IPFSbot Juan Benet @juanbenet 2015-05-24 The Permanent Web

Slide 5

Slide 5 text

ipfs.io @IPFSbot Juan Benet @juanbenet 2015-05-24 The Permanent Web Distribute

Slide 6

Slide 6 text

ipfs.io @IPFSbot Juan Benet @juanbenet 2015-05-24 The Permanent Web Re-

Slide 7

Slide 7 text

1. What is IPFS? 2. IPFS Intro 3. Layering 4. Datastructures 5. Demo

Slide 8

Slide 8 text

What is IPFS?

Slide 9

Slide 9 text

What is IPFS?

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

A protocol to upgrade the web

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Distributed

Slide 20

Slide 20 text

Distributed Offline

Slide 21

Slide 21 text

Permanent Distributed Offline

Slide 22

Slide 22 text

Permanent Distributed Smarter Offline

Slide 23

Slide 23 text

Permanent Distributed Safer Smarter Offline

Slide 24

Slide 24 text

Permanent Distributed Safer Smarter Offline Faster

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

2026

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

2026

Slide 35

Slide 35 text

2026 1991

Slide 36

Slide 36 text

2026 1991 2015

Slide 37

Slide 37 text

2026 1991 2015 24 11

Slide 38

Slide 38 text

2026 1991 2015 24 11 11

Slide 39

Slide 39 text

2026 1991 2015 24 11 11

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

What is IPFS?

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

hyperlinks

Slide 45

Slide 45 text

hyperlinks media

Slide 46

Slide 46 text

a hypermedia transport protocol HTTP

Slide 47

Slide 47 text

web

Slide 48

Slide 48 text

SFS web

Slide 49

Slide 49 text

SFS web

Slide 50

Slide 50 text

SFS web

Slide 51

Slide 51 text

SFS web DHT

Slide 52

Slide 52 text

SFS web DHT +

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

What is IPFS?

Slide 59

Slide 59 text

1. A Protocol Stack 2. Tools + Programs 3. A Live System

Slide 60

Slide 60 text

web DHT SFS

Slide 61

Slide 61 text

web DHT SFS routing network exchange merkledag naming applications The Stack

Slide 62

Slide 62 text

routing network exchange merkledag naming applications The Stack

Slide 63

Slide 63 text

routing network exchange merkledag naming applications The Stack Defining the Data Moving the Data Using the Data

Slide 64

Slide 64 text

routing network exchange merkledag naming applications The Stack Defining the Data Moving the Data Using the Data

Slide 65

Slide 65 text

routing network exchange merkledag naming applications IPNS Bitswap QUIC TCP uTP WebRTC WebSockets Git Bitcoin VLC Etherpad Chat UDT CJDNS Kad DHT mDNS

Slide 66

Slide 66 text

routing network exchange merkledag naming applications IPNS Bitswap QUIC TCP uTP WebRTC WebSockets UDT CJDNS Kad DHT mDNS Git Bitcoin VLC Etherpad Chat

Slide 67

Slide 67 text

routing network exchange merkledag naming applications IPNS DNS Namecoin Bitswap HTTP BitTorrent Kad DHT Chord mDNS Gossip Delegated FTP TOR QUIC TOR TCP uTP WebRTC WebSockets Git Bitcoin VLC Etherpad Chat I2P I2P CJDNS UDT

Slide 68

Slide 68 text

IP UDP TCP SCTP Ethernet CSMA WIFI TP Coax Satellite Fiber Radio PPP HTTP SMTP FTP NFS Skype Pigeons Chat

Slide 69

Slide 69 text

IP UDP TCP SCTP Ethernet CSMA WIFI TP Coax Satellite Fiber Radio PPP HTTP SMTP FTP NFS Skype Pigeons Chat

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

Content Addressing 1. Motivation

Slide 79

Slide 79 text

http://10.20.30.40/foo/bar/baz.png location path http://example.com/foo/bar/baz.png 1. Motivation

Slide 80

Slide 80 text

http:// location path http:// 1. Motivation /ipns/example.com/foo/bar/baz.png /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png content path

Slide 81

Slide 81 text

http://10.20.30.40/foo/bar/baz.png you 1. Motivation /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png

Slide 82

Slide 82 text

http://10.20.30.40/foo/bar/baz.png 10.20.30.40 you 1. Motivation /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png HTTP

Slide 83

Slide 83 text

http://10.20.30.40/foo/bar/baz.png 10.20.30.40 you 1. Motivation /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png IPFS

Slide 84

Slide 84 text

1. Motivation p2p distribution /ipfs/

Slide 85

Slide 85 text

1. Motivation p2p distribution /ipfs/

Slide 86

Slide 86 text

merkledag 2. Overview the model IPFS nodes

Slide 87

Slide 87 text

merkledag 2. Overview the model IPFS nodes (content) (programs)

Slide 88

Slide 88 text

in IPFS data forms a merkle dag nodes have links and data [ (hash, size, name), … ] QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz anything you want []byte links data 2. Overview

Slide 89

Slide 89 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! 1 3 5 2 4 suppose links:

Slide 90

Slide 90 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 91

Slide 91 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 92

Slide 92 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 93

Slide 93 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 94

Slide 94 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 95

Slide 95 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 96

Slide 96 text

any data structures are represented as dags 2. Overview

Slide 97

Slide 97 text

2. Overview unix files and dirs any data structures are represented as dags

Slide 98

Slide 98 text

blob, tree, commit unix files and dirs any data structures are represented as dags 2. Overview

Slide 99

Slide 99 text

blob, tree, commit unix files and dirs any data structures are represented as dags blocks, txns, wallets 2. Overview

Slide 100

Slide 100 text

blob, tree, commit unix files and dirs any data structures are represented as dags blocks, txns, wallets kv-stores 2. Overview

Slide 101

Slide 101 text

blob, tree, commit unix files and dirs any data structures are represented as dags blocks, txns, wallets kv-stores 2. Overview

Slide 102

Slide 102 text

unixfs as a dag 2. Overview

Slide 103

Slide 103 text

files are dag nodes unixfs as a dag 2. Overview

Slide 104

Slide 104 text

files are dag nodes BIG files may be split into many unixfs as a dag 2. Overview

Slide 105

Slide 105 text

directories are also dag nodes files are dag nodes BIG files may be split into many unixfs as a dag 2. Overview

Slide 106

Slide 106 text

which link to others directories are also dag nodes files are dag nodes BIG files may be split into many unixfs as a dag 2. Overview

Slide 107

Slide 107 text

ipfs paths /ipfs//

Slide 108

Slide 108 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt

Slide 109

Slide 109 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt XLYkgq61DYaQ8Nhk

Slide 110

Slide 110 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1

Slide 111

Slide 111 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1

Slide 112

Slide 112 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1 aCpDMGvV2BGHeYER

Slide 113

Slide 113 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1 bar.txt UEnRQAw aCpDMGvV2BGHeYER data2

Slide 114

Slide 114 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1 bar.txt UEnRQAw aCpDMGvV2BGHeYER data2 UEnRQAwe3N8SzbUt data3

Slide 115

Slide 115 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15

Slide 116

Slide 116 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1

Slide 117

Slide 117 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1

Slide 118

Slide 118 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 parent

Slide 119

Slide 119 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 parent

Slide 120

Slide 120 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 data3 15 parent 14

Slide 121

Slide 121 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 data3 15 parent 14

Slide 122

Slide 122 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 data3 15 data4 input0 parent 14 output0

Slide 123

Slide 123 text

an IPFS node 2. Overview

Slide 124

Slide 124 text

has pki based identity an IPFS node 2. Overview

Slide 125

Slide 125 text

has pki based identity connects to others an IPFS node 2. Overview

Slide 126

Slide 126 text

can store part of the dag has pki based identity connects to others an IPFS node 2. Overview

Slide 127

Slide 127 text

has pki based identity connects to others can get more from peers an IPFS node can store part of the dag 2. Overview

Slide 128

Slide 128 text

has pki based identity connects to others can be run as a server can get more from peers an IPFS node can store part of the dag 2. Overview

Slide 129

Slide 129 text

has pki based identity connects to others can be run as a server or embedded in apps app
 
 can get more from peers an IPFS node can store part of the dag 2. Overview

Slide 130

Slide 130 text

2. Overview IPFS nodes form p2p networks transport agnostic and with NAT traversal

Slide 131

Slide 131 text

they find each other and content with routing systems, like DHTs 2. Overview

Slide 132

Slide 132 text

and exchange dag nodes like files in http or bittorrent 2. Overview

Slide 133

Slide 133 text

and exchange dag nodes like files in http or bittorrent 2. Overview

Slide 134

Slide 134 text

and exchange dag nodes like files in http or bittorrent 2. Overview

Slide 135

Slide 135 text

DEMO

Slide 136

Slide 136 text

4 ways to install IPFS 0. wget from an ifs link 1. npm install -g go-ipfs 2. go get github.com/ipfs/go-ipfs/cmd/ipfs 3. install packages on the website

Slide 137

Slide 137 text

in go-ipfs: ipfs node cli library http api http/ipfs gateway webui

Slide 138

Slide 138 text

#ipfs on