I was aware of this for IPFS, but was curious to see if libp2p was at least somewhat useful
Discussion
they have 3 different handshakes: tls, quic, noise... multiple transports. sigh.. someone should build a version of this that is a bit more opinionated. TURN/STUN is also still really hard, they have never been that reliable. I tried once with libdatachannel with no luck
You can choose your handshake settings. If using QUIC it doesn’t use noise by default since QUIC has encryption by default, but if you’re using websockets and have noise enabled then it will use noise.
What you’re complaining about is literally its biggest feature…
libp2p gives you the option to select almost any transport and handshake from a config. It’s modular and flexible. Once it’s setup, you have a world of options at your fingertips. 🌎
Would be nice to have a version that removed the pubsub options & cleaned up things a bit though.
If you used Libp2p and thought this is garbage;
1. you are definitely right.
2. Checkout Iroh guaranteed it will "just work"
disclosure, Iroh uses Pkarr to find nodes by their ID because they don't have a DHT themselves, but their holepunching is impeccable and they are artisans and mind their crafts very well.
nostr:note1g72frpre57ld5dcfxhlr4cpulqcl6dhkvjxr657ly843amek3m8spza2uk