-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
243 lines (221 loc) · 5.13 KB
/
Copy pathindex.html
File metadata and controls
243 lines (221 loc) · 5.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Big</title>
<link href="big.css" rel="stylesheet" type="text/css" />
<script src="big.js"></script>
<style>
.one {
white-space: nowrap;
}
em {
color: red;
}
img {
max-height: 100%;
}
.small {
transition: font-size 1s ease;
}
.hide, .hide3 {
transition: opacity 1s ease;
}
.hide2 {
opacity: 0.1;
}
</style>
</head>
<body class="light">
<div><img src="protocols.png"></div>
<div>
<em>Web of Peers</em>
</div>
<div>
@jiangplus
</div>
<div>
<div class="one">Void & Dat Project</div>
<br>
<div class="one">Kubernetes</div>
</div>
<div>
The Internet is a <em>global</em> system of <em>interconnected</em> computer networks
</div>
<div>
And nodes are <em>connected</em> to <em>exchange state</em> and <em>share data</em>
</div>
<div>
How do we access data?
</div>
<div>
<div><em>Location Addressing</em></div>
<br>
<i class="one">https://en.wikipedia.org/wiki/Content-addressable_storage</i>
</div>
<div>
Tell you <em>where</em> to get the content
</div>
<div>
Whoever controls that <em>location</em> controls the <em>content</em>
</div>
<div>
<div><em>Content Addressing</em></div>
<br>
<i class="">magnet:?xt=urn:btih:9f9165d9a281a9b8e782cd5176bbcc8256f
&dn=ubuntu-16.04.1-desktop.iso</i>
</div>
<div>
Tell you <em>what</em> the content is like
</div>
<div>
<div><em>Integrity</em></div>
<div><em>Cachable</em></div>
<div>Location and source <em>independent</em></div>
</div>
<div>
<div class="one"><em>Client-Server</em> Architecture</div>
<br>
<div class="one"><em>Peer-to-Peer</em> Architecture</div>
</div>
<div>
<em>Decentralization</em>
</div>
<div>
<div>Closer</div>
<div>Faster</div>
<div>Redundancy</div>
<div><em>More</em> peers, <em>more</em> capacity</div>
</div>
<div>
How can we find the <em>node</em> having that <em>data</em>?
</div>
<div>
<em>Distributed</em> Hash Table!
</div>
<div>
<pre>
dht["9f9165d9a281a9b8e782cd5176bbcc8256f"] = [
"192.168.1.100",
"222.222.222.222",
...
]
</pre>
</div>
<div>
Every node keep some info about <em>nearest</em> peers
</div>
<div>
<div>Open, Permissionless, Resilent, Scalable</div>
<br>
<div>High latency</div>
</div>
<div>
How to connect other nodes?
</div>
<div>
<div>HTTP</div>
<div>WebSocket</div>
<div>uTP</div>
<div>QUIC</div>
<div>WebRTC</div>
</div>
<div>
libp2p
</div>
<div>
<div class="one"><em>Slice</em> the file into chunks</div>
<div class="one"><em>Parallel</em> download</div>
<div class="one"><em>Verify</em> every chunk</div>
</div>
<div>
<em>MerkleTree</em>
</div>
<div><img src="merkle-tree-example.png"></div>
<div><em>IPFS</em></div>
<div>
How to publish new data?
</div>
<div><img src="append-only-log-0.png"></div>
<div>
Data could be <em>updated</em>
</div>
<div>
We need to model <em>state changes over time</em>
</div>
<div>
<em>Append-only Log</em>
</div>
<div><img src="append-only-log-1.png"></div>
<div><img src="append-only-log-2.png"></div>
<div><img src="append-only-log-3.png"></div>
<div>
<em>dat</em>
</div>
<div>
<pre>
+ ---------------------------+
Dat ~= | Dat cli, dat-js, etc |
+ ----------+----------------+
| Other | Hyperdrive |
+ ----------+----------------+
| Discovery | Hypercore |
+ ----------+----------------+
</pre>
</div>
<div class="one">
file system?
</div>
<div>
<em>Hyperdrive</em>
</div>
<div class="one">
chatting?
</div>
<div>
<em>Cabal</em>
</div>
<div>
p2p connection in the browser?
</div>
<div>
<em>Webtorrent</em>
</div>
<div>
Browser for P2P Applications?
</div>
<div>
<em>Beaker Browser</em>
</div>
<div>
incentive?
</div>
<div>
<em>Filecoin</em>
</div>
<div>
<div class="one">share files : <em>IPFS</em></div>
<div class="one">public names : <em>IPNS</em></div>
<div class="one">feed : <em>hypercore</em>(dat)</div>
<div class="one">database/dropbox : <em>hyperdrive</em>(dat)</div>
<div class="one">public ledger : <em>blockchain!</em></div>
</div>
<div></div>
<div>Hard poblems:</div>
<div>1. <em>Connecting</em> any two nodes in the world</div>
<div>2. <em>Find</em> and <em>distribute</em> data effectively</div>
<div>3. <em>Share</em> data <em>fast</em> and <em>securely</em></div>
<div>Web 1.0 : <em>Readable</em></div>
<div>Web 2.0 : <em>Writable</em></div>
<div>Web 3.0 : <em>Connect</em> and <em>Share</em>, <em>Verify</em> and <em>Trust</em></div>
<div><img src="web3_stack.png" style="width: 60%;"></div>
<div></div>
<div><em>Web3</em> is <em>Revolution</em></div>
<div><em>Web3</em> is <em>Hype</em></div>
<div><em>Web3</em> is <em>Punk</em></div>
<div><em>Web3</em> is <em>Hope</em></div>
<div>Demo</div>
<div>Thanks!</div>
</body>
</html>