js-multiaddr
js-multiaddr copied to clipboard
feat: add retrieval protocol code parsing
This PR adds a retrieval code as draft to hint what kind of retrieval protocols one host may run. e.g. /ip4/.../p2p/qmfoo/tag/bitswap/tag/http as discussed
This enables us to be able to prioritize dialling to hosts that we know how to communicate with and avoid unnecessary dials. This is an optional Hint.
More context: https://github.com/vasco-santos/provider-hinted-uri/blob/main/EXPLORATION.md
Multicodec PR ready https://github.com/multiformats/multicodec/pull/380
While https://github.com/multiformats/multicodec/pull/380 is resolved, #425 allows experimententation with new protocols without needing to PR support in here.
See Adding custom protocols in the README.
Thanks @achingbrain ! This is great, I don't need to run with a fork for the time being then
I'm going to convert this to a draft for the time being.