Comments (9)
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)
from swarm.
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.
from swarm.
Is the proposal only for root hashes or also for intermediate chunk hashes in low-level Merkle trees?
from swarm.
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.
Thus I thought we could keep the internal structure of swarm intact and just use the longer multihashes (swarm hash + extra data?) as roothashes stored on ENS.
from swarm.
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.
from swarm.
should ENS allow for even longer data values
That's a question about the resolver contracts. As such it is possible to write a resolver that stores any data.
The current discussion pertains to the content() field of the default resolver contract. How can we use it to store hash such that we can easily use Swarm and IPFS and other hash-based storage networks?
from swarm.
ok I dont see a problem with using multihash in ENS.
As long as intermediate hashes of the swarm hash as well as hashes in manifest entries remain 32 byte long
from swarm.
but doesn't the ens entry have to be a swarm root hash?
from swarm.
@zelig
as we discussed at the cafe today: let' s do it:
#186
from swarm.
Related Issues (20)
- bug: sometimes serves index.html files within a folder, sometimes does not
- repair globally pinned content without manifest HOT 4
- pinned content disappears when gc is triggered multiple times HOT 2
- add push-sync flag HOT 1
- use bzzaccounts as publishers in global pinning HOT 1
- fix conflict between garbage collection and push sync HOT 1
- fix content recovery request flooding HOT 1
- add global pinning logs HOT 1
- add global pinning simulation test
- flood of recovery requests
- lookup timeout on feed content recovery
- Files from specific sizes instantly disappear after encryption HOT 1
- Swarm Go.1.14 Build FAILED HOT 1
- Files from a Feed are cached by browser HOT 3
- Incompatible with latest go-ethereum v1.9.23 HOT 2
- Does swarm support IPv6 network?
- Deprecation notice HOT 4
- Bzzaar rejected by infura
- Swarm HOT 1
- Error: provided network ID does not match mainnet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swarm.