Developer of ActivityPub-based micro-blogging and content subscription platform Mitra. I help maintain the FEP repository and write my own FEPs too. Currently working on ActivityPub Next.

  • 6 posts
  • 0 comments
Joined 5 years ago
Cake day: November 6th, 2021

The biggest problem for peer to peer ActivityPub is the fact that ActivityPub is primarily a “pull” protocol. You need to fetch a remote actor before interacting with it. This is not feasible in the environment where nodes are intermittently online.

What if we used a special activity to request objects? I’ve described this idea in more detail in Asynchronous object retrieval:

https://codeberg.org/silverpill/feps/src/branch/main/aef6/fep-aef6.md

I think this mechanism, if combined with self-authenticating objects, should make ActivityPub compatible with store and forward protocols.

#p2p #dtn #fep_ef61

Proposal: Replace gateways query parameter in ‘ap’ URIs with @gateway, which can be used multiple times

https://codeberg.org/fediverse/fep/pulls/890

Before:

?gateways=https%3A%2F%2Fserver1.example,https%3A%2F%2Fserver2.example

After:

?@gateway=https%3A%2F%2Fserver1.example&@gateway=https%3A%2F%2Fserver2.example

Query parameters are often used to specify collection filters. The @ prefix will make it clear that gateway parameter is special.

#fep_ef61

I finally got around to trying #iroh

It nicely complements FEP-ef61, because it allows you to connect to another actor by its did:key. In theory, we can completely replace the federation of HTTP servers with a federation of iroh nodes.

However, I’m not convinced that iroh is the best solution. The most obvious problem is a lack of anonymity. Newer versions of iroh support custom transports, and Tor transport is among them, though still experimental. The work on I2P transport has not started yet.

Another problem is the requirement to be online all the time. A potential solution is iroh-gossip, which I haven’t tried yet, but I doubt that it works good enough for nodes that come online once per week.

A more traditional approach to FEP-ef61 with a combination for clearnet, tor and i2p gateways might be simpler and better. But iroh is an interesting project that’s worth keeping an eye on.

https://codeberg.org/silverpill/minimitra/src/commit/2dd4e4f82b476f6b0a3d2610f158691ad5f46d11/src/p2p/_iroh.rs