I see a way to improve activitypub. Build an extension that does not require servers. Instead it would use servers for discovery of running clients.

Everything else would stay the same except clients can identify by a public key hash instead of domain name.

This would allow single-user local clients to sync directly or through a instance relay with other local clients when they are online, as well as with public domain-based instances. All posts, media and objects could be stored locally as files instead of using a database engine. This would also make it simple to run clients over TOR.

Think about it.

It would blow NOSTR out of the pond.

The obstacle to this is the mandatory HTTPS requiring use of certificate authorities. The client-only version would have to drop this and use public key of user accounts to secure transfers.

#ActivityPub #Fediverse #Mastodon #Social

pt

Replying to @⁨fionescu@bsd.cafe⁩

@fionescu

It looks promising but is too complicated:

  1. PostgreSQL / SQLite

Why not just flat files?

  1. Server

Why not ephemeral?

It seems it must be run in the cloud as an always on server. Ephemerality is required for true P2P.

  1. Requires a domain and web proxy.

To truly free the user we need:

  1. Ephemeral. Does not need to be online. Peers will periodically check for when the others are online then perform sync.
  1. Not tied to any domain name or IANA infrastructure.
  1. Not tied to HTTPS certificate authorities. Use key-based account pairing.
  1. Flat files by default. No database required.

The closest I see so far is snac2. If snac2 could have the HTTPS requirements hacked off and account pairing via public keys, we'd be most of the way there.

HTTPS is a YOOOGE security attack point. The India cert debacle proves that. I've been saying it for years. HTTPS is NOT safe. Your own public key that you control IS safe. (generally).

Replying to @⁨fionescu@bsd.cafe⁩

@fionescu

All we need is the ability to do direct P2P via TOR, and via relays on clearnet if the user isn't at legal or physical hazard over their anonymity.

It seems everyone designs everthing for the web, when we need to design for endpoint to endpoint without considering the web at all. Public signture key identities eliminate the need for the web middleman.

I'm not suggesting a re-write or abandonment of traditional activitypub. I'm suggesting integrating new features that allow a local client to be its own ephemeral instance server, when the user runs the application. So it would be like running their own instance on their desktop (or phone) that tries to sync with peers when it can find them, and just re-queues those peers to try later when it can't find them.

Replying to @⁨fionescu@bsd.cafe⁩

@fionescu @8 I've experimented with pure p2p federation via iroh in mitra mini: https://mitra.social/objects/019f8116-59de-71f2-8c56-2e87e32c2859

But my plan is to use web gateways. Fediverse already has an .onion segment, it's tiny. We need a way to connect everything together, and web gateways is the only real solution.

silverpill@silverpill@mitra.social

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