Using the same approach, for a total size of 64 bytes, you get 62 bytes of data. That is enough to store a multiaddr like /ip4/<32 bit addr>/tcp/<port>/ipfs/<256 bit node hash> or even /ip6/<128 bit addr>/tcp/<port>/ipfs/<256 bit node hash> inline, which should be quite useful.
Rust-libp2p nodes frequently store peer ids multiple times, so this would be a nice optimisation.
Similar to https://github.com/multiformats/rust-multihash/pull/47
Using the same approach, for a total size of 64 bytes, you get 62 bytes of data. That is enough to store a multiaddr like
/ip4/<32 bit addr>/tcp/<port>/ipfs/<256 bit node hash>
or even/ip6/<128 bit addr>/tcp/<port>/ipfs/<256 bit node hash>
inline, which should be quite useful.Rust-libp2p nodes frequently store peer ids multiple times, so this would be a nice optimisation.