Skip to content
This repository has been archived by the owner. It is now read-only.

How does IPNS interact with the DHT? #209

Closed
jackie-scholl opened this issue Dec 6, 2016 · 2 comments
Closed

How does IPNS interact with the DHT? #209

jackie-scholl opened this issue Dec 6, 2016 · 2 comments

Comments

@jackie-scholl
Copy link

jackie-scholl commented Dec 6, 2016

It's my understanding that you can use IPNS to publish a mutable value linked to your public key, e.g. with https://github.com/whyrusleeping/ipns-pub or the standard cli client. I believe that this key/value pair is distributed directly on the DHT. However, I've also seen some references to this pair only being available for 12 or 24 hours after your node was last online. This doesn't mesh with my understanding of how DHTs work, where every single key/value pair on the network will be stored by multiple nodes (based on the key's closeness to the node ID). It also really doesn't seem to mesh with the stated goals of a permanent web, where content should be available long after the site layout has changed and/or the servers are offline. I've also seen a couple references to some IPRS project in the works that's supposed to help with this, but I'm not sure what that is.

@jackie-scholl
Copy link
Author

jackie-scholl commented Dec 7, 2016

Ok so it looks like the DHT that IPFS is basically a standard DHT, but the DHT clients will drop key-value pairs that are 12-48 hours old (I guess depending on implementation?) and that's why you have to keep re-publishing IPNS messages. My guess is that the same mechanism handles messages from nodes saying they have a certain block.

@flyingzumwalt
Copy link
Contributor

flyingzumwalt commented May 23, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants