Limone.eth - Social media protocols

ETH Bucharest 2024 · March 2024 · 17:58

Limone.eth, co-founder of Urbe.eth and ETH Rome, explains why decentralised social networks matter. The talk breaks a social network into namespace, social graph, database, protocol, platform and rules, then shows how centralised platforms control all of them. It compares open protocols, the fediverse with Mastodon, Bluesky and Nostr, and on-chain networks. Farcaster and Lens get the closest look, including Farcaster's idea of sufficient decentralisation, its hub architecture, and benefits such as account ownership and portability.

Speakers

Topics

From ETH Bucharest 2024, hosted by ETH Bucharest.

Transcript

for our last speaker for today um I barely was able to take him because he was hacking he's a Serial hacker serial hackaton winner founder of thank you thank you Andrea for the intro [Music] wow so our this am I supposed to click to show the slide or what no oh yeah now you see it so hello everybody I'm lmon and um I'm a seral Acer as Andrea said I'm co-founder of Wate and it roome the community for web

Tre builder in the capital of Italy um I love to travel around aaton uh been to like 10 of them one most of them uh sometimes I DJ and I love Caster that's why uh today I wanted to talk about social media protocols so like decentralized social networks and why decentralization matters uh in the space I will start from uh some centralized examples going through the fivers which is a trade-off between centralization and decentralization and then showing also you the decentralized uh main decentralized social networks out there so yeah it works what are like the key components of of a social network first

of all we have the name space meaning my username my display name let's say everything that identifies me on a network the there's the network of course that is the social graph connecting me with content and people I interact with the database that is the place where everything is stored on The Social Network the protocol that defines how users can interact with each other the platform is the way in which users can interact with the protocol so just clicking buttons inputting entering text whatever and then there's a set of rules uh that defines how the algorithm for the feed works or some forbidden actions things that you can do or you cannot and yeah that's pretty much it the problem

with centralized where I need to okay the problem with centralized social network is that all of these key components that I just mentioned are uh owned by the company that controls the social network itself so like the platform think about our friend here Elon Musk and Twitter and X of course he owns the namespace the network the database the protocol the platform and the rul set this means that uh I mean maybe you know already when he took over Twitter he changed a lot of things uh in the company not only for users but also for Developers for example like they changed the API policy meaning that maybe there's more like rate limitation or certain data that can be extracted

from the network or not uh and this of course is not only related to to Twitter but it's related to all the centralized social networks are there that can be Instagram Facebook or redit all these kind of stuff and of course it's it's not ideal um recent example of course is the um renaming rebranding the from the Twitter to x uh because this shows you what a centralized social network can can do to your like Identity or whatever there was this guy owning the X andle on Twitter and of course when they changed the name they claimed the handle from the guy even if he didn't want to so he was forced to uh change his handle and that's also a letter that they sent him

uh I think they they gifted him a Tesla in the end but it's bad that somebody can claim my username um the other thing with centralized social networks is that they are wallet Gardens meaning that if this if any of these rules changes and I don't like them there's not much that I can do with it because uh okay I don't like Twitter maybe I want to move my uh Identity On on Reddit uh I need to restart again on Reddit building my social graph building my following creating my content whatever because there's no easy way in which you can export this data from one social network to the other they are uh silos closed silos so you don't really own your social graph uh and you can't escape so that's why I think that uh we

should Thrive and build and use more open protocols rather than using platforms that lcks us in their silos again but that said even open Protocols are not immune to centralization think about uh the web HTTP TCP or SMTP the protocol for sending emails they are open protocols there are many clients built on top of them think about uh Gmail Yahoo or Outlook those are all Alternatives and options that you can use to send email to your colleagues uh but you know already that it's there's some sort of centralization side because most of the people use Gmail in this case or most of the people use Chrome with respect to Internet

Explorer but at least you're allowed to switch between competing clients um according to your preference um and so I can send an email from my Gmail account to your Outlook account and because it's everything is running on an open protocol going forward with the spectrum of De Central ation we have the fediverse um does anybody uh have heard about Mastodon here some people yeah so Mason is the main example of the fediverse out there it's built on top of the uh activity P protocol that defin some rules in which clients and servers can communicate in the network uh and it has some pros and cons with respect to what we've seen

with de centralized examples uh okay the cool things about the f diverse is that there's a diverse server ecosystem meaning that individuals can run their own instances their own servers uh with specific rules or content that they want to have uh it's possible somehow to migrate your following between servers not that easy but you can and and then there's community control so there's not single company that is controlling the whole network it's each single individual controlling their own server so there's more space to express yourselves but there are also some bad things about the fers so centralization Tendencies because

users not everybody knows and wants to OST an instance so what happens is that most of the users end up using one two three or like the most popular instances out there dedicated to specific topics communication silos because admins of instances can uh prevent uh order to to use their their own servers uh privacy concerns because there's no n2n encryption and also your data is managed by some Hobbies around the world so it's no more Elon mask controlling your database but it's maybe my friend at his place uh storing my data and I don't know uh if he has uh some security breaches or whatever and then of of

course I already mentioned some self-hosting challenges meaning that it's not that easy to host an instance of a server on the activity B protocol for example there are other examples that I won't cover because there's not much time but blue skies is very similar to uh the activity Pub protocol and then there's nost which is very like niche in the Aker Community where there are not even usernames and they use public keys to communicate with each other and now let's go on chain so the main examples of social networks built on chain that has some components that are decentralized are foraster and lens um those are like two decentralized social networks that um uses two different approaches to achieve decentralization

foraster claims to be sufficiently decentralized meaning that not everything is on chain only what's needed White Lens took the other path that everything is decentralized everything is on chain think about the content the follows the likes every interaction is an nft uh tied to your wallet on polygon um on forecaster for example you have an annual fee to pay in order to register your rle um you have an a unique FID and the content is St on a peer-to-peer Network similar to B torrent so there's no consensus on that side it's just a distributed network of ABS synchronizing with each other while on lens you have a onetime handle creation because it's it's an nft tied to your wallet um it uses public Keys

again for identification and everything is started on chain on polygon and on an L3 called Moka um a little bit about lens so I already say like most of the things but um maybe the thing that I wanted light is that it's very um Creator oriented they allow you to extend uh your profile with uh nfts or custom modules that you can plug in for monetization and this kind of stuff uh and uh again like it's fully decentralized everything is running on chain so you have like total control over everything that you do uh in the network but it's also not that efficient because the blockchain is not an efficient system especially for

storing uh data going over with forcaster um like the uh again forcaster claims to be a sufficiently decentralized social network meaning that there's the identity layer meaning your ID and your username running uh on chain it's stored on a um smart contract on optimism tied to your address and everything else the social graph the content the followings the likes your reactions whatever it's running on a peer-to-peer network uh of chain that is synchronized with the delta graphs um usernames are readable very similar to Twitter and um yeah data is decentralized what does it mean

sufficient decentralization which is the one of the most interesting con Concepts uh bring brought in by the forecaster team I think so a social network achieves sufficient decentralization if two users can find each other and communicate even if the rest of the network wants to prevent it how can you achieve this there are three cre the properties that you need to achieve sufficient decentralization users must always been able to claim unique usernames meaning that if I'm lion. it nobody else can claim that username users must always be able to post messages under that username so there should be nobody preventing me imp posting stuff to the network with my

username and I always I need to always be able to read messages from any other valid usernames if we achieve these three proper you have a sufficient decentralized social network that it's somewhat cool because it's a good trade-off between uh centralization decentralization uh security and user experience let's say so how does it work when you create an account on forecaster uh you um register a new entry in the registry uh you claim a username and you are assigned with a unique ID which is an incremental number uh each message running in a network uh it's signed by

my public private key pair meaning that um everything is authenticated so that data stored around the network we are sure that it's being published by specific actors because of the signatures and uh this data that I'm mentioning is stored in ABS you can think of ABS again as uh bit torent nodes um abs are open source and there are like more than 200 now that people are running and uh they don't need to actually need uh to achieve consensus in with anything like proof of work or proof of stake it's just eventual consistency that is a property known in the distributed system space uh then what happens like to build on forecaster

you can create client UPS um data availability layers whatever that connect to the ABS and allow you to fetch the data and you can create customized experiences for C these and names already mentioned they are also integrated with NS so if you have an enss on forecaster you can use it as your own username instead of claiming uh a new one and uh again on chain that's only what's needed so foraster is not X on the blockchain the only part that leaves um of the protocol on chain is the uh identity layer messages media posts everything else it's running of chain and I think this is cool because the blockchain is up poor storage

mechanism for data uh for two main reason it's immutable and I don't think that content on social networks should be immutable and it's also BWI limited meaning that um if every time I need to post I need to sign a transaction I need to pay for gas fees it's it's not scalable and and this is how it works so um this is the architecture you've seen here the uh onchain stuff the registry storage registry and key registry running on optimism the offchain network of ABS that are storing all the social graph all the data and then here on the application layer you have some backends that are servers reading data exposing apis from the apps and client apps that can be

mobile things or laptop desktop that are reading data from this back end this is an easier and simplified version so you have optimism here for accounts ens usernames apple is the open source library for implementing foraster and here you have a bunch of application yope gem warcast is the main one and and many others uh why blockchain uh uh again and why not using a my my database for the uh registry of the names because blockchains are distributed and ownerless so no single actor can uh modify own or control the smart contract that records the namespace getting back

to the uh initial example of the X usern names being claimed um by Elon Musk in this case you are the only owner of your username so nobody can revoke that from you and uh the cool thing about blockchains and distributed systems is that um they are also permission as a public meaning that you don't need an AP key to build on that to read the data to update the state you can do it without asking permission to anybody and that's where the uh Innovation comes and yeah so just to recap a little bit why decentralized social because of account ownership uh you have noncustodial accounts you are the only owner of your account data portability because you don't need for migrations

everything is tied to your wallet address and you can connect uh on different clients bringing in or your followings social graph everything that you did permissionless Innovation because you can build Services uh at your will on on top of these protocols sensorship resistance and moderation um another like uh interesting topic because you cannot be banned from the protocol but you can be moderated on the client side so if I'm a client and I want to my user base to only talk about cats and somebody's not talking about cats I can blocklist their content but that user is always able to send that message in the protocol and other clients out there are free to like list

it that's it thank you so much um any question [Applause] yeah so in in the case of forecaster uh the name registry contract has some recovery mechanism so you can can set up recovery addresses and Recovery policies at your will and there's uh it's very similar to how ens Works in uh around

like the name claiming um so yeah if somebody gets them you have a way for to recovery them or maybe if you lose them uh you can recovery I think no question thank you so much look one more where can we learn more about your project on my Twitter on my farcaster actually on farcaster yeah on farcaster I will publish the project tomorrow I I have a feeling we're going to see you one more time on the stage before this event is over maybe maybe you know Italians are scantic as a part of the conference I have a feeling there is no

event that I've been to that he he hasn't won so I'm not saying that I know he's GNA win but I have a feeling I don't know let's question there how about listen we have a happy hour right now and you can talk to Theon during uh during it happy to happy to answer it uh we're serving wine outside uh you're free to join uh thanks this is uh the end of the first day thank you so much for being here thank you

Related talks