Add some random notes about public-key identity

This commit is contained in:
Anthony Wang 2022-04-27 11:58:46 -05:00
parent f5b01ba071
commit a2561afe55
Signed by: exogit
GPG key ID: 1DDC6BC38786C595

View file

@ -1,3 +1,20 @@
# LibreFed
Highly experimental federation protocol using identity-based cryptography
Highly experimental federation protocol using identity-based cryptography
## Motivations
Existing federation protocols like ActivityPub have a number of problems, including nomadic identity (being able to freely move your account around instances) and having multiple AP accounts for Mastodon, PeerTube, WriteFreely, Gitea, etc.
## Public-key identity
We can solve many of these problems by rethinking how our protocol handles federated identity. Instead of using the instance URL as part of the full username, we use the public-key to form the full username. For instance, your username might look like `billiam@d981a0c873` instead of ``, where that hex string is your public key. Your account can be associated with any number of instances, including instances of different software, and your data is incrementally replicated across all instances. If someone wants to message you, their instance either has the URLs of your data instances cached or you have to manually give them the URL of one of the instances (like in a traditional federation protocol).
Instances will store users' public keys encrypted, so only users will be able to sign messages, proving that they haven't been tampered with by any of the instances. This scheme is potentially vulnerable to MITM attacks, so this will have to be investigated in more depth later.
## Replication
As mentioned earlier, user data is replicated across multiple instances. To maintain consistency, a [CRDT]( can be used.