3 ms·
Yes, they don't have IPNS's slowness problems. (Well, I can speak about ENS. I don't know anything specifically about ZNS, but I'm going to assume it works simi
by AgentME 7y ago
Yes, they don't have IPNS's slowness problems. (Well, I can speak about ENS. I don't know anything specifically about ZNS, but I'm going to assume it works similarly.) The problem with IPNS is that the holder of the private key is the source of truth for the current value of an IPNS link. The private key holder can broadcast signed messages with the current value of the link to the rest of the network to cache and re-serve, but when a client gets a cached signed value, it can't know if that's the most up-to-date value for the link, so the client keeps on asking the rest of the network for a while about the current value for the link to see if anyone else has a more up-to-date value. (As opposed to when a client is fetching the content of a standard IPFS link, the client can know the content is right as soon as it gets an answer from anyone in the swarm because its hash is equal to the link. This means regular IPFS links don't have this problem at all.)
With ENS, the source of truth for the current value of all domains is the Ethereum blockchain. Every full Ethereum node has a copy of the blockchain and keeps it updated, so any node can immediately produce an authoritative answer about any domain. ENS still has the property of IPNS that only the holder of a private key can update their domain's current value, but they just have to submit any changes to the blockchain to apply them. This means that a client doesn't have to look any further than any node with a copy of the blockchain to find the current value.
Another benefit of systems like DNS and ENS over IPNS is that DNS and ENS can have human-friendly chosen names. IPNS links are always based on public keys and look like random strings. ENS and IPNS are both decentralized, but only blockchain-based systems like ENS can solve Zooko's Triangle (https://en.wikipedia.org/wiki/Zooko%27s_triangle https://en.wikipedia.org/wiki/Zooko%27s_triangle) and have secure decentralized human-meaningful names. (Blockchains often get a lot of nonsense hype for things they don't make any sense for, but this use-case is specifically the kind of thing that blockchains are uniquely good at!)
- k__ 7y agoI see! Good to know.