-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ENS Namehash #184
Add ENS Namehash #184
Conversation
Adding ENS Namehash at 0x99 in table.csv > eth-ens-namehash, ipld, 0x99, Ethereum Name Service (Namehash) base32 - cidv1 - dag-pb - eth-ens-namehash-256 - de9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f `ipns://foo.eth` as namehash CID `ipns://bafyjsaja32nqt7l4l6ib4i5d6gp6zrkifdu4qscttaa6qzmrxwmadmaz7bhq`. ** Normalization UTS46 with the options transitional=false and useSTD3AsciiRules=true Ref : ethereum/EIPs/issues/137
I don't think this should go with the ipld codecs for ethereum, if this goes in the table it probably needs to be elsewhere so we can keep the eth block formats together (as they will likely expand). This isn't a block format thing as far as I understand. It seems to me that your example should be Excuse my ignorance on this one but can you explain the purpose of this codec? How would it be used? It seems like you might be able to treat it like an ipld codec, where the data is the eth name, but I'm not sure why you would do this. Is it just useful as an identifier? An address in applications distinct from the human-readable names (if so, why?)? Having |
Namehash is used as internal identifiers in ENS so as a "hashing algo" there's no easy way to reverse lookup
Yes, that's the case in this full circle of ENS domain + IPFS/IPLD + content-hash. It's an identifier pointing reverse In this context
Nearest is (3), it'll be something like ENS graph protocol for reverse namehash lookup. 1st auto use case will be as https://www.4byte.directory/ but for namehash stored outside of ETH mainnet. I'm using IPFS in my ETH codes for years but I'm still new to IPLD & CIDv1. I'm pro'lly missing something in this bigger context.. 🙏
IPLD Put :
IPLD Get
IPFS/IPNS Get
|
Adding ENS Namehash at 0x99 in table.csv
base32 - cidv1 - dag-pb - eth-ens-namehash-256 - de9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f
ipns://foo.eth
as namehash CIDipns://bafyjsaja32nqt7l4l6ib4i5d6gp6zrkifdu4qscttaa6qzmrxwmadmaz7bhq
.Ref : ethereum/EIPs/issues/137
ENS labels are normalized as UTS46 with the options
transitional=false
anduseSTD3AsciiRules=true
(https://www.npmjs.com/package/eth-ens-namehash)