-
Notifications
You must be signed in to change notification settings - Fork 30
Petnames for multihashes #157
Comments
I would love to have this! One thing that could make it even more awesome would be the ability to import and export petname definitions. This could be a simple bash script though if |
Exporting makes sense, but importing would break one of the petname guidelines: "The petname must be assigned to the key only by explicit user action." |
Wouldn't running an import be an explicit assignment? |
No, because the imported file might contain hashes that the user hadn't explicitly checked over. It's a gray area, but it doesn't seem like a good idea to me. |
I think this functionality is provided by ipfs files already-- meaning pet I think pet names are better suited for peers/keys ? Though similar thing I'd like ipfs swarm connect /friends/whyrusleeping Where the root is given by $reporoot/peers or something. Where $reporoot is Note this is equivalent to ipfs files cat /myfiles/foo In that these can be addressed at $reporoot/files
|
Hm. I agree that a petname system could be implemented using the existing unixfs directory object as the place to store the mapping (although I'm not sure how good the performance is for lookups) -- but that doesn't help with having the petname shown everywhere the hash would be, or facilitating editing the link names. At least, as far as I understand it yet... |
Doesn't have to be unixfs dir, just an ipfs object (with sharding) Well we shouldn't do replacing of hashes for petnames in outputs of
|
Why does sharding matter? With regards to output -- all the commands would have But it does sound like you may have a fundamental conceptual objection to applying petnames to ipfs daemons (although I certainly may be mis-reading), in which case, we'd need to discuss and reach consensus on that before working on the details. |
Petnames could be put into DNS, at least for forward lookups:
That could lookup _ipfs.foo.net to get the multihash. Reverse is harder, but perhaps include that as some additional metadata, and validated by a forward lookup. |
I have something in mind for this, dnsaddr, which works similar to dnslink.
|
I think it would be good to add a minimal implementation of Petnames (as described by http://www.skyhunter.com/marcs/petnames/IntroPetNames.html ) to IPFS (specifically, go-ipfs).
Here are some thoughts on how this could work:
/petname/blahblahblah
(or/pn/blahblahblah
if we wanted a shorter prefix)ipfs petname [multihash] [name]
This is somewhat related to https://github.com/ipfs/go-ipfs/issues/1145 .
Thoughts/concerns/encouragement GREATLY appreciated.
The text was updated successfully, but these errors were encountered: