js-multiaddr icon indicating copy to clipboard operation
js-multiaddr copied to clipboard

feat: add retrieval protocol code parsing

Open vasco-santos opened this issue 6 months ago • 3 comments

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

vasco-santos avatar May 21 '25 18:05 vasco-santos

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.

achingbrain avatar Jun 18 '25 05:06 achingbrain

Thanks @achingbrain ! This is great, I don't need to run with a fork for the time being then

vasco-santos avatar Jun 20 '25 13:06 vasco-santos

I'm going to convert this to a draft for the time being.

achingbrain avatar Jun 25 '25 12:06 achingbrain