multiformats / go-multiaddr

Composable and future-proof network addresses
https://github.com/multiformats/multiaddr
MIT License
271 stars 109 forks source link

implement a new multiaddress API #198

Open marten-seemann opened 1 year ago

marten-seemann commented 1 year ago

Problems with the current API

Major problems:

Related: https://github.com/multiformats/multiaddr/issues/155

Minor problems:

Proposal for a new API

Wishlist

MarcoPolo commented 1 year ago

Another annoyance I ran into: Component doesn't implement the Multiaddr interface. So if you collect a bunch into a slice: []Components there's no way to join them all. I'm not sure if we even need the component in the new API, just wanted to mention it as another pain point.