TL;DR

I’ve spent the last seven days essentially living inside the networking stack. It was one of those weeks where you look at your git history and realize you’ve touched four different languages just to make sure one protocol works the way it’s supposed to. The highlight was definitely landing a massive 9,800-line PR for WebRTC Direct v2 in dotnet-libp2p, but the "smaller" wins—like fixing aioquic compatibility in Python and certificate rolling in Haskell—were just as critical for keeping the lights on. Between 12 merged PRs and a heavy week of 13 code reviews, I’m feeling pretty good about where the cross-stack interop stands right now.

What I Built

The bulk of my creative energy (and a massive chunk of lines changed) went into the .NET ecosystem this week. But as any p2p dev knows, you can't just work in a vacuum. If the C# implementation doesn't talk to the Python one, you haven't really built anything.

dotnet-libp2p

The heavy lifter this week was dotnet-libp2p. I finally pushed PR #442 over the finish line. This was a monster: +9,833 lines. I implemented the interoperable WebRTC Direct v2 spec, which included an ICE-lite listener, framed Noise, and proper multi-stream sessions. If you’ve ever wrestled with WebRTC outside of a browser environment, you know how gnarly the handshake can be. Getting this to a state where it’s interoperable with other libp2p stacks is a huge milestone for the .NET side of things.

I also spent some time on the more "boring" but essential maintenance. I merged a fix to advertise IPv6 over mDNS using the standard service name (PR #470). It’s 1,157 additions that basically ensure our peer discovery doesn't ignore modern networking stacks. Oh, and I bumped System.Formats.Cbor to clear a CVE because security never sleeps, even in OSS.

py-libp2p

Over in Python land, it was all about stability and responding to upstream chaos. I had to jump on Issue #1597 because aioquic 1.8.0 dropped a method we were relying on (_get_or_create_stream). It’s a classic "upstream broke my build" scenario. I pushed a fix in PR #1598 to tolerate the change so WebTransport doesn't just fall over for Python users.

I also did a deep dive into the DHT and address validation. I fixed a bug where /dns6/localhost was incorrectly being treated as a public IPv6 address (PR #1599). It’s a small change (27 lines), but those are the kinds of edge cases that cause absolute havoc in routing tables if left unchecked. I also spent time in libp2p/kad_dht ensuring we honor the protocol_prefix on the wire—essential for anyone running custom DHT networks.

hs-libp2p & agentmesh

I didn't forget about the Haskell side of the house. I landed a fix for WebTransport certificate rolling (PR #384). WebTransport requires short-lived certificates, so if you don't roll them before they expire, your listeners just die. I followed that up with PR #385 to make sure the listener addresses actually refresh when those certs change.

Finally, I did a bit of cleanup in google/agentmesh. I was able to drop an old websocket dial-by-name workaround in the Python SDK (PR #903). Deleting code is always more satisfying than adding it, even if it was only 22 lines.

Pull Requests

It was a high-velocity week for PRs. Beyond the big WebRTC land, I focused heavily on testing and examples.

One of the more satisfying merges was PR #1607 in py-libp2p. I’d been hearing that the circuit relay example was broken—source couldn't reach destination because of missing relay IDs and early service shutdowns. I sat down, reproduced it, and got it working end-to-end. Documentation and examples are the front door of any project, so keeping them green is high priority.

I also landed a massive interop test suite (PR #1605) that tests py-libp2p against js-libp2p for WebRTC-Direct. This added about 1,850 lines of test code. It’s not "feature" code, but it’s the only way I can sleep at night knowing these different implementations actually play nice together.

Issues & Discussions

I opened a few issues that highlight some of the weirder corners of p2p networking. In py-multiaddr, I found a bug where ip6zone was being decoded as a flag protocol (Issue #147). This causes "phantom" /ip4 addresses to appear and breaks binary round-trips if your zone isn't exactly 4 bytes. It’s one of those low-level encoding bugs that makes you question your sanity for an hour or two.

I also flagged a problem in google/agentmesh where the unpinned Flutter SDK deprecated a core material library, breaking CI for everyone. Pinning your dependencies is a lesson we all learn the hard way eventually.

Code Reviews

I spent a huge amount of time in the reviewer's seat this week—13 reviews in total, mostly within dotnet-libp2p. This is where the real community work happens.

I reviewed a flurry of Gossipsub v1.1 improvements, including opportunistic grafting (PR #440), outbound mesh quotas (PR #438), and IP-colocation scoring (PR #441). Gossipsub is the heartbeat of most p2p networks, and getting the v1.1 features right in .NET is critical for network health.

I also gave feedback on some performance-oriented PRs, like using shared pooled channels for TCP/QUIC (PR #428). When you're dealing with high-throughput p2p traffic, memory allocation matters just as much as the protocol logic.

What this week taught me

  1. Upstream is a moving target. The aioquic break in py-libp2p reminded me that if you’re building on top of evolving specs like QUIC and WebTransport, you have to be ready to pivot when a dependency drops a "private" method you were relying on.
  2. Multiaddr is still full of surprises. The ip6zone issue taught me that even the most fundamental building blocks of the stack can have subtle encoding bugs that only show up when you start doing weird things with IPv6 zones.
  3. Examples are the best tests. Fixing the circuit relay example in Python forced me to look at the codebase from a user's perspective, which uncovered three separate bugs that our unit tests had missed.

What's next

I’ve got an open PR in go-libp2p to make the protoc download scripts a bit more resilient. It’s a small fix to fail clearly and retry on errors, but it should save some headaches in CI. I’m also planning to keep a close eye on the Gossipsub v1.1 work in .NET as those PRs I reviewed start to land.

The big question for next week: now that WebRTC Direct v2 is landed in .NET, how do we make the setup even smoother for devs who aren't networking experts?

What this week taught me

  1. Upstream is a moving target. The aioquic break in py-libp2p reminded me that if you’re building on top of evolving specs like QUIC and WebTransport, you have to be ready to pivot when a dependency drops a "private" method you were relying on.
  2. Multiaddr is still full of surprises. The ip6zone issue taught me that even the most fundamental building blocks of the stack can have subtle encoding bugs that only show up when you start doing weird things with IPv6 zones.
  3. Examples are the best tests. Fixing the circuit relay example in Python forced me to look at the codebase from a user's perspective, which uncovered three separate bugs that our unit tests had missed.

What's next

I’ve got an open PR in go-libp2p to make the protoc download scripts a bit more resilient. It’s a small fix to fail clearly and retry on errors, but it should save some headaches in CI. I’m also planning to keep a close eye on the Gossipsub v1.1 work in .NET as those PRs I reviewed start to land.

The big question for next week: now that WebRTC Direct v2 is landed in .NET, how do we make the setup even smoother for devs who aren't networking experts?

That's a wrap 🎬

This week was a masterclass in why interop is the hardest part of p2p. It’s one thing to build a feature; it’s another to make sure four different languages agree on how to talk about it.

Thanks for reading this week's dev log! Every week I write up what I shipped, what broke, and what fixing it taught me. Until next time, keep learning and keep building.

Follow me here on DEV to get a new dev log every week 👇


yashksaini-coder (Yash Kumar Saini) · GitHub

Contributor @libp2p. yashksaini-coder has 162 repositories available. Follow their code on GitHub.

favicon github.com

Yash Kumar Saini · libp2p contributor · backend and peer-to-peer systems

Yash Kumar Saini is a developer and libp2p contributor working in Python, Rust and C/C++ on backend and peer-to-peer systems.

favicon yashksaini.vercel.app