Slide 1

Slide 1 text

DISTRIBUTED INTERNET BRUNO MACABEUS

Slide 2

Slide 2 text

WHO I AM?

Slide 3

Slide 3 text

Bruno Macabeus I am computer engineering student ✈ github.com/macabeus macalogs.com.br

Slide 4

Slide 4 text

Bruno Macabeus I am computer engineering student ✈ github.com/macabeus macalogs.com.br

Slide 5

Slide 5 text

WHAT IS DISTRIBUTED WEB?

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

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

WHY IT’S USEFUL?

Slide 14

Slide 14 text

OpenBazaar

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

WHAT I NEED USE?

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

FREENET One of the oldest projects for distributed web (the initial realise was on 2000) This has, by default, anonymity This does not have support for dynamic content

Slide 19

Slide 19 text

FREENET

Slide 20

Slide 20 text

ZERONET You need to use Tor in order to access ZeroNet This has support for dynamic content It has a plugin to use namecoin

Slide 21

Slide 21 text

SAFENETWORK It has a new cryptocoin, called Safecoin It uses Omni protocol

Slide 22

Slide 22 text

DAT It’s a "distributed file system" It keeps a secure version log of dataset changes You can download only a part of a big file (for example, some rows of a dataset) Decoupled for implementing lower-level object stores

Slide 23

Slide 23 text

IPFS InterPlanetary File System IPFS has no anonymity guarantees, neither in communication nor in the storage of data Its nature is to be a decoupled tool It has a cryptocoin (in developing), called Filecoin Created and maintained by Protocol Labs and community

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

HOW IPFS WORKS?

Slide 27

Slide 27 text

CONTENT-ADDRESSING

Slide 28

Slide 28 text

Currently, the "centralized web” uses the location-addressing For example, if I want get the Google’s logo…

Slide 29

Slide 29 text

Currently, the "centralized web” uses the location-addressing www.google.com/logo.png For example, if I want get the Google’s logo…

Slide 30

Slide 30 text

Currently, the "centralized web” uses the location-addressing www.google.com/logo.png For example, if I want get the Google’s logo…

Slide 31

Slide 31 text

Currently, the "centralized web” uses the location-addressing www.google.com/logo.png For example, if I want get the Google’s logo…

Slide 32

Slide 32 text

Currently, the "centralized web” uses the location-addressing www.google.com/logo.png For example, if I want get the Google’s logo…

Slide 33

Slide 33 text

Currently, the "centralized web” uses the location-addressing www.google.com/logo.png IT’S BAD! For example, if I want get the Google’s logo…

Slide 34

Slide 34 text

The Google hash logo ( ) is hf9ndr98ydwrw We can use content-addressing instead of using the location-addressing Again the same example, but using content-addressing!

Slide 35

Slide 35 text

The Google hash logo ( ) is hf9ndr98ydwrw We can use content-addressing instead of using the location-addressing Again the same example, but using content-addressing! hf9ndr98ydwrw

Slide 36

Slide 36 text

The Google hash logo ( ) is hf9ndr98ydwrw We can use content-addressing instead of using the location-addressing Again the same example, but using content-addressing! hf9ndr98ydwrw

Slide 37

Slide 37 text

The Google hash logo ( ) is hf9ndr98ydwrw We can use content-addressing instead of using the location-addressing Again the same example, but using content-addressing! hf9ndr98ydwrw

Slide 38

Slide 38 text

The Google hash logo ( ) is hf9ndr98ydwrw We can use content-addressing instead of using the location-addressing Again the same example, but using content-addressing! hf9ndr98ydwrw

Slide 39

Slide 39 text

The Google hash logo ( ) is hf9ndr98ydwrw We can use content-addressing instead of using the location-addressing Again the same example, but using content-addressing! hf9ndr98ydwrw NICE!

Slide 40

Slide 40 text

The Google hash logo ( ) is hf9ndr98ydwrw We can use content-addressing instead of using the location-addressing Again the same example, but using content-addressing! hf9ndr98ydwrw NICE! this is called object

Slide 41

Slide 41 text

LIVE CODING: DEPLOY A DECENTRALIZED WEBSITE

Slide 42

Slide 42 text

IPNS

Slide 43

Slide 43 text

Although the concept of content-addressing brings a bunch of benefits, sometimes it’d become unsuitable for cases where it’s necessary to constantly get the last version of something, since it’d need to get the hash of last version of the object in another channel. To solve this problem another protocol, called IPNS, was developed. With the peerID, the hash of the user's public key, it then became possible to create a redirect to a specific object.

Slide 44

Slide 44 text

LIVE CODING: USING IPNS

Slide 45

Slide 45 text

And you can configure your DNS to use your IPNS address ➜ ~ dig macalogs.io txt ;; ANSWER SECTION: macalogs.io. 600 IN TXT "dnslink=/ipns/QmUHQxrfru6Npch4VCaQqf22wEJ3BZx3UGmyfFRvyJFgHj"

Slide 46

Slide 46 text

But, it's slow to resolve the IPNS address. Curiously… The IPFS official site uses the the IPFS hash in DNS ➜ ~ dig ipfs.io txt ;; ANSWER SECTION: ipfs.io. 60 IN TXT "dnslink=/ipfs/QmQrX8hka2BtNHa8N8arAq16TCVx5qHcb46c5yPewRycLm"

Slide 47

Slide 47 text

PIN

Slide 48

Slide 48 text

Sometimes you want to be able to control what you keep around. Pinning is the mechanism that allows you to tell IPFS to keep a given object local or no.

Slide 49

Slide 49 text

LIVE CODING: USING PIN

Slide 50

Slide 50 text

FILECOIN

Slide 51

Slide 51 text

Different of some systems like Freenet or ZeroNet, the user in IPFS can choose what he will storage In order to encourage the users to storage third party data, the Protocol Labs is developing a new currency

Slide 52

Slide 52 text

Different of some systems like Freenet or ZeroNet, the user in IPFS can choose what he will storage In order to encourage the users to storage third party data, the Protocol Labs is developing a new currency

Slide 53

Slide 53 text

ÐAPPS

Slide 54

Slide 54 text

ÐApp is an application that: - use some token - the application is decentralized

Slide 55

Slide 55 text

SOME EXAMPLES

Slide 56

Slide 56 text

golem.network

Slide 57

Slide 57 text

stateofthedapps.com

Slide 58

Slide 58 text

stateofthedapps.com 961 decentralized apps!

Slide 59

Slide 59 text

TO LEARNING MORE…

Slide 60

Slide 60 text

medium.com/beakyn/a-whole-day-playing-with-ipfs-95d2b6b3ea63

Slide 61

Slide 61 text

todo macalogs macalogs.com.br/prova-de-conceito-protocolos-ipfs-e-ipns-como-meio-para-o- controle-de-botnet.html