merkledag
2. Overview
the model
IPFS nodes
(content) (programs)
Slide 67
Slide 67 text
in IPFS
data forms a dag
2. Overview
Slide 68
Slide 68 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 69
Slide 69 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 70
Slide 70 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 71
Slide 71 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 72
Slide 72 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 73
Slide 73 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 74
Slide 74 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 75
Slide 75 text
any data structures are
represented as dags
2. Overview
Slide 76
Slide 76 text
2. Overview
unix files
and dirs
any data structures are
represented as dags
Slide 77
Slide 77 text
blob, tree, commit
unix files
and dirs
any data structures are
represented as dags
2. Overview
Slide 78
Slide 78 text
blob, tree, commit
unix files
and dirs
any data structures are
represented as dags
blocks, txns, wallets
2. Overview
Slide 79
Slide 79 text
blob, tree, commit
unix files
and dirs
any data structures are
represented as dags
blocks, txns, wallets
kv-stores
2. Overview
Slide 80
Slide 80 text
blob, tree, commit
unix files
and dirs
any data structures are
represented as dags
blocks, txns, wallets
kv-stores
2. Overview
Slide 81
Slide 81 text
unixfs as a dag
2. Overview
Slide 82
Slide 82 text
files are dag nodes
unixfs as a dag
2. Overview
Slide 83
Slide 83 text
files are dag nodes
BIG files may be
split into many
unixfs as a dag
2. Overview
Slide 84
Slide 84 text
directories are
also dag nodes
files are dag nodes
BIG files may be
split into many
unixfs as a dag
2. Overview
Slide 85
Slide 85 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
in IPFS
data forms a dag
it’s called the merkle dag
because the links are hashes
2. Overview
Slide 103
Slide 103 text
in IPFS
data forms a dag
it’s called the merkle dag
because the links are hashes
2. Overview
Slide 104
Slide 104 text
content addressing
merkle dag
linking
routing
pki namespace
concepts
Slide 105
Slide 105 text
merkle tree
Slide 106
Slide 106 text
git objects
Slide 107
Slide 107 text
blockchain
Slide 108
Slide 108 text
merkle dags
Slide 109
Slide 109 text
in IPFS
data forms a 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 110
Slide 110 text
an IPFS node
2. Overview
Slide 111
Slide 111 text
has pki based
identity
an IPFS node
2. Overview
Slide 112
Slide 112 text
has pki based
identity
connects
to others
an IPFS node
2. Overview
Slide 113
Slide 113 text
can store part
of the dag
has pki based
identity
connects
to others
an IPFS node
2. Overview
Slide 114
Slide 114 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 115
Slide 115 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 116
Slide 116 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 117
Slide 117 text
2. Overview
IPFS nodes form p2p networks
transport agnostic and with NAT traversal
Slide 118
Slide 118 text
2. Overview
IPFS nodes form p2p networks
transport agnostic and with NAT traversal
Slide 119
Slide 119 text
they find each other and content
with routing systems, like DHTs
2. Overview
Slide 120
Slide 120 text
and exchange dag nodes
like files in http or bittorrent
2. Overview
Slide 121
Slide 121 text
and exchange dag nodes
like files in http or bittorrent
2. Overview
Slide 122
Slide 122 text
and exchange dag nodes
like files in http or bittorrent
2. Overview
Slide 123
Slide 123 text
1. Why - The Problems!
2. How - The Overview
3. What - The Demo
- install
- run a node
- stream media
- publish website
- boot a vm
Slide 124
Slide 124 text
3 ways to install IPFS
1. npm install -g go-ipfs
2. go get github.com/ipfs/go-ipfs/cmd/ipfs
3. install packages on the website
Slide 125
Slide 125 text
ipfs.io
Slide 126
Slide 126 text
ipfs.io
Slide 127
Slide 127 text
in go-ipfs:
Slide 128
Slide 128 text
in go-ipfs:
ipfs node
Slide 129
Slide 129 text
in go-ipfs:
ipfs node cli
Slide 130
Slide 130 text
in go-ipfs:
ipfs node cli library
Slide 131
Slide 131 text
in go-ipfs:
ipfs node cli library
http api
Slide 132
Slide 132 text
in go-ipfs:
ipfs node cli library
http api
http/ipfs
gateway
Slide 133
Slide 133 text
in go-ipfs:
ipfs node cli library
http api
http/ipfs
gateway
webui
Slide 134
Slide 134 text
in go-ipfs:
ipfs node cli library
http api
http/ipfs
gateway
webui
DEMO
Slide 135
Slide 135 text
No content
Slide 136
Slide 136 text
a new hypermedia distribution protocol
The Permanent Web