-
Notifications
You must be signed in to change notification settings - Fork 110
multihash support in swarm #166
Comments
I'll start: Pros: allows multi-hashes to be stored in ENS making it easy to use ENS with swarm and ipfs and other p2p storage solutions. Cons: Makes ENS registration a little more expensive (store two words instead of one because multihash is longer than a swarm hash) |
I'd like to see Swarm move to Multihash for ENS, at least, because it would allow us to have a single resolver profile for all content-addressed networks, and because it provides an upgrade path for changes in hash function. |
Is the proposal only for root hashes or also for intermediate chunk hashes in low-level Merkle trees? |
I must admit that I'm not entirely sure how multihashes look. I understand that it is a hash with metadata about what type of hash it is. |
the metadata bytes should be a separate data field from the hash value itself storing metadata should be optional, meaning I should be able to only pay for / use 32 bytes if I want to. As long as we open this discussion, another question that follows is should ENS allow for even longer data values than this? In fact, should it allow for arbitrary values? Let's say someone comes along who wants to use ENS with some scheme that uses 512 bit or 1024 bit hashes? The latter would thus require 5 data fields. Yes, internally in swarm we should definitely keep the hash as-is. |
That's a question about the resolver contracts. As such it is possible to write a resolver that stores any data. |
ok I dont see a problem with using multihash in ENS. |
but doesn't the ens entry have to be a swarm root hash? |
We are often asked about multihash support.
We should have a proper discussion about pros and cons at least. I suggest this issue shall be the place for that discussion until someone formulates this as an EIP (or is it SIP?)
The text was updated successfully, but these errors were encountered: