Irakli Gozalishvili
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Comparison of ÐWeb protocols Several dweb protocols [IPFS][], [Dat][], [SSB][] have emerged over last couple of years. They do share number of underlying similarities but also have differences. This is my attempt to explore / explain those differences and corresponding effects. **Disclaimer:** I am by no means an expert in this space and might be wrong. Please correct me improve this document. ---- ## Content Addressing #### [IPFS][] [IPFS][] is using network wide content-addressing and has following benefits: - [IPFS][] removes duplication across the network. - When looking up files, you're asking the network for the corresponding hash. - Difficult to censor content without network-wide support *(One wound need to take down every node in the network that has content)* - Easy to take down content if there is network-wide support *(Network could use federated blacklist for censoring specific content)* Network wide content-addressing has drawbacks as well: - It easy to track which node is accessing / sharing specific content. #### [Dat][] [Dat][] is using archive wide content-addressing and has a following benefits: - Difficult to track who is accessing specific content *(Nodes only talk to nodes with a dat link)*. - Difficult to censor content *(Adversary not only needs to take down every node, it needs to track down any forked dat link)* This choice also has drawbacks: - There is no network wide deduplication resource sharing *(Nodes from two different dat's won't talk even if they share most of the content)* - Difficult to to take down content *(One could always fork dat)* ### [SSB][] **TODO:** If you now please share [@olizilla]: ssb object ids allows you to get a message by it's id if it's already in your log. The id is a content-address. https://github.com/ssbc/scuttlebot/blob/master/api.md#get-async > Messages and blobs are referred to by their hashes, but a feed is referred to by its signing public key. > https://github.com/ssbc/secure-scuttlebutt#object-ids #### Observations / Questions: [Dat][] seems to make tracking more difficult as tracker needs to posses public key of the Dat in order to track. On the other hand in [IPFS][] you could also add encrypted content to the network in which case tracker will only know certain nodes access / share certain content without knowing what it is. In that sense that is also true for [Dat][] as tracker could track requests for discovery key. It appears to me that privacy constraint boils down to defaults *(which are extremeley important)*. If I had to characterize two, [Dat][] is private by default while [IPFS][] is private by choice. I wonder if prioritization of privacy would be rendered irrelevant if underying protocols were to adopt mechanims to prenent tracking. For example would something like [onion routing][] prevent tracking all together ? - **[@lidel]** On IPFS: - IPFS has pluggable transports, so in theory IPFS node could run in Tor-only mode, announce itself as onion service under `/onion/<onion-key>/ipfs/<ipfs-key>` and remain anonymous within Tor guarantees. While proof of concept Tor transports were created by the community, none of them was audited (yet) and we don't want to advertise it until proper controls are in place and we are sure there is no privacy leakage when IPFS node runs over Tor (eg. real IPs being announced to DHT). Audit may happen before reaching v1.0. More: [ipfs/notes: Tor onion integration](https://github.com/ipfs/notes/issues/37) - It is possible to create closed, private IPFS networks that does not communicate with main public nodes. ---- ## Naming system _[olizilla]: What are we naming here? Aliases for hashes? Would be good to define it._ #### [Dat][] [Dat][] uses [PKI][] namespace, where names are the hashes of public public keys and private keys enable updating that namespace with verifiable data and publisher integrity and has following properties: - [Dat][] archive has URL and it maps directly to notion of web site or a code/data repository. - Verifiable publisher integrity. - Incremental versioning. - Versioned resolution *(ability to view past version assuming it's available in the network)* It has some drawbacks: - Naming is not human memorable - Naming is not human distinguishable #### [IPFS][] [IPFS][] has companion protocol [IPNS][] that can be used to map immutable [IPFS][] content address to a mutable namespace (address). It also uses a [PKI][] namepace, where names are the hashes of public keys, and the private key enables publishing new (signed) values. This provides following benefits: - Verifiable publisher integrity. - Human distinguishable naming _(see [mnemonic naming][])_ - Flexiblity in name hashing _(see https://multiformats.io/)_ System has following drawbacks: - Naming is not human memorable - No versioning support Has also being widely criticised for: - Poor performance - Records tend to expire Although it appears that [IPNS][] has not benig high priority for the team and likely performance and expiration issues could be addressed with some effort. _[@olizilla]: slow ipns resolution is annoying, but it's not intended to be a property of the system and is being worked on. Is your intention to document how you see things today, or capture the essential similarities and differences of the systems?_ #### [SSB][] **TODO:** If you now please share _[@olizilla]: ssb is significantly different; there is no dht, no global singletons. All names are subjective. There is only your log, and mechanisms for replicating other peoples logs. Your view is determined by reducing over your log. Those logs can contain "about" messages, which suggest your non-unique, personal alias for a given feed id. An ssb client may choose to track those aliases and offer to map the alias to a public feed id, but it's not part of the protocol. Anyone can post about messages about anything, so you can see nicknames that others assign to anyone, but only within the set of logs that you have elected to replicate._ #### Observations / Questions: I have being lead to believe that performance and record expiry issues with [IPNS][] is due to it being [DHT][] based, but then as far as I understand it's also the case with [Dat][] which suggests that those issues aren't inherent to [DHT][]. As far as I gathered from my convesations with [IPFS][] team leaving out versioning is intentional as there are some applications where versioning is explicitly not wanted (**TODO:** examples of such appliactions). I happen to think that verifiable versioning in the web context would be invaluable property. This leads me to beleive that naming system should be integral part of dweb protocol, that not to say [IPNS][] should support it, maybe it can be alternative or overlayng naming system. According to [Zooko's conjecture][Zooko's triangle] out of Decentralized, Secure, and Human-Meaningful, you can achieve at most two. Still various user studies by Mozilla tell us that human-memorable URLs are critical. - **[@lidel]** I think the assumption is that versioning in [IPFS][] should be built on different abstraction layers with [IPLD][] (need to confirm) ---- ## [DNS][] resolution #### [Dat][] [Dat][] provides human-meaningful naming at the cost of centralization and reduced security via [Dat DNS resolution][] #### [IPFS][] [IPFS][] also provides human-meaningful naming via [IPFS DNS links][] *(although it's poorly documented)* also at the cost of centralization and reduced security. ---- ## Networking #### [IPFS][] - In order for IPFS to provide guarantees about interoperability, IPFS applications use the modular network stack provided by [libP2P][] #### [Dat][] - Dat is only an application protocol and is agnostic to which network protocols (transports and naming systems) are used. #### [SSB][] TODO _[olizilla]: - https://github.com/ssbc/scuttlebot - is the networking layer on top of ssb. which is built on: - https://github.com/ssbc/secret-stack - https://github.com/ssbc/muxrpc - https://github.com/ssbc/multiserver Also of note: - https://ssbc.github.io/scuttlebutt-protocol-guide/ ---- ---- [DHT]:https://en.wikipedia.org/wiki/DHT [DNS]:https://en.wikipedia.org/wiki/Domain_Name_System [Dat DNS resolution]:https://www.datprotocol.com/deps/0005-dns/ [IPFS DNS links]:https://ipfs.io/ipfs/QmQwAP9vFjbCtKvD8RkJdCvPHqLQjZfW7Mqbbqx18zd8j7/websites/README.md [Zooko's triangle]:https://en.wikipedia.org/wiki/Zooko%27s_triangle [SLEEP]:https://github.com/datproject/docs/blob/master/papers/sleep.md [Dat Links]:https://github.com/datproject/docs/blob/master/papers/dat-paper.md#dat-links [PKI]:https://en.wikipedia.org/wiki/Public_key_infrastructure [IPFS]:https://ipfs.io [IPNS]:https://github.com/ipfs/notes/issues/260 [IPLD]:https://ipld.io/ [LibP2P]:https://libp2p.io/ [Dat]:http://datproject.org/ [SSB]:https://www.scuttlebutt.nz/ [Onion Routing]:https://en.wikipedia.org/wiki/Onion_routing [mnemonic naming]:https://github.com/ipfs/notes/issues/286 [@olizilla]: https://github.com/olizilla

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully