Update how_it_works_scenery.md
parent
f38d97b2ff
commit
15be58ca14
|
@ -101,7 +101,7 @@ You can find images with similar color palette, visuals/semantics, and similar t
|
|||
IPFS (Inter Planetary File system) is a content-addressable p2p file sharing network. We can use it for decentralized storage/distribution of images.
|
||||
We will make a toggle switch, when activated, all links to images and thumbnails will be converted to ipfs links.
|
||||

|
||||
Usually, links to files look like this: /ipfs/[CID], where CID is the Content Identifier (hash). This means that we need to store CID's of images in the db and share these CID's with the client.
|
||||
Usually, links to files look like this: /ipfs/[CID], where CID is the Content Identifier (hash). This means that we need to store CIDs of images in the db and share these CIDs with the client.
|
||||
It is not very convenient. This problem can be elegantly solved using IPNS. IPNS (InterPlanetary Name System) is a decentralized version of dns for ipfs. It allows you to use an address that points to the hash of a file (folder). You can change the hash referenced by the address without changing the address. With this trick, we turned content-based addressing into address-based.
|
||||
IPNS is quite difficult to remember /ipns/k51qzi5uqu5dhlil169t1my3wmb5zzwugvtjcq6duc2bhgcbjsbc77wmdqwbsh, so we use dnslink – ipfs can pull the ipns address from the domain's TXT record.
|
||||
<img src="./images_md/104305721710f441aa98013a7408affb.jpg" width=70% height=70%>
|
||||
|
@ -162,4 +162,4 @@ Several strategies come to mind:
|
|||
|
||||
It would be cool if web 4.0 (web 3.0 is stolen by a cult of sha256 bruteforce enjoyers) would be something in a line of autonomous self–learning services where users can participate in the distribution of content. Sounds futuristic.
|
||||
#
|
||||
If you found any inaccuracies or have something to add, feel free to submit PR or raise an issue.
|
||||
If you found any inaccuracies or have something to add, feel free to submit PR or raise an issue.
|
||||
|
|
Loading…
Reference in New Issue