Skip to content

Howto create ipns dnslink for ens app #1627

@chrisschaub

Description

@chrisschaub

Since the ens app has removed support for dnslink style contentHashes like /ipns/somedomain.com , it would be great to have some documentation on the best way to create ipns hashes for dnslink. I can see in the code there are now checks to make sure ipns is crypto, not plain text.

I would like to see a working example of creating libp2p-key compatible contentHashes that can be used in the ens app. IPNS is a pain to setup and republish, but a compatible ipns hash should allow most ifps gateways to resolve the dnslink.

The most related github issue is here: #849 (comment)

In short, I want to create a correctly encoded ipns name/key that can be used to get /ipns/somedomain.com so dnslink will take over. I understand not wanting plain text in the content hash, but it seems it's still possible to do by encoding the somedomain.com part, I just can't get any of the examples to work in the app, they all create strings that throw errors.

Thank you for your consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions