-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipns over pubsub: howto? #1
Comments
Hey @DougAnderson444, thanks for checking in. Happy to answer the question and glad you tagged me. In general you may find answers faster on the IPFS discuss forum (discuss.ipfs.io) or IRC (https://docs.ipfs.io/community/irc/), which is bridge to Matrix and Discord if you find those platforms more convenient. Now, onto the answers 😄
It happens magically. Basically go-ipfs has a pluggable system for finding content, IPNS records, other peers, etc. Enabling namesys-pubsub basically adds in the pubsub router from https://github.com/libp2p/go-libp2p-pubsub-router so that we find/publish to both the DHT and the pubsub channel.
First an aside that there exists the The spec that describes converting Summary: QmIPNSHash is the base58 representation of the IPNS Hash. The pubsub topic ID is
Not quite, that's the base64url-unpadded portion. You're missing the
This occurred before my involvement in the project and while I had some context, these answer are generally best found via github sleuthing 😀. ipfs/interop#39 (comment). I think it's pretty clear from the comment there what's going on, but I'll try and rehash below. Recall that QmIPNSHash is just one representation of the hash.
There certainly are alternative design decisions that could've been made here, but overall it does the job of keeping the individual routers (DHT and PubSub) independent and spec compliant which is convenient. |
Awesome answer, than you so much!! |
Hi @aschmahmann,
I saw your talk at IPFS camp and wondering if you can elaborate on exactly how to use ipns over pubsub.
Specifically:
ipfs resolve QmIPNSHash
(with--enable-namesys-pubsub
=true
)?ipfs pubsub sub QmIPNSHash
to get ipns updates? Or is itipfs pubsub sub /ipns/QmIPNSHash
?/record/L2lwbnMvEiCGC1J-0c8fai1qZlZ8I5fg8BYN36Tn6tPXsodDl3PTig
... but where does this topic come from?ipfs pubsub sub L2lwbnMvEiCGC1J-0c8fai1qZlZ8I5fg8BYN36Tn6tPXsodDl3PTig
Hopefully answers will clear up some confusion! I'd love to try the ipns over pubsub, but cannot find the command to get it rolling.
Thanks
The text was updated successfully, but these errors were encountered: