-
Notifications
You must be signed in to change notification settings - Fork 11
[EPIC] IPNS and Package Managers #82
Comments
I have a related repo around this here: https://github.com/ipfs/go-libp2p-dns-router e.g. |
This is the one that's happening now: |
As part of ipfs/kubo#6447 we landed libp2p/go-libp2p-pubsub#190 🚢 🚀 |
Related to ipfs/kubo#6447 I will be putting together a spec for IPNS-over-PubSub as an independent transport now that it's pretty close to stable. |
Update: we've asked @hugomrdias to move writing specs for ipfs/js-ipfs#2000 up on his priority list so we can move forward with |
@aschmahmann re: your question about which of the feature work to start on, once you're in a good place with the performance work -- You've already got these on your list:
And you reference: I'm chatting with @andrew -- we'd like to know more about what those other things are on your mind. Also, we are interested in what it would take to be able to track the history of changes connected to one IPNS record. What we're getting at -- when someone starts using IPNS, what's their user experience like? Can we articulate descriptions of what user stories will look like when folks start using it? Then, we can research them, and understand which are relevant to package managers. Some related musings happened on Cluster re: storing certain metadata along with objects, and Qri's storing history through storing the transform on the data (so it's reproducible and trackable). |
Good news, you can sort of do that already. IPNS is basically (key, value, sequence number), however the value can be anything you want. If the owner of the IPNS record (there must be an owner because we use sequence numbers to indicate versioning) decides that each new value will be an IPLD object that points at the previous data. Take the following example:
Unfortunately, there's no way to prove that the IPNS publisher hasn't lied to you about the history (outside of already having a conflict copy of the history). This isn't generally too bad because IPNS is set up to only be able to properly deal with a single writer and so that writer is assumed to be trusted to manage their own data stream. Some other things that would be great to tackle:
There's also the issue of specs, the IPNS specs need a bunch of work:
|
Started PRs for two specs related to IPNS-over-PubSub: |
Update: As part of ipfs/kubo#6447 we landed libp2p/go-libp2p-pubsub-router#33 🚢 🚀 This update essentially gives us IPNS-over-PubSub as an Independent Transport. However, without making some modifications to go-libp2p-pubsub-router or landing libp2p/go-libp2p-pubsub#184 it'll be hard to see the effects of this on the public network because the code that uses the DHT to discover peers for the PubSub topic times out before the DHT query is likely to complete. Therefore... next up is libp2p/go-libp2p-pubsub#184 (and the associated go-libp2p-discovery PR that will be associated with libp2p/go-libp2p#707) |
In order for package managers to make their content available to users the registry information about a given package needs to support:
go-ipfs
as published by the IPFS team)go-ipfs 0.4.1
and want to see if there's a version later than 0.4.1)Discovery can be used to replace Updates entirely, by just insisting that users do whatever they did for discovery any time they want an update. However, discovery tends to be a much harder and more user intensive process than updates (e.g. a Github search for
go-ipfs
and choosing the correct fork, as opposed to going to github.com/ipfs/go-ipfs/releases) and so it is helpful to separate these two concerns. For the time being we are going to punt on Discovery and focus on Updates.IPNS is designed for updates and so is a natural fit for Updates in IPFS based package managers. Some of the IPNS issues we should tackle to properly support package mangers are:
There are more IPNS issues to tackle, but most of these really need to get off the ground for it to be relatively painless to run a package manager using IPFS/IPNS.
The text was updated successfully, but these errors were encountered: