Implemented Floodsub from scratch

Wrote a Floodsub module for scratch in my experimental p2p stack. Learned a great deal how pubsub broadcasting systems behave under the hood with complex rust async designs. Getting ready to write Gossipsub now.

January 15, 2026 · Abhinav Agarwalla

Rust async pattern -- single owner IO

Ran into an issue while building my experimental p2p stack in Rust – multiple parts of the code wanted &mut TcpStream. Turned out the design was improper. What worked for me was creating a single IO task owning the socket, with everything else communication via mpsc. Cleaner ownership, fewer borrow issues, and easier to reason about.

January 6, 2026 · Abhinav Agarwalla

Started writing a p2p stack in Rust

Started writing an experimental p2p stack, rnet inspired from libp2p specs, to dig deeper into rust and core p2p mechanics.

December 19, 2025 · Abhinav Agarwalla