Follow

How to make ActivityPub have offline-first support 

I was asked this by @wakest on birdsite, so copying my answer here here:

- Move to content addressed posts w/ convergent encryption based URIs (spec needs to be written!) instead of HTTP-retrievable URIs for content
- object capabilities (ocaps) either with ocap uris or ocap-ld - support for petnames
- "store-and-forward" support (using ocaps)

This is also the same list as "how to move ActivityPub to a p2p system"

How to make ActivityPub have offline-first support 

@wakest My thought on how convergent encryption based URIs would work are something like:

enc:aes:<key-here>?loc=urn:sha256:<hash-here>

Where <key-here> is the symmetric key used to decrypt the document, and the loc is the location of the encrypted document... in this case, it's using content addressing and is referenced by its hash

Show thread

How to make ActivityPub have offline-first support 

@wakest This way many people in a p2p network can distribute the encrypted document, but only the people who need to know how to decrypt/unseal it get that information

Show thread

How to make ActivityPub have offline-first support 

Here's a modified way of storing that same information by extending the magnet uri scheme:

magnet:?xt=urn:sha256:<hash>&dk=<decryption-key>&ds=<decryption-scheme>&xl=1024

dk and ds would be extensions though which I think in general are not popular/supported.

Show thread

How to make ActivityPub have offline-first support 

@cwebber by which you mean anyone with the link?

How to make ActivityPub have offline-first support 

@astraluma Right.

How to make ActivityPub have offline-first support 

@cwebber have you looked at DAT?

Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!