rust-multiaddr
rust-multiaddr copied to clipboard
Tooling for unparsable `Multiaddr`
Sample use-case:
- Roll out of new
Protocol::X. - Old DHT nodes should forward
Multiaddrs withProtocol::Xof new nodes even though they can't parse theMultiaddr. Currently they don't.
Considerations:
- Instead of providing e.g. an
Unparsabletype inmultiaddr, each user that cares could also carry aEither<Multiaddr, Vec<u8>>. - One could add a
Protocol::Unparsable(Vec<u8>)containing the remaining unparsable bytes. This might break existing implementations as they depend onMultiaddreither to succeed or fail, but not fail partially.
Related:
- https://github.com/multiformats/multiaddr/issues/155