Skip to content

begin and choose design #7

Closed
Closed

Description

@tabcat

Design will be based on https://github.com/tabcat/dynamic-content

Instead of using IPNS directly, the initial implementation will likely use w3name service.
This has the benefit of "IPNS" records not expiring which enables replication to happen after ~48 hours if the collaborators IPNS is known.

Collaborator discovery will still use the Libp2p Kad DHT. Records will expire after ~48 hours. I'm thinking about making it so collaborator IPNS names are included with the replicas. This would make it so if there are only a few collaborator records in the DHT it would still be possible to query the other known ones. However this may not end up being necessary since the existing records likely point to up to date replicas.

Activity

  1. tabcat commented on May 4, 2023

    @tabcat
    OwnerAuthor

    IPLD usage with pinners does not need to be spec'd. What does need to be included with the spec:

    • Dynamic Content Manifest Format and use
    • IPNS use
    • Provider Records use
  2. tabcat commented on May 4, 2023

    @tabcat
    OwnerAuthor

    Not going to handle how IPLD is pinned, only requirement is that replica's have a single root so it can be referenced from IPNS

  3. tabcat commented on May 5, 2023

    @tabcat
    OwnerAuthor

    Considered either combining everything into update and sync functions or exposing helper functions that sit one level above the ipns/dht methods. Second options seems the best and simplest for now.

  4. tabcat commented on May 8, 2023

    @tabcat
    OwnerAuthor

    In the future I think exposing update(cid, newCid) and sync() functions will make the most sense while still exposing the underlying utilities. The update function would do some general diffing over the IPLD data and handle pushing data to pinners etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions