RangerMauve / hypercore-fetch

Implementation of Fetch that uses the Hyper SDK for loading p2p content
MIT License
37 stars 13 forks source link

Replace petnames with `POST hyper://localhost` #29

Closed RangerMauve closed 1 year ago

RangerMauve commented 2 years ago

The concept of using petnames for public keys in the hostname conflicts with custom DNS resolvers like handshake which can register top level names.

In js-ipfs-fetch we removed the petname functionality with an explicit call to POST ipns://localhost?key=KEY_NAME instead of auto creating with GET ipns://KEY_NAME/

I think we should do something similar for hyper-fetch and other protocols. (like bittorrent)

RangerMauve commented 1 year ago

This has been done as of v9+ of hypercore-fetch