Skip to content

Add support for extensions of the multiaddr interface.#135

Open
willscott wants to merge 1 commit intomultiformats:masterfrom
willscott:feat/custom-multiaddr
Open

Add support for extensions of the multiaddr interface.#135
willscott wants to merge 1 commit intomultiformats:masterfrom
willscott:feat/custom-multiaddr

Conversation

@willscott
Copy link
Copy Markdown

This introduces a feature flag Custom that can be used to allow for parsing and management of protocols that are not part of the hard-coded set of known multiaddrs.

This parallels the more permissive support that is found in js and golang implementations.

by default, unknown protocols will not be parsed, since the semantics of how to parse their arguments cannot be known, but they can be manually constructed and then serialized to string. Specific extension protocols can be registered in a protocol registry to extend the default set and allow for handling of multiaddrs using those additional protocols more naturally.

@willscott willscott force-pushed the feat/custom-multiaddr branch from 2b598a8 to 469fa69 Compare April 1, 2026 07:21
This introduces a feature flag `Custom` that can be used to allow for parsing and management of protocols that are not part of the hard-coded set of known multiaddrs.

This parallels the more permissive support that is found in js and golang implementations.

by default, unknown protocols will not be parsed, since the semantics of how to parse their arguments cannot be known, but they can be manually constructed and then serialized to string.
Specific extension protocols can be registered in a protocol registry to extend the default set and allow for handling of multiaddrs using those additional protocols more naturally.
@willscott willscott force-pushed the feat/custom-multiaddr branch from 469fa69 to 2904bdf Compare April 1, 2026 07:32
@willscott willscott marked this pull request as ready for review April 1, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant